gremlinpython 3.7.3__tar.gz → 3.7.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gremlinpython-3.7.5/NOTICE +5 -0
- {gremlinpython-3.7.3/gremlinpython.egg-info → gremlinpython-3.7.5}/PKG-INFO +19 -9
- {gremlinpython-3.7.3/gremlin_python/process → gremlinpython-3.7.5/gremlin_python}/__init__.py +1 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/__version__.py +2 -2
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/aiohttp/transport.py +2 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/useragent.py +1 -1
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/process/graph_traversal.py +88 -6
- {gremlinpython-3.7.3 → gremlinpython-3.7.5/gremlinpython.egg-info}/PKG-INFO +19 -9
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlinpython.egg-info/SOURCES.txt +3 -3
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlinpython.egg-info/requires.txt +6 -0
- gremlinpython-3.7.5/pyproject.toml +76 -0
- gremlinpython-3.7.5/setup.cfg +4 -0
- gremlinpython-3.7.5/tests/test_statics.py +65 -0
- gremlinpython-3.7.3/NOTICE +0 -5
- gremlinpython-3.7.3/setup.cfg +0 -11
- gremlinpython-3.7.3/setup.py +0 -91
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/LICENSE +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/MANIFEST.in +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/README.rst +0 -0
- {gremlinpython-3.7.3/gremlin_python → gremlinpython-3.7.5/gremlin_python/driver}/__init__.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/aiohttp/__init__.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/client.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/connection.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/driver_remote_connection.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/protocol.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/remote_connection.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/request.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/resultset.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/serializer.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/transport.py +0 -0
- {gremlinpython-3.7.3/gremlin_python/driver → gremlinpython-3.7.5/gremlin_python/process}/__init__.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/process/anonymous_traversal.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/process/strategies.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/process/translator.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/process/traversal.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/statics.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/__init__.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/graph.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/io/__init__.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/io/graphbinaryV1.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/io/graphsonV2d0.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/io/graphsonV3d0.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/structure/io/util.py +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlinpython.egg-info/dependency_links.txt +0 -0
- {gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlinpython.egg-info/top_level.txt +0 -0
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gremlinpython
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.5
|
|
4
4
|
Summary: Gremlin-Python for Apache TinkerPop
|
|
5
|
-
|
|
6
|
-
Maintainer: Apache TinkerPop
|
|
7
|
-
Maintainer-email: dev@tinkerpop.apache.org
|
|
5
|
+
Maintainer-email: Apache TinkerPop <dev@tinkerpop.apache.org>
|
|
8
6
|
License: Apache 2
|
|
9
|
-
|
|
7
|
+
Project-URL: Homepage, https://tinkerpop.apache.org
|
|
10
8
|
Classifier: Intended Audience :: Developers
|
|
11
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
10
|
Classifier: Natural Language :: English
|
|
13
11
|
Classifier: Programming Language :: Python :: 3
|
|
14
12
|
Requires-Python: >=3.9
|
|
15
13
|
Description-Content-Type: text/x-rst
|
|
16
|
-
Provides-Extra: kerberos
|
|
17
|
-
Provides-Extra: ujson
|
|
18
14
|
License-File: LICENSE
|
|
19
15
|
License-File: NOTICE
|
|
16
|
+
Requires-Dist: nest_asyncio
|
|
17
|
+
Requires-Dist: aiohttp<4.0.0,>=3.8.0
|
|
18
|
+
Requires-Dist: aenum<4.0.0,>=1.4.5
|
|
19
|
+
Requires-Dist: isodate<1.0.0,>=0.6.0
|
|
20
|
+
Requires-Dist: async-timeout<5.0.0,>=4.0.3
|
|
21
|
+
Provides-Extra: kerberos
|
|
22
|
+
Requires-Dist: kerberos<2.0.0,>=1.3.0; extra == "kerberos"
|
|
23
|
+
Provides-Extra: ujson
|
|
24
|
+
Requires-Dist: ujson>=2.0.0; extra == "ujson"
|
|
25
|
+
Provides-Extra: test
|
|
26
|
+
Requires-Dist: pytest<7.2.0,>=4.6.4; extra == "test"
|
|
27
|
+
Requires-Dist: radish-bdd==0.18.2; extra == "test"
|
|
28
|
+
Requires-Dist: PyHamcrest<3.0.0,>=1.9.0; extra == "test"
|
|
29
|
+
Requires-Dist: PyYAML>=5.3; extra == "test"
|
|
30
|
+
Dynamic: license-file
|
|
20
31
|
|
|
21
32
|
.. Licensed to the Apache Software Foundation (ASF) under one
|
|
22
33
|
.. or more contributor license agreements. See the NOTICE file
|
|
@@ -137,4 +148,3 @@ Update Vertex
|
|
|
137
148
|
|
|
138
149
|
NOTE that versions suffixed with "rc" are considered release candidates (i.e. pre-alpha, alpha, beta, etc.) and
|
|
139
150
|
thus for early testing purposes only. These releases are not suitable for production.
|
|
140
|
-
|
|
@@ -54,6 +54,8 @@ class AiohttpTransport(AbstractBaseTransport):
|
|
|
54
54
|
self._enable_compression = enable_compression
|
|
55
55
|
if "max_content_length" in self._aiohttp_kwargs:
|
|
56
56
|
self._aiohttp_kwargs["max_msg_size"] = self._aiohttp_kwargs.pop("max_content_length")
|
|
57
|
+
if "max_msg_size" not in self._aiohttp_kwargs:
|
|
58
|
+
self._aiohttp_kwargs["max_msg_size"] = 10 * 1024 * 1024
|
|
57
59
|
if "ssl_options" in self._aiohttp_kwargs:
|
|
58
60
|
self._aiohttp_kwargs["ssl"] = self._aiohttp_kwargs.pop("ssl_options")
|
|
59
61
|
if self._enable_compression and "compress" not in self._aiohttp_kwargs:
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
#
|
|
19
19
|
import platform
|
|
20
20
|
|
|
21
|
-
gremlin_version = "3.7.
|
|
21
|
+
gremlin_version = "3.7.5" # DO NOT MODIFY - Configured automatically by Maven Replacer Plugin
|
|
22
22
|
|
|
23
23
|
def _generate_user_agent():
|
|
24
24
|
application_name = "NotAvailable"
|
|
@@ -542,9 +542,16 @@ class GraphTraversal(Traversal):
|
|
|
542
542
|
"gremlin_python.process.GraphTraversalSource.hasKey will be replaced by "
|
|
543
543
|
"gremlin_python.process.GraphTraversalSource.has_key.",
|
|
544
544
|
DeprecationWarning)
|
|
545
|
-
return self.
|
|
545
|
+
return self.has_key(*args)
|
|
546
546
|
|
|
547
547
|
def has_key_(self, *args):
|
|
548
|
+
warnings.warn(
|
|
549
|
+
"gremlin_python.process.GraphTraversalSource.has_key_ will be replaced by "
|
|
550
|
+
"gremlin_python.process.GraphTraversalSource.has_key.",
|
|
551
|
+
DeprecationWarning)
|
|
552
|
+
return self.has_key(*args)
|
|
553
|
+
|
|
554
|
+
def has_key(self, *args):
|
|
548
555
|
self.bytecode.add_step("hasKey", *args)
|
|
549
556
|
return self
|
|
550
557
|
|
|
@@ -1301,11 +1308,19 @@ class __(object, metaclass=MagicType):
|
|
|
1301
1308
|
"gremlin_python.process.__.hasKey will be replaced by "
|
|
1302
1309
|
"gremlin_python.process.__.has_key.",
|
|
1303
1310
|
DeprecationWarning)
|
|
1304
|
-
return cls.
|
|
1311
|
+
return cls.has_key(*args)
|
|
1305
1312
|
|
|
1306
1313
|
@classmethod
|
|
1307
1314
|
def has_key_(cls, *args):
|
|
1308
|
-
|
|
1315
|
+
warnings.warn(
|
|
1316
|
+
"gremlin_python.process.__.has_key_ will be replaced by "
|
|
1317
|
+
"gremlin_python.process.__.has_key.",
|
|
1318
|
+
DeprecationWarning)
|
|
1319
|
+
return cls.has_key(*args)
|
|
1320
|
+
|
|
1321
|
+
@classmethod
|
|
1322
|
+
def has_key (cls, *args):
|
|
1323
|
+
return cls.graph_traversal(None, None, Bytecode()).has_key(*args)
|
|
1309
1324
|
|
|
1310
1325
|
@classmethod
|
|
1311
1326
|
def hasLabel(cls, *args):
|
|
@@ -1467,6 +1482,10 @@ class __(object, metaclass=MagicType):
|
|
|
1467
1482
|
def min_(cls, *args):
|
|
1468
1483
|
return cls.graph_traversal(None, None, Bytecode()).min_(*args)
|
|
1469
1484
|
|
|
1485
|
+
@classmethod
|
|
1486
|
+
def none(cls, *args):
|
|
1487
|
+
return cls.graph_traversal(None, None, Bytecode()).none(*args)
|
|
1488
|
+
|
|
1470
1489
|
@classmethod
|
|
1471
1490
|
def not_(cls, *args):
|
|
1472
1491
|
return cls.graph_traversal(None, None, Bytecode()).not_(*args)
|
|
@@ -1847,10 +1866,18 @@ def aggregate(*args):
|
|
|
1847
1866
|
return __.aggregate(*args)
|
|
1848
1867
|
|
|
1849
1868
|
|
|
1869
|
+
def all_(*args):
|
|
1870
|
+
return __.all_(*args)
|
|
1871
|
+
|
|
1872
|
+
|
|
1850
1873
|
def and_(*args):
|
|
1851
1874
|
return __.and_(*args)
|
|
1852
1875
|
|
|
1853
1876
|
|
|
1877
|
+
def any_(*args):
|
|
1878
|
+
return __.any_(*args)
|
|
1879
|
+
|
|
1880
|
+
|
|
1854
1881
|
def as_(*args):
|
|
1855
1882
|
return __.as_(*args)
|
|
1856
1883
|
|
|
@@ -1911,10 +1938,18 @@ def coin(*args):
|
|
|
1911
1938
|
return __.coin(*args)
|
|
1912
1939
|
|
|
1913
1940
|
|
|
1941
|
+
def combine(*args):
|
|
1942
|
+
return __.combine(*args)
|
|
1943
|
+
|
|
1944
|
+
|
|
1914
1945
|
def concat(*args):
|
|
1915
1946
|
return __.concat(*args)
|
|
1916
1947
|
|
|
1917
1948
|
|
|
1949
|
+
def conjoin(*args):
|
|
1950
|
+
return __.conjoin(*args)
|
|
1951
|
+
|
|
1952
|
+
|
|
1918
1953
|
def constant(*args):
|
|
1919
1954
|
return __.constant(*args)
|
|
1920
1955
|
|
|
@@ -1943,6 +1978,14 @@ def dedup(*args):
|
|
|
1943
1978
|
return __.dedup(*args)
|
|
1944
1979
|
|
|
1945
1980
|
|
|
1981
|
+
def difference(*args):
|
|
1982
|
+
return __.difference(*args)
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
def disjunct(*args):
|
|
1986
|
+
return __.disjunct(*args)
|
|
1987
|
+
|
|
1988
|
+
|
|
1946
1989
|
def drop(*args):
|
|
1947
1990
|
return __.drop(*args)
|
|
1948
1991
|
|
|
@@ -2012,12 +2055,14 @@ def has_id(*args):
|
|
|
2012
2055
|
|
|
2013
2056
|
|
|
2014
2057
|
def hasKey(*args):
|
|
2015
|
-
return __.
|
|
2058
|
+
return __.has_key(*args)
|
|
2016
2059
|
|
|
2017
2060
|
|
|
2018
2061
|
def has_key_(*args):
|
|
2019
|
-
return __.
|
|
2062
|
+
return __.has_key(*args)
|
|
2020
2063
|
|
|
2064
|
+
def has_key(*args):
|
|
2065
|
+
return __.has_key(*args)
|
|
2021
2066
|
|
|
2022
2067
|
def hasLabel(*args):
|
|
2023
2068
|
return __.has_label(*args)
|
|
@@ -2079,6 +2124,10 @@ def inject(*args):
|
|
|
2079
2124
|
return __.inject(*args)
|
|
2080
2125
|
|
|
2081
2126
|
|
|
2127
|
+
def intersect(*args):
|
|
2128
|
+
return __.intersect(*args)
|
|
2129
|
+
|
|
2130
|
+
|
|
2082
2131
|
def is_(*args):
|
|
2083
2132
|
return __.is_(*args)
|
|
2084
2133
|
|
|
@@ -2135,6 +2184,10 @@ def mean(*args):
|
|
|
2135
2184
|
return __.mean(*args)
|
|
2136
2185
|
|
|
2137
2186
|
|
|
2187
|
+
def merge(*args):
|
|
2188
|
+
return __.merge(*args)
|
|
2189
|
+
|
|
2190
|
+
|
|
2138
2191
|
def merge_e(*args):
|
|
2139
2192
|
return __.merge_e(*args)
|
|
2140
2193
|
|
|
@@ -2147,6 +2200,10 @@ def min_(*args):
|
|
|
2147
2200
|
return __.min_(*args)
|
|
2148
2201
|
|
|
2149
2202
|
|
|
2203
|
+
def none(*args):
|
|
2204
|
+
return __.none(*args)
|
|
2205
|
+
|
|
2206
|
+
|
|
2150
2207
|
def not_(*args):
|
|
2151
2208
|
return __.not_(*args)
|
|
2152
2209
|
|
|
@@ -2195,6 +2252,10 @@ def path(*args):
|
|
|
2195
2252
|
return __.path(*args)
|
|
2196
2253
|
|
|
2197
2254
|
|
|
2255
|
+
def product(*args):
|
|
2256
|
+
return __.product(*args)
|
|
2257
|
+
|
|
2258
|
+
|
|
2198
2259
|
def project(*args):
|
|
2199
2260
|
return __.project(*args)
|
|
2200
2261
|
|
|
@@ -2374,6 +2435,7 @@ def values(*args):
|
|
|
2374
2435
|
def where(*args):
|
|
2375
2436
|
return __.where(*args)
|
|
2376
2437
|
|
|
2438
|
+
statics.add_static('E', E)
|
|
2377
2439
|
|
|
2378
2440
|
statics.add_static('V', V)
|
|
2379
2441
|
|
|
@@ -2387,8 +2449,12 @@ statics.add_static('add_v', add_v)
|
|
|
2387
2449
|
|
|
2388
2450
|
statics.add_static('aggregate', aggregate)
|
|
2389
2451
|
|
|
2452
|
+
statics.add_static('all_', all_)
|
|
2453
|
+
|
|
2390
2454
|
statics.add_static('and_', and_)
|
|
2391
2455
|
|
|
2456
|
+
statics.add_static('any_', any_)
|
|
2457
|
+
|
|
2392
2458
|
statics.add_static('as_', as_)
|
|
2393
2459
|
|
|
2394
2460
|
statics.add_static('as_date', as_date)
|
|
@@ -2419,8 +2485,12 @@ statics.add_static('coalesce', coalesce)
|
|
|
2419
2485
|
|
|
2420
2486
|
statics.add_static('coin', coin)
|
|
2421
2487
|
|
|
2488
|
+
statics.add_static('combine', combine)
|
|
2489
|
+
|
|
2422
2490
|
statics.add_static('concat', concat)
|
|
2423
2491
|
|
|
2492
|
+
statics.add_static('conjoin', conjoin)
|
|
2493
|
+
|
|
2424
2494
|
statics.add_static('constant', constant)
|
|
2425
2495
|
|
|
2426
2496
|
statics.add_static('count', count)
|
|
@@ -2435,6 +2505,10 @@ statics.add_static('date_diff', date_diff)
|
|
|
2435
2505
|
|
|
2436
2506
|
statics.add_static('dedup', dedup)
|
|
2437
2507
|
|
|
2508
|
+
statics.add_static('difference', difference)
|
|
2509
|
+
|
|
2510
|
+
statics.add_static('disjunct', disjunct)
|
|
2511
|
+
|
|
2438
2512
|
statics.add_static('drop', drop)
|
|
2439
2513
|
|
|
2440
2514
|
statics.add_static('element', element)
|
|
@@ -2471,7 +2545,7 @@ statics.add_static('has_id', has_id)
|
|
|
2471
2545
|
|
|
2472
2546
|
statics.add_static('hasKey', hasKey)
|
|
2473
2547
|
|
|
2474
|
-
statics.add_static('has_key',
|
|
2548
|
+
statics.add_static('has_key', has_key)
|
|
2475
2549
|
|
|
2476
2550
|
statics.add_static('hasLabel', hasLabel)
|
|
2477
2551
|
|
|
@@ -2501,6 +2575,8 @@ statics.add_static('index', index)
|
|
|
2501
2575
|
|
|
2502
2576
|
statics.add_static('inject', inject)
|
|
2503
2577
|
|
|
2578
|
+
statics.add_static('intersect', intersect)
|
|
2579
|
+
|
|
2504
2580
|
statics.add_static('is_', is_)
|
|
2505
2581
|
|
|
2506
2582
|
statics.add_static('key', key)
|
|
@@ -2529,12 +2605,16 @@ statics.add_static('max_', max_)
|
|
|
2529
2605
|
|
|
2530
2606
|
statics.add_static('mean', mean)
|
|
2531
2607
|
|
|
2608
|
+
statics.add_static('merge', merge)
|
|
2609
|
+
|
|
2532
2610
|
statics.add_static('merge_e', merge_e)
|
|
2533
2611
|
|
|
2534
2612
|
statics.add_static('merge_v', merge_v)
|
|
2535
2613
|
|
|
2536
2614
|
statics.add_static('min_', min_)
|
|
2537
2615
|
|
|
2616
|
+
statics.add_static('none', none)
|
|
2617
|
+
|
|
2538
2618
|
statics.add_static('not_', not_)
|
|
2539
2619
|
|
|
2540
2620
|
statics.add_static('optional', optional)
|
|
@@ -2559,6 +2639,8 @@ statics.add_static('out_v', out_v)
|
|
|
2559
2639
|
|
|
2560
2640
|
statics.add_static('path', path)
|
|
2561
2641
|
|
|
2642
|
+
statics.add_static('product', product)
|
|
2643
|
+
|
|
2562
2644
|
statics.add_static('project', project)
|
|
2563
2645
|
|
|
2564
2646
|
statics.add_static('properties', properties)
|
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gremlinpython
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.5
|
|
4
4
|
Summary: Gremlin-Python for Apache TinkerPop
|
|
5
|
-
|
|
6
|
-
Maintainer: Apache TinkerPop
|
|
7
|
-
Maintainer-email: dev@tinkerpop.apache.org
|
|
5
|
+
Maintainer-email: Apache TinkerPop <dev@tinkerpop.apache.org>
|
|
8
6
|
License: Apache 2
|
|
9
|
-
|
|
7
|
+
Project-URL: Homepage, https://tinkerpop.apache.org
|
|
10
8
|
Classifier: Intended Audience :: Developers
|
|
11
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
10
|
Classifier: Natural Language :: English
|
|
13
11
|
Classifier: Programming Language :: Python :: 3
|
|
14
12
|
Requires-Python: >=3.9
|
|
15
13
|
Description-Content-Type: text/x-rst
|
|
16
|
-
Provides-Extra: kerberos
|
|
17
|
-
Provides-Extra: ujson
|
|
18
14
|
License-File: LICENSE
|
|
19
15
|
License-File: NOTICE
|
|
16
|
+
Requires-Dist: nest_asyncio
|
|
17
|
+
Requires-Dist: aiohttp<4.0.0,>=3.8.0
|
|
18
|
+
Requires-Dist: aenum<4.0.0,>=1.4.5
|
|
19
|
+
Requires-Dist: isodate<1.0.0,>=0.6.0
|
|
20
|
+
Requires-Dist: async-timeout<5.0.0,>=4.0.3
|
|
21
|
+
Provides-Extra: kerberos
|
|
22
|
+
Requires-Dist: kerberos<2.0.0,>=1.3.0; extra == "kerberos"
|
|
23
|
+
Provides-Extra: ujson
|
|
24
|
+
Requires-Dist: ujson>=2.0.0; extra == "ujson"
|
|
25
|
+
Provides-Extra: test
|
|
26
|
+
Requires-Dist: pytest<7.2.0,>=4.6.4; extra == "test"
|
|
27
|
+
Requires-Dist: radish-bdd==0.18.2; extra == "test"
|
|
28
|
+
Requires-Dist: PyHamcrest<3.0.0,>=1.9.0; extra == "test"
|
|
29
|
+
Requires-Dist: PyYAML>=5.3; extra == "test"
|
|
30
|
+
Dynamic: license-file
|
|
20
31
|
|
|
21
32
|
.. Licensed to the Apache Software Foundation (ASF) under one
|
|
22
33
|
.. or more contributor license agreements. See the NOTICE file
|
|
@@ -137,4 +148,3 @@ Update Vertex
|
|
|
137
148
|
|
|
138
149
|
NOTE that versions suffixed with "rc" are considered release candidates (i.e. pre-alpha, alpha, beta, etc.) and
|
|
139
150
|
thus for early testing purposes only. These releases are not suitable for production.
|
|
140
|
-
|
|
@@ -2,8 +2,7 @@ LICENSE
|
|
|
2
2
|
MANIFEST.in
|
|
3
3
|
NOTICE
|
|
4
4
|
README.rst
|
|
5
|
-
|
|
6
|
-
setup.py
|
|
5
|
+
pyproject.toml
|
|
7
6
|
gremlin_python/__init__.py
|
|
8
7
|
gremlin_python/__version__.py
|
|
9
8
|
gremlin_python/statics.py
|
|
@@ -37,4 +36,5 @@ gremlinpython.egg-info/PKG-INFO
|
|
|
37
36
|
gremlinpython.egg-info/SOURCES.txt
|
|
38
37
|
gremlinpython.egg-info/dependency_links.txt
|
|
39
38
|
gremlinpython.egg-info/requires.txt
|
|
40
|
-
gremlinpython.egg-info/top_level.txt
|
|
39
|
+
gremlinpython.egg-info/top_level.txt
|
|
40
|
+
tests/test_statics.py
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
|
3
|
+
# distributed with this work for additional information
|
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
|
6
|
+
# "License"); you may not use this file except in compliance
|
|
7
|
+
# with the License. You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
|
12
|
+
# software distributed under the License is distributed on an
|
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
# KIND, either express or implied. See the License for the
|
|
15
|
+
# specific language governing permissions and limitations
|
|
16
|
+
# under the License.
|
|
17
|
+
|
|
18
|
+
[build-system]
|
|
19
|
+
requires = ["setuptools>=60", "wheel"]
|
|
20
|
+
build-backend = "setuptools.build_meta"
|
|
21
|
+
|
|
22
|
+
[project]
|
|
23
|
+
name = "gremlinpython"
|
|
24
|
+
dynamic = ["version"]
|
|
25
|
+
description = "Gremlin-Python for Apache TinkerPop"
|
|
26
|
+
readme = {file = "README.rst", content-type = "text/x-rst"}
|
|
27
|
+
license = {text = "Apache 2"}
|
|
28
|
+
maintainers = [{name = "Apache TinkerPop", email = "dev@tinkerpop.apache.org"}]
|
|
29
|
+
requires-python = ">=3.9"
|
|
30
|
+
dependencies = [
|
|
31
|
+
"nest_asyncio",
|
|
32
|
+
"aiohttp>=3.8.0,<4.0.0",
|
|
33
|
+
"aenum>=1.4.5,<4.0.0",
|
|
34
|
+
"isodate>=0.6.0,<1.0.0",
|
|
35
|
+
"async-timeout>=4.0.3,<5.0.0"
|
|
36
|
+
]
|
|
37
|
+
classifiers = [
|
|
38
|
+
"Intended Audience :: Developers",
|
|
39
|
+
"License :: OSI Approved :: Apache Software License",
|
|
40
|
+
"Natural Language :: English",
|
|
41
|
+
"Programming Language :: Python :: 3"
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[project.urls]
|
|
45
|
+
Homepage = "https://tinkerpop.apache.org"
|
|
46
|
+
|
|
47
|
+
[project.optional-dependencies]
|
|
48
|
+
kerberos = ["kerberos>=1.3.0,<2.0.0"]
|
|
49
|
+
ujson = ["ujson>=2.0.0"]
|
|
50
|
+
test = [
|
|
51
|
+
"pytest>=4.6.4,<7.2.0",
|
|
52
|
+
"radish-bdd==0.18.2",
|
|
53
|
+
"PyHamcrest>=1.9.0,<3.0.0",
|
|
54
|
+
"PyYAML>=5.3"
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
[tool.pytest.ini_options]
|
|
58
|
+
addopts = "--junitxml=./python-reports/TEST-native-python.xml -sv"
|
|
59
|
+
norecursedirs = [".*", "build", "dist", "CVS", "_darcs", "{arch}", "*.egg", "lib", "lib64"]
|
|
60
|
+
testpaths = ["tests"]
|
|
61
|
+
|
|
62
|
+
[tool.setuptools.dynamic]
|
|
63
|
+
version = {attr = "gremlin_python.__version__"}
|
|
64
|
+
|
|
65
|
+
[tool.setuptools.package-data]
|
|
66
|
+
"*" = ["LICENSE", "NOTICE"]
|
|
67
|
+
|
|
68
|
+
[tool.setuptools]
|
|
69
|
+
packages = [
|
|
70
|
+
"gremlin_python",
|
|
71
|
+
"gremlin_python.driver",
|
|
72
|
+
"gremlin_python.driver.aiohttp",
|
|
73
|
+
"gremlin_python.process",
|
|
74
|
+
"gremlin_python.structure",
|
|
75
|
+
"gremlin_python.structure.io"
|
|
76
|
+
]
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
# or more contributor license agreements. See the NOTICE file
|
|
4
|
+
# distributed with this work for additional information
|
|
5
|
+
# regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
# to you under the Apache License, Version 2.0 (the
|
|
7
|
+
# "License"); you may not use this file except in compliance
|
|
8
|
+
# with the License. You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing,
|
|
13
|
+
# software distributed under the License is distributed on an
|
|
14
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
# KIND, either express or implied. See the License for the
|
|
16
|
+
# specific language governing permissions and limitations
|
|
17
|
+
# under the License.
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
__author__ = 'Marko A. Rodriguez (http://markorodriguez.com)'
|
|
21
|
+
|
|
22
|
+
from gremlin_python import statics
|
|
23
|
+
from gremlin_python.process.traversal import Cardinality
|
|
24
|
+
from gremlin_python.process.traversal import P
|
|
25
|
+
from gremlin_python.process.traversal import Pop
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class TestStatics(object):
|
|
29
|
+
def test_enums(self):
|
|
30
|
+
statics.load_statics(globals())
|
|
31
|
+
assert isinstance(list_, Cardinality)
|
|
32
|
+
assert list_ is Cardinality.list_
|
|
33
|
+
#
|
|
34
|
+
assert isinstance(eq(2), P)
|
|
35
|
+
assert eq(2) == P.eq(2)
|
|
36
|
+
#
|
|
37
|
+
assert isinstance(first, Pop)
|
|
38
|
+
assert first == Pop.first
|
|
39
|
+
statics.unload_statics(globals())
|
|
40
|
+
|
|
41
|
+
def test_singlebyte(self):
|
|
42
|
+
assert -128 == statics.SingleByte(-128)
|
|
43
|
+
assert 1 == statics.SingleByte(1)
|
|
44
|
+
assert 127 == statics.SingleByte(127)
|
|
45
|
+
try:
|
|
46
|
+
statics.SingleByte(128)
|
|
47
|
+
raise Exception("SingleByte should throw a value error if input is larger than 127")
|
|
48
|
+
except ValueError:
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
statics.SingleByte(-129)
|
|
53
|
+
raise Exception("SingleByte should throw a value error if input is smaller than -128")
|
|
54
|
+
except ValueError:
|
|
55
|
+
pass
|
|
56
|
+
|
|
57
|
+
def test_singlechar(self):
|
|
58
|
+
assert 'a' == statics.SingleChar('a')
|
|
59
|
+
assert chr(76) == statics.SingleChar(chr(76))
|
|
60
|
+
assert chr(57344) == statics.SingleChar(chr(57344))
|
|
61
|
+
try:
|
|
62
|
+
statics.SingleChar('abc')
|
|
63
|
+
raise Exception("SingleChar should throw a value error if input is not a single character string")
|
|
64
|
+
except ValueError:
|
|
65
|
+
pass
|
gremlinpython-3.7.3/NOTICE
DELETED
gremlinpython-3.7.3/setup.cfg
DELETED
gremlinpython-3.7.3/setup.py
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
-
or more contributor license agreements. See the NOTICE file
|
|
4
|
-
distributed with this work for additional information
|
|
5
|
-
regarding copyright ownership. The ASF licenses this file
|
|
6
|
-
to you under the Apache License, Version 2.0 (the
|
|
7
|
-
"License"); you may not use this file except in compliance
|
|
8
|
-
with the License. You may obtain a copy of the License at
|
|
9
|
-
|
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
|
|
12
|
-
Unless required by applicable law or agreed to in writing,
|
|
13
|
-
software distributed under the License is distributed on an
|
|
14
|
-
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
-
KIND, either express or implied. See the License for the
|
|
16
|
-
specific language governing permissions and limitations
|
|
17
|
-
under the License.
|
|
18
|
-
"""
|
|
19
|
-
import codecs
|
|
20
|
-
import os
|
|
21
|
-
import time
|
|
22
|
-
from setuptools import setup
|
|
23
|
-
|
|
24
|
-
# Folder containing the setup.py
|
|
25
|
-
root = os.path.dirname(os.path.abspath(__file__))
|
|
26
|
-
|
|
27
|
-
# Path to __version__ module
|
|
28
|
-
version_file = os.path.join(root, 'gremlin_python', '__version__.py')
|
|
29
|
-
|
|
30
|
-
# Check if this is a source distribution.
|
|
31
|
-
# If not create the __version__ module containing the version
|
|
32
|
-
if not os.path.exists(os.path.join(root, 'PKG-INFO')):
|
|
33
|
-
timestamp = int(os.getenv('TIMESTAMP', time.time() * 1000)) / 1000
|
|
34
|
-
fd = codecs.open(version_file, 'w', 'utf-8')
|
|
35
|
-
fd.write("'''")
|
|
36
|
-
fd.write(__doc__)
|
|
37
|
-
fd.write("'''\n")
|
|
38
|
-
fd.write('version = %r\n' % os.getenv('VERSION', '?').replace('-SNAPSHOT', '.dev-%d' % timestamp))
|
|
39
|
-
fd.write('timestamp = %d\n' % timestamp)
|
|
40
|
-
fd.close()
|
|
41
|
-
# Load version
|
|
42
|
-
from gremlin_python import __version__
|
|
43
|
-
|
|
44
|
-
version = __version__.version
|
|
45
|
-
|
|
46
|
-
install_requires = [
|
|
47
|
-
'nest_asyncio',
|
|
48
|
-
'aiohttp>=3.8.0,<4.0.0',
|
|
49
|
-
'aenum>=1.4.5,<4.0.0',
|
|
50
|
-
'isodate>=0.6.0,<1.0.0',
|
|
51
|
-
'async-timeout>=4.0.3,<5.0.0'
|
|
52
|
-
]
|
|
53
|
-
|
|
54
|
-
setup(
|
|
55
|
-
name='gremlinpython',
|
|
56
|
-
version=version,
|
|
57
|
-
packages=['gremlin_python', 'gremlin_python.driver',
|
|
58
|
-
'gremlin_python.driver.aiohttp', 'gremlin_python.process',
|
|
59
|
-
'gremlin_python.structure', 'gremlin_python.structure.io'],
|
|
60
|
-
license='Apache 2',
|
|
61
|
-
url='https://tinkerpop.apache.org',
|
|
62
|
-
description='Gremlin-Python for Apache TinkerPop',
|
|
63
|
-
maintainer='Apache TinkerPop',
|
|
64
|
-
maintainer_email='dev@tinkerpop.apache.org',
|
|
65
|
-
long_description=codecs.open("README.rst", "r", "UTF-8").read(),
|
|
66
|
-
long_description_content_type='text/x-rst',
|
|
67
|
-
test_suite="tests",
|
|
68
|
-
data_files=[("", ["LICENSE", "NOTICE"])],
|
|
69
|
-
setup_requires=[
|
|
70
|
-
'pytest-runner==6.0.0',
|
|
71
|
-
'importlib-metadata<5.0.0'
|
|
72
|
-
],
|
|
73
|
-
tests_require=[
|
|
74
|
-
'pytest>=4.6.4,<7.2.0',
|
|
75
|
-
'radish-bdd==0.13.4',
|
|
76
|
-
'PyHamcrest>=1.9.0,<3.0.0',
|
|
77
|
-
'PyYAML>=5.3'
|
|
78
|
-
],
|
|
79
|
-
install_requires=install_requires,
|
|
80
|
-
extras_require={
|
|
81
|
-
'kerberos': 'kerberos>=1.3.0,<2.0.0', # Does not install in Microsoft Windows
|
|
82
|
-
'ujson': 'ujson>=2.0.0'
|
|
83
|
-
},
|
|
84
|
-
classifiers=[
|
|
85
|
-
"Intended Audience :: Developers",
|
|
86
|
-
"License :: OSI Approved :: Apache Software License",
|
|
87
|
-
"Natural Language :: English",
|
|
88
|
-
"Programming Language :: Python :: 3"
|
|
89
|
-
],
|
|
90
|
-
python_requires='>=3.9'
|
|
91
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gremlinpython-3.7.3/gremlin_python → gremlinpython-3.7.5/gremlin_python/driver}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gremlinpython-3.7.3 → gremlinpython-3.7.5}/gremlin_python/driver/driver_remote_connection.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{gremlinpython-3.7.3/gremlin_python/driver → gremlinpython-3.7.5/gremlin_python/process}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|