ipython-gremlin package¶
Submodules¶
gremlin.config module¶
Default configuration for GremlinMagic
-
class
gremlin.config.
DefaultConfig
(ssl_context, username, uri, response_timeout, aliases, password)¶ Bases:
tuple
-
aliases
¶ Alias for field number 4
-
password
¶ Alias for field number 5
-
response_timeout
¶ Alias for field number 3
-
ssl_context
¶ Alias for field number 0
-
uri
¶ Alias for field number 2
-
username
¶ Alias for field number 1
-
gremlin.magic module¶
IPython Gremlin custom magic
-
class
gremlin.magic.
GremlinMagic
(shell=None, **kwargs)[source]¶ Bases:
IPython.core.magic.Magics
First of all, keep him out of the light, he hates bright light, especially sunlight, it’ll kill him. Second, don’t give him any water, not even to drink. But the most important rule, the rule you can never forget, no matter how much he cries, no matter how much he begs, never feed him after midnight.
-
aliases
¶ An instance of a Python dict.
-
magics
= {'line': {'gremlin.connection.set_current': 'set_current_connection', 'gremlin': 'gremlin', 'gremlin.connection.current': 'get_current_connection', 'gremlin.connection.close': 'close_connection', 'gremlin.connection.set_alias': 'set_connection_alias', 'gremlin.close': 'close'}, 'cell': {'gremlin': 'gremlin'}}¶
-
password
¶ A trait for unicode strings.
-
registered
= True¶
-
response_timeout
¶ A float trait.
-
ssl_context
¶ A trait whose value must be an instance of a specified class.
The value can also be an instance of a subclass of the specified class.
Subclasses can declare default classes by overriding the klass attribute
-
uri
¶ A trait for unicode strings.
-
username
¶ A trait for unicode strings.
-
gremlin.registry module¶
Simple interface for keeping track of DB connections and aliases
gremlin.utils module¶
Utility functions to support GremlinMagic operations
-
gremlin.utils.
submit
(gremlin, user_ns, aliases, conn)[source]¶ Submit a script to the Gremlin Server using the IPython namespace using the IPython namespace to pass bindings using Magics configuration and a connection registered with
ConnectionRegistry