gremlinpython
Advanced tools
@@ -19,3 +19,3 @@ ''' | ||
| ''' | ||
| version = '3.6.7' | ||
| timestamp = 1713192014 | ||
| version = '3.7.2' | ||
| timestamp = 1713201447 |
@@ -178,5 +178,5 @@ # | ||
| if options_strategy: | ||
| allowed_keys = ['evaluationTimeout', 'scriptEvaluationTimeout', 'batchSize', 'requestId', 'userAgent'] | ||
| allowed_keys = ['evaluationTimeout', 'scriptEvaluationTimeout', 'batchSize', 'requestId', 'userAgent', 'materializeProperties'] | ||
| request_options = {allowed: options_strategy[1].configuration[allowed] for allowed in allowed_keys | ||
| if allowed in options_strategy[1].configuration} | ||
| return request_options |
@@ -21,3 +21,3 @@ # | ||
| gremlin_version = "3.6.7" # DO NOT MODIFY - Configured automatically by Maven Replacer Plugin | ||
| gremlin_version = "3.7.2" # DO NOT MODIFY - Configured automatically by Maven Replacer Plugin | ||
@@ -24,0 +24,0 @@ def _generate_user_agent(): |
@@ -197,2 +197,9 @@ # | ||
| DT = Enum('DT', ' second minute hour day') | ||
| statics.add_static('second', DT.second) | ||
| statics.add_static('minute', DT.minute) | ||
| statics.add_static('hour', DT.hour) | ||
| statics.add_static('day', DT.day) | ||
| Merge = Enum('Merge', ' on_create on_match out_v in_v') | ||
@@ -821,2 +828,20 @@ | ||
| class CardinalityValue(Bytecode): | ||
| def __init__(self, cardinality, val): | ||
| super().__init__() | ||
| self.add_source("CardinalityValueTraversal", cardinality, val) | ||
| @classmethod | ||
| def single(cls, val): | ||
| return CardinalityValue(Cardinality.single, val) | ||
| @classmethod | ||
| def list_(cls, val): | ||
| return CardinalityValue(Cardinality.list_, val) | ||
| @classmethod | ||
| def set_(cls, val): | ||
| return CardinalityValue(Cardinality.set_, val) | ||
| ''' | ||
@@ -823,0 +848,0 @@ BINDINGS |
@@ -46,5 +46,6 @@ # | ||
| class Element(object): | ||
| def __init__(self, id, label): | ||
| def __init__(self, id, label, properties=None): | ||
| self.id = id | ||
| self.label = label | ||
| self.properties = properties | ||
@@ -59,4 +60,4 @@ def __eq__(self, other): | ||
| class Vertex(Element): | ||
| def __init__(self, id, label="vertex"): | ||
| Element.__init__(self, id, label) | ||
| def __init__(self, id, label="vertex", properties=None): | ||
| Element.__init__(self, id, label, properties) | ||
@@ -68,4 +69,4 @@ def __repr__(self): | ||
| class Edge(Element): | ||
| def __init__(self, id, outV, label, inV): | ||
| Element.__init__(self, id, label) | ||
| def __init__(self, id, outV, label, inV, properties=None): | ||
| Element.__init__(self, id, label, properties) | ||
| self.outV = outV | ||
@@ -79,4 +80,4 @@ self.inV = inV | ||
| class VertexProperty(Element): | ||
| def __init__(self, id, label, value, vertex): | ||
| Element.__init__(self, id, label) | ||
| def __init__(self, id, label, value, vertex, properties=None): | ||
| Element.__init__(self, id, label, properties) | ||
| self.value = value | ||
@@ -83,0 +84,0 @@ self.key = self.label |
@@ -36,3 +36,3 @@ """ | ||
| SingleChar | ||
| from gremlin_python.process.traversal import Barrier, Binding, Bytecode, Cardinality, Column, Direction, Merge, \ | ||
| from gremlin_python.process.traversal import Barrier, Binding, Bytecode, Cardinality, Column, Direction, DT, Merge, \ | ||
| Operator, Order, Pick, Pop, P, Scope, TextP, Traversal, Traverser, \ | ||
@@ -101,2 +101,3 @@ TraversalStrategy, T | ||
| merge = 0x2e | ||
| dt = 0x2f | ||
| char = 0x80 | ||
@@ -606,4 +607,5 @@ duration = 0x81 | ||
| outv = Vertex(r.read_object(b), r.to_object(b, DataType.string, False)) | ||
| edge = Edge(edgeid, outv, edgelbl, inv) | ||
| b.read(4) | ||
| b.read(2) | ||
| properties = r.read_object(b) | ||
| edge = Edge(edgeid, outv, edgelbl, inv, properties) | ||
| return edge | ||
@@ -686,4 +688,3 @@ | ||
| def _read_vertex(cls, b, r): | ||
| vertex = Vertex(r.read_object(b), r.to_object(b, DataType.string, False)) | ||
| b.read(2) | ||
| vertex = Vertex(r.read_object(b), r.to_object(b, DataType.string, False), r.read_object(b)) | ||
| return vertex | ||
@@ -714,3 +715,4 @@ | ||
| vp = VertexProperty(r.read_object(b), r.to_object(b, DataType.string, False), r.read_object(b), None) | ||
| b.read(4) | ||
| b.read(2) | ||
| vp.properties = r.read_object(b) | ||
| return vp | ||
@@ -926,2 +928,7 @@ | ||
| class DTIO(_EnumIO): | ||
| graphbinary_type = DataType.dt | ||
| python_type = DT | ||
| class MergeIO(_EnumIO): | ||
@@ -928,0 +935,0 @@ graphbinary_type = DataType.merge |
@@ -588,3 +588,8 @@ # | ||
| def objectify(cls, d, reader): | ||
| return Vertex(reader.to_object(d["id"]), d.get("label", "vertex")) | ||
| properties = None | ||
| if "properties" in d: | ||
| properties = reader.to_object(d["properties"]) | ||
| if properties is not None: | ||
| properties = [item for sublist in properties.values() for item in sublist] | ||
| return Vertex(reader.to_object(d["id"]), d.get("label", "vertex"), properties) | ||
@@ -597,6 +602,12 @@ | ||
| def objectify(cls, d, reader): | ||
| properties = None | ||
| if "properties" in d: | ||
| properties = reader.to_object(d["properties"]) | ||
| if properties is not None: | ||
| properties = list(properties.values()) | ||
| return Edge(reader.to_object(d["id"]), | ||
| Vertex(reader.to_object(d["outV"]), d.get("outVLabel", "vertex")), | ||
| d.get("label", "edge"), | ||
| Vertex(reader.to_object(d["inV"]), d.get("inVLabel", "vertex"))) | ||
| Vertex(reader.to_object(d["inV"]), d.get("inVLabel", "vertex")), | ||
| properties) | ||
@@ -609,2 +620,7 @@ | ||
| def objectify(cls, d, reader): | ||
| properties = None | ||
| if "properties" in d: | ||
| properties = reader.to_object(d["properties"]) | ||
| if properties is not None: | ||
| properties = list(map(lambda x: Property(x[0], x[1], None), properties.items())) | ||
| vertex = Vertex(reader.to_object(d.get("vertex"))) if "vertex" in d else None | ||
@@ -614,3 +630,4 @@ return VertexProperty(reader.to_object(d["id"]), | ||
| reader.to_object(d["value"]), | ||
| vertex) | ||
| vertex, | ||
| properties) | ||
@@ -617,0 +634,0 @@ |
@@ -688,3 +688,8 @@ # Licensed to the Apache Software Foundation (ASF) under one | ||
| def objectify(cls, d, reader): | ||
| return Vertex(reader.to_object(d["id"]), d.get("label", "vertex")) | ||
| properties = None | ||
| if "properties" in d: | ||
| properties = reader.to_object(d["properties"]) | ||
| if properties is not None: | ||
| properties = [item for sublist in properties.values() for item in sublist] | ||
| return Vertex(reader.to_object(d["id"]), d.get("label", "vertex"), properties) | ||
@@ -697,6 +702,12 @@ | ||
| def objectify(cls, d, reader): | ||
| properties = None | ||
| if "properties" in d: | ||
| properties = reader.to_object(d["properties"]) | ||
| if properties is not None: | ||
| properties = list(properties.values()) | ||
| return Edge(reader.to_object(d["id"]), | ||
| Vertex(reader.to_object(d["outV"]), d.get("outVLabel", "vertex")), | ||
| d.get("label", "edge"), | ||
| Vertex(reader.to_object(d["inV"]), d.get("inVLabel", "vertex"))) | ||
| Vertex(reader.to_object(d["inV"]), d.get("inVLabel", "vertex")), | ||
| properties) | ||
@@ -709,2 +720,7 @@ | ||
| def objectify(cls, d, reader): | ||
| properties = None | ||
| if "properties" in d: | ||
| properties = reader.to_object(d["properties"]) | ||
| if properties is not None: | ||
| properties = list(map(lambda x: Property(x[0], x[1], None), properties.items())) | ||
| vertex = Vertex(reader.to_object(d.get("vertex"))) if "vertex" in d else None | ||
@@ -714,3 +730,4 @@ return VertexProperty(reader.to_object(d["id"]), | ||
| reader.to_object(d["value"]), | ||
| vertex) | ||
| vertex, | ||
| properties) | ||
@@ -717,0 +734,0 @@ |
| Metadata-Version: 2.1 | ||
| Name: gremlinpython | ||
| Version: 3.6.7 | ||
| Version: 3.7.2 | ||
| Summary: Gremlin-Python for Apache TinkerPop | ||
@@ -5,0 +5,0 @@ Home-page: http://tinkerpop.apache.org |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: gremlinpython | ||
| Version: 3.6.7 | ||
| Version: 3.7.2 | ||
| Summary: Gremlin-Python for Apache TinkerPop | ||
@@ -5,0 +5,0 @@ Home-page: http://tinkerpop.apache.org |
+2
-1
@@ -79,3 +79,4 @@ """ | ||
| 'radish-bdd==0.13.4', | ||
| 'PyHamcrest>=1.9.0,<3.0.0' | ||
| 'PyHamcrest>=1.9.0,<3.0.0', | ||
| 'PyYAML>=5.3' | ||
| ], | ||
@@ -82,0 +83,0 @@ install_requires=install_requires, |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
313109
3.59%6756
4.57%