ultipa.structs package
Submodules
ultipa.structs.Algo module
- class ultipa.structs.Algo.ALGO_RESULT[source]
Bases:
object
- ALGO_RESULT_UNSET = -1
- WRITE_TO_CLIENT = 4
- WRITE_TO_DB = 2
- WRITE_TO_FILE = 1
- WRITE_TO_VISUALIZATION = 8
- class ultipa.structs.Algo.Algo(name, description, version, result_opt, parameters, write_to_stats_parameters, write_to_db_parameters, write_to_file_parameters)[source]
Bases:
BaseModel
Data class for algorithm.
- description: str
- name: str
- parameters: dict
- result_opt: str
- version: str
- write_to_db_parameters: dict
- write_to_file_parameters: dict
- write_to_stats_parameters: dict
ultipa.structs.BaseModel module
ultipa.structs.DBType module
ultipa.structs.Edge module
ultipa.structs.EntityRow module
- class ultipa.structs.EntityRow.EntityRow(values: Dict, schema: str | None = None, id: str | None = None, from_id: str | None = None, to_id: str | None = None, uuid: int | None = None, from_uuid: int | None = None, to_uuid: int | None = None, **kwargs)[source]
Bases:
object
Data class for data rows (nodes or edges) to be inserted.
ultipa.structs.Graph module
ultipa.structs.InsertType module
ultipa.structs.Node module
ultipa.structs.Path module
ultipa.structs.Property module
- class ultipa.structs.Property.Property(name: str, type: PropertyTypeStr = 'string', description: str = '', subTypes: List[PropertyTypeStr] | None = None, lte: bool | None = None, schema: str | None = None)[source]
Bases:
object
Data class for property.
- description: str
- lte: bool
- name: str
- schema: str
- subTypes: List[PropertyTypeStr]
- type: PropertyTypeStr
ultipa.structs.PropertyType module
- class ultipa.structs.PropertyType.PropertyType[source]
Bases:
object
Data class for property type mapping to gRPC.
- PROPERTY_BLOB = 11
- PROPERTY_DATETIME = 8
- PROPERTY_DECIMAL = 13
- PROPERTY_DOUBLE = 6
- PROPERTY_FLOAT = 5
- PROPERTY_FROM = -3
- PROPERTY_FROM_UUID = -4
- PROPERTY_ID = -2
- PROPERTY_IGNORE = -7
- PROPERTY_INT32 = 1
- PROPERTY_INT64 = 3
- PROPERTY_LIST = 14
- PROPERTY_MAP = 16
- PROPERTY_NULL = 17
- PROPERTY_POINT = 12
- PROPERTY_SET = 15
- PROPERTY_STRING = 7
- PROPERTY_TEXT = 10
- PROPERTY_TIMESTAMP = 9
- PROPERTY_TO = -5
- PROPERTY_TO_UUID = -6
- PROPERTY_UINT32 = 2
- PROPERTY_UINT64 = 4
- PROPERTY_UNSET = 0
- PROPERTY_UUID = -1
- class ultipa.structs.PropertyType.PropertyTypeStr[source]
Bases:
object
Data class for property type mapping to string.
- PROPERTY_BLOB = 'blob'
- PROPERTY_DATETIME = 'datetime'
- PROPERTY_DOUBLE = 'double'
- PROPERTY_FLOAT = 'float'
- PROPERTY_INT = 'int32'
- PROPERTY_INT64 = 'int64'
- PROPERTY_LIST = 'list'
- PROPERTY_MAP = 'map'
- PROPERTY_POINT = 'point'
- PROPERTY_SET = 'set'
- PROPERTY_STRING = 'string'
- PROPERTY_TEXT = 'text'
- PROPERTY_TIMESTAMP = 'timestamp'
- PROPERTY_UINT32 = 'uint32'
- PROPERTY_UINT64 = 'uint64'
- PROPERTY_UNSET = 'unset'