python-arango 8.2.5__tar.gz → 8.2.6__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.
- {python_arango-8.2.5 → python_arango-8.2.6}/.gitignore +0 -3
- {python_arango-8.2.5 → python_arango-8.2.6}/.pre-commit-config.yaml +2 -2
- {python_arango-8.2.5 → python_arango-8.2.6}/PKG-INFO +4 -6
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/client.py +2 -4
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/collection.py +4 -10
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/request.py +2 -1
- python_arango-8.2.6/arango/version.py +1 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/requirements.txt +0 -1
- {python_arango-8.2.5 → python_arango-8.2.6}/pyproject.toml +6 -5
- {python_arango-8.2.5 → python_arango-8.2.6}/python_arango.egg-info/PKG-INFO +4 -6
- {python_arango-8.2.5 → python_arango-8.2.6}/python_arango.egg-info/SOURCES.txt +1 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/python_arango.egg-info/requires.txt +2 -4
- {python_arango-8.2.5 → python_arango-8.2.6}/.circleci/config.yml +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/.github/workflows/codeql.yaml +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/.github/workflows/docs.yaml +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/.github/workflows/pypi.yaml +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/.readthedocs.yaml +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/CONTRIBUTING.md +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/LICENSE +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/MANIFEST.in +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/README.md +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/__init__.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/api.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/aql.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/backup.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/cluster.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/connection.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/cursor.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/database.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/errno.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/exceptions.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/executor.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/formatter.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/foxx.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/graph.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/http.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/job.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/pregel.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/py.typed +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/replication.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/resolver.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/response.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/result.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/typings.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/utils.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/arango/wal.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/Makefile +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/admin.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/analyzer.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/aql.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/async.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/auth.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/backup.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/batch.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/certificates.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/cluster.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/collection.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/compression.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/conf.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/contributing.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/cursor.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/database.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/document.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/errno.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/errors.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/foxx.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/graph.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/http.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/index.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/indexes.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/logging.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/make.bat +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/overload.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/overview.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/pregel.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/replication.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/schema.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/serializer.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/simple.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/specs.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/static/logo.png +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/task.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/threading.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/transaction.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/user.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/view.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/docs/wal.rst +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/python_arango.egg-info/dependency_links.txt +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/python_arango.egg-info/top_level.txt +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/setup.cfg +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/setup.py +0 -0
- {python_arango-8.2.5 → python_arango-8.2.6}/starter.sh +0 -0
|
@@ -18,7 +18,7 @@ repos:
|
|
|
18
18
|
- id: trailing-whitespace
|
|
19
19
|
|
|
20
20
|
- repo: https://github.com/psf/black
|
|
21
|
-
rev:
|
|
21
|
+
rev: 26.1.0
|
|
22
22
|
hooks:
|
|
23
23
|
- id: black
|
|
24
24
|
|
|
@@ -29,7 +29,7 @@ repos:
|
|
|
29
29
|
args: [ --profile, black ]
|
|
30
30
|
|
|
31
31
|
- repo: https://github.com/PyCQA/flake8
|
|
32
|
-
rev:
|
|
32
|
+
rev: 7.3.0
|
|
33
33
|
hooks:
|
|
34
34
|
- id: flake8
|
|
35
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-arango
|
|
3
|
-
Version: 8.2.
|
|
3
|
+
Version: 8.2.6
|
|
4
4
|
Summary: Python Driver for ArangoDB
|
|
5
5
|
Author-email: Joohwan Oh <joohwan.oh@outlook.com>
|
|
6
6
|
Maintainer-email: Joohwan Oh <joohwan.oh@outlook.com>, Alexandru Petenchea <alex.petenchea@gmail.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
|
|
@@ -39,19 +39,17 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
39
39
|
Classifier: Programming Language :: Python :: 3.12
|
|
40
40
|
Classifier: Topic :: Documentation :: Sphinx
|
|
41
41
|
Classifier: Typing :: Typed
|
|
42
|
-
Requires-Python: >=3.
|
|
42
|
+
Requires-Python: >=3.10
|
|
43
43
|
Description-Content-Type: text/markdown
|
|
44
44
|
License-File: LICENSE
|
|
45
45
|
Requires-Dist: urllib3>=1.26.0
|
|
46
46
|
Requires-Dist: requests
|
|
47
47
|
Requires-Dist: requests_toolbelt
|
|
48
48
|
Requires-Dist: PyJWT
|
|
49
|
-
Requires-Dist: setuptools>=42
|
|
50
|
-
Requires-Dist: importlib_metadata>=4.7.1
|
|
51
49
|
Requires-Dist: packaging>=23.1
|
|
52
50
|
Provides-Extra: dev
|
|
53
|
-
Requires-Dist: black
|
|
54
|
-
Requires-Dist: flake8
|
|
51
|
+
Requires-Dist: black==26.1.0; extra == "dev"
|
|
52
|
+
Requires-Dist: flake8==7.3.0; extra == "dev"
|
|
55
53
|
Requires-Dist: isort>=5.10.1; extra == "dev"
|
|
56
54
|
Requires-Dist: mypy>=0.942; extra == "dev"
|
|
57
55
|
Requires-Dist: mock; extra == "dev"
|
|
@@ -3,8 +3,6 @@ __all__ = ["ArangoClient"]
|
|
|
3
3
|
from json import dumps, loads
|
|
4
4
|
from typing import Any, Callable, Optional, Sequence, Union
|
|
5
5
|
|
|
6
|
-
import importlib_metadata
|
|
7
|
-
|
|
8
6
|
from arango.connection import (
|
|
9
7
|
BasicConnection,
|
|
10
8
|
Connection,
|
|
@@ -27,6 +25,7 @@ from arango.resolver import (
|
|
|
27
25
|
RoundRobinHostResolver,
|
|
28
26
|
SingleHostResolver,
|
|
29
27
|
)
|
|
28
|
+
from arango.version import __version__
|
|
30
29
|
|
|
31
30
|
|
|
32
31
|
def default_serializer(x: Any) -> str:
|
|
@@ -175,8 +174,7 @@ class ArangoClient:
|
|
|
175
174
|
:return: Client version.
|
|
176
175
|
:rtype: str
|
|
177
176
|
"""
|
|
178
|
-
|
|
179
|
-
return version
|
|
177
|
+
return __version__
|
|
180
178
|
|
|
181
179
|
@property
|
|
182
180
|
def request_timeout(self) -> Any:
|
|
@@ -871,9 +871,7 @@ class Collection(ApiGroup):
|
|
|
871
871
|
query = """
|
|
872
872
|
FOR doc IN NEAR(@collection, @latitude, @longitude{})
|
|
873
873
|
RETURN doc
|
|
874
|
-
""".format(
|
|
875
|
-
"" if limit is None else ", @limit "
|
|
876
|
-
)
|
|
874
|
+
""".format("" if limit is None else ", @limit ")
|
|
877
875
|
|
|
878
876
|
bind_vars = {
|
|
879
877
|
"collection": self._name,
|
|
@@ -996,9 +994,7 @@ class Collection(ApiGroup):
|
|
|
996
994
|
query = """
|
|
997
995
|
FOR doc IN WITHIN(@@collection, @latitude, @longitude, @radius{})
|
|
998
996
|
RETURN doc
|
|
999
|
-
""".format(
|
|
1000
|
-
"" if distance_field is None else ", @distance"
|
|
1001
|
-
)
|
|
997
|
+
""".format("" if distance_field is None else ", @distance")
|
|
1002
998
|
|
|
1003
999
|
bind_vars = {
|
|
1004
1000
|
"@collection": self._name,
|
|
@@ -1080,7 +1076,7 @@ class Collection(ApiGroup):
|
|
|
1080
1076
|
coord_str = ""
|
|
1081
1077
|
if index is None:
|
|
1082
1078
|
# Find the first geo index
|
|
1083
|
-
for collection_index in self.indexes(): # type:ignore[union-attr]
|
|
1079
|
+
for collection_index in self.indexes(): # type: ignore[union-attr]
|
|
1084
1080
|
if collection_index["type"] == "geo":
|
|
1085
1081
|
coord_str = build_coord_str_from_index(collection_index)
|
|
1086
1082
|
break
|
|
@@ -1168,9 +1164,7 @@ class Collection(ApiGroup):
|
|
|
1168
1164
|
aql = """
|
|
1169
1165
|
FOR doc IN FULLTEXT(@collection, @field, @query{})
|
|
1170
1166
|
RETURN doc
|
|
1171
|
-
""".format(
|
|
1172
|
-
"" if limit is None else ", @limit"
|
|
1173
|
-
)
|
|
1167
|
+
""".format("" if limit is None else ", @limit")
|
|
1174
1168
|
|
|
1175
1169
|
request = Request(
|
|
1176
1170
|
method="post",
|
|
@@ -3,6 +3,7 @@ __all__ = ["Request"]
|
|
|
3
3
|
from typing import Any, MutableMapping, Optional
|
|
4
4
|
|
|
5
5
|
from arango.typings import DriverFlags, Fields, Headers, Params
|
|
6
|
+
from arango.version import __version__
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
def normalize_headers(
|
|
@@ -12,7 +13,7 @@ def normalize_headers(
|
|
|
12
13
|
if driver_flags is not None:
|
|
13
14
|
for flag in driver_flags:
|
|
14
15
|
flags = flags + flag + ";"
|
|
15
|
-
driver_version =
|
|
16
|
+
driver_version = __version__
|
|
16
17
|
driver_header = "python-arango/" + driver_version + " (" + flags + ")"
|
|
17
18
|
normalized_headers: Headers = {
|
|
18
19
|
"charset": "utf-8",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "8.2.6"
|
|
@@ -18,7 +18,7 @@ keywords = ["arangodb", "python", "driver"]
|
|
|
18
18
|
readme = "README.md"
|
|
19
19
|
dynamic = ["version"]
|
|
20
20
|
license = { file = "LICENSE" }
|
|
21
|
-
requires-python = ">=3.
|
|
21
|
+
requires-python = ">=3.10"
|
|
22
22
|
|
|
23
23
|
classifiers = [
|
|
24
24
|
"Intended Audience :: Developers",
|
|
@@ -39,15 +39,16 @@ dependencies = [
|
|
|
39
39
|
"requests",
|
|
40
40
|
"requests_toolbelt",
|
|
41
41
|
"PyJWT",
|
|
42
|
-
"setuptools>=42",
|
|
43
|
-
"importlib_metadata>=4.7.1",
|
|
44
42
|
"packaging>=23.1",
|
|
45
43
|
]
|
|
46
44
|
|
|
45
|
+
[tool.setuptools.dynamic]
|
|
46
|
+
version = { attr = "arango.version.__version__" }
|
|
47
|
+
|
|
47
48
|
[project.optional-dependencies]
|
|
48
49
|
dev = [
|
|
49
|
-
"black
|
|
50
|
-
"flake8
|
|
50
|
+
"black==26.1.0",
|
|
51
|
+
"flake8==7.3.0",
|
|
51
52
|
"isort>=5.10.1",
|
|
52
53
|
"mypy>=0.942",
|
|
53
54
|
"mock",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-arango
|
|
3
|
-
Version: 8.2.
|
|
3
|
+
Version: 8.2.6
|
|
4
4
|
Summary: Python Driver for ArangoDB
|
|
5
5
|
Author-email: Joohwan Oh <joohwan.oh@outlook.com>
|
|
6
6
|
Maintainer-email: Joohwan Oh <joohwan.oh@outlook.com>, Alexandru Petenchea <alex.petenchea@gmail.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
|
|
@@ -39,19 +39,17 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
39
39
|
Classifier: Programming Language :: Python :: 3.12
|
|
40
40
|
Classifier: Topic :: Documentation :: Sphinx
|
|
41
41
|
Classifier: Typing :: Typed
|
|
42
|
-
Requires-Python: >=3.
|
|
42
|
+
Requires-Python: >=3.10
|
|
43
43
|
Description-Content-Type: text/markdown
|
|
44
44
|
License-File: LICENSE
|
|
45
45
|
Requires-Dist: urllib3>=1.26.0
|
|
46
46
|
Requires-Dist: requests
|
|
47
47
|
Requires-Dist: requests_toolbelt
|
|
48
48
|
Requires-Dist: PyJWT
|
|
49
|
-
Requires-Dist: setuptools>=42
|
|
50
|
-
Requires-Dist: importlib_metadata>=4.7.1
|
|
51
49
|
Requires-Dist: packaging>=23.1
|
|
52
50
|
Provides-Extra: dev
|
|
53
|
-
Requires-Dist: black
|
|
54
|
-
Requires-Dist: flake8
|
|
51
|
+
Requires-Dist: black==26.1.0; extra == "dev"
|
|
52
|
+
Requires-Dist: flake8==7.3.0; extra == "dev"
|
|
55
53
|
Requires-Dist: isort>=5.10.1; extra == "dev"
|
|
56
54
|
Requires-Dist: mypy>=0.942; extra == "dev"
|
|
57
55
|
Requires-Dist: mock; extra == "dev"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|