New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gremlinpython

Package Overview
Dependencies
Maintainers
3
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gremlinpython - pypi Package Compare versions

Comparing version
3.6.8
to
3.7.3
+2
-2
gremlin_python/__version__.py

@@ -19,3 +19,3 @@ '''

'''
version = '3.6.8'
timestamp = 1730222094
version = '3.7.3'
timestamp = 1730223986

@@ -180,5 +180,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.8" # DO NOT MODIFY - Configured automatically by Maven Replacer Plugin
gremlin_version = "3.7.3" # 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,7 @@ 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)
props = r.read_object(b)
# null properties are returned as empty lists
properties = [] if props is None else props
edge = Edge(edgeid, outv, edgelbl, inv, properties)
return edge

@@ -686,4 +690,8 @@

def _read_vertex(cls, b, r):
vertex = Vertex(r.read_object(b), r.to_object(b, DataType.string, False))
b.read(2)
vertex_id = r.read_object(b)
vertex_label = r.to_object(b, DataType.string, False)
props = r.read_object(b)
# null properties are returned as empty lists
properties = [] if props is None else props
vertex = Vertex(vertex_id, vertex_label, properties)
return vertex

@@ -714,3 +722,6 @@

vp = VertexProperty(r.read_object(b), r.to_object(b, DataType.string, False), r.read_object(b), None)
b.read(4)
b.read(2)
properties = r.read_object(b)
# null properties are returned as empty lists
vp.properties = [] if properties is None else properties
return vp

@@ -926,2 +937,7 @@

class DTIO(_EnumIO):
graphbinary_type = DataType.dt
python_type = DT
class MergeIO(_EnumIO):

@@ -928,0 +944,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.8
Version: 3.7.3
Summary: Gremlin-Python for Apache TinkerPop

@@ -5,0 +5,0 @@ Home-page: https://tinkerpop.apache.org

Metadata-Version: 2.1
Name: gremlinpython
Version: 3.6.8
Version: 3.7.3
Summary: Gremlin-Python for Apache TinkerPop

@@ -5,0 +5,0 @@ Home-page: https://tinkerpop.apache.org

@@ -76,3 +76,4 @@ """

'radish-bdd==0.13.4',
'PyHamcrest>=1.9.0,<3.0.0'
'PyHamcrest>=1.9.0,<3.0.0',
'PyYAML>=5.3'
],

@@ -79,0 +80,0 @@ install_requires=install_requires,

Sorry, the diff of this file is too big to display