xgt.Key

class xgt.Key(name, key)

Object used to hold a Vertex key encoded as the name of the Vertex and a list of key names. A Key instance allows accessing the key names as dynamic properties and also provides a string representation of the key to represent it as json and tql.

Examples

>>> vtx = xgt.Key('Person', ['name', 'lastname'])
>>> print(vtx.name)
Person.name
>>> print(vtx.lastname)
Person.lastname
__init__(name, key)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(name, key) Initialize self.