python-arango-async 1.0.3__tar.gz → 1.0.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.
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.circleci/config.yml +3 -3
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/CONTRIBUTING.md +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/PKG-INFO +3 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/README.md +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/aql.py +19 -19
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/auth.py +2 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/backup.py +6 -6
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/client.py +6 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/cluster.py +12 -12
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/collection.py +45 -45
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/cursor.py +3 -3
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/database.py +190 -96
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/exceptions.py +12 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/foxx.py +21 -21
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/graph.py +19 -19
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/job.py +5 -5
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/replication.py +7 -7
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/typings.py +75 -23
- python_arango_async-1.0.5/arangoasync/version.py +1 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/analyzer.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/aql.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/backup.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/certificates.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/cluster.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/document.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/foxx.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/graph.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/indexes.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/overview.rst +1 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/view.rst +3 -3
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/pyproject.toml +1 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/python_arango_async.egg-info/PKG-INFO +3 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/python_arango_async.egg-info/SOURCES.txt +0 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/python_arango_async.egg-info/requires.txt +1 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/conftest.py +46 -8
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/helpers.py +9 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_analyzer.py +2 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_aql.py +3 -5
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_backup.py +9 -22
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_client.py +59 -4
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_cluster.py +2 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_database.py +2 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_foxx.py +10 -8
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_graph.py +2 -2
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_task.py +4 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_transaction.py +4 -1
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_typings.py +26 -0
- python_arango_async-1.0.3/arangoasync/version.py +0 -1
- python_arango_async-1.0.3/tests/static/cluster-3.11.conf +0 -14
- python_arango_async-1.0.3/tests/static/single-3.11.conf +0 -12
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.github/workflows/codeql.yaml +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.github/workflows/docs.yaml +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.github/workflows/pypi.yaml +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.gitignore +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.pre-commit-config.yaml +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/.readthedocs.yaml +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/LICENSE +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/__init__.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/compression.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/connection.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/errno.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/executor.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/http.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/logger.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/request.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/resolver.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/response.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/result.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/arangoasync/serialization.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/admin.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/async.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/authentication.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/collection.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/compression.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/conf.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/cursor.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/database.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/errno.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/errors.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/helpers.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/http.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/index.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/logging.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/migration.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/serialization.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/specs.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/static/logo.png +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/task.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/transaction.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/docs/user.rst +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/python_arango_async.egg-info/dependency_links.txt +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/python_arango_async.egg-info/top_level.txt +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/setup.cfg +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/setup.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/starter.sh +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/__init__.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/static/cluster-3.12.conf +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/static/keyfile +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/static/service.zip +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/static/single-3.12.conf +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_async.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_collection.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_compression.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_connection.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_cursor.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_document.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_http.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_resolver.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_user.py +0 -0
- {python_arango_async-1.0.3 → python_arango_async-1.0.5}/tests/test_view.py +0 -0
|
@@ -7,7 +7,7 @@ executors:
|
|
|
7
7
|
resource_class: small
|
|
8
8
|
python-vm:
|
|
9
9
|
machine:
|
|
10
|
-
image: ubuntu-
|
|
10
|
+
image: ubuntu-2404:current
|
|
11
11
|
resource_class: medium
|
|
12
12
|
|
|
13
13
|
workflows:
|
|
@@ -86,8 +86,8 @@ jobs:
|
|
|
86
86
|
args+=("--cluster" "--port=8539" "--port=8549")
|
|
87
87
|
fi
|
|
88
88
|
|
|
89
|
-
if [ << parameters.arangodb_license >>
|
|
90
|
-
args+=("--enterprise")
|
|
89
|
+
if [ << parameters.arangodb_license >> != "enterprise" ]; then
|
|
90
|
+
args+=("--skip" "enterprise")
|
|
91
91
|
fi
|
|
92
92
|
|
|
93
93
|
echo "Running pytest with args: ${args[@]}"
|
|
@@ -10,7 +10,7 @@ pre-commit install # Install git pre-commit hooks
|
|
|
10
10
|
Run unit tests with coverage:
|
|
11
11
|
|
|
12
12
|
```shell
|
|
13
|
-
pytest --
|
|
13
|
+
pytest --cluster --cov=arango --cov-report=html # Open htmlcov/index.html in your browser
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
To start and ArangoDB instance locally, run:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-arango-async
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
4
4
|
Summary: Async Python Driver for ArangoDB
|
|
5
5
|
Author-email: Alexandru Petenchea <alexandru.petenchea@arangodb.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
|
|
6
6
|
Maintainer-email: Alexandru Petenchea <alexandru.petenchea@arangodb.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
|
|
@@ -37,6 +37,7 @@ Requires-Dist: pytest-asyncio>=0.23.8; extra == "dev"
|
|
|
37
37
|
Requires-Dist: pytest-cov>=5.0; extra == "dev"
|
|
38
38
|
Requires-Dist: sphinx>=7.3; extra == "dev"
|
|
39
39
|
Requires-Dist: sphinx_rtd_theme>=2.0; extra == "dev"
|
|
40
|
+
Requires-Dist: allure-pytest>=2.15; extra == "dev"
|
|
40
41
|
Requires-Dist: types-setuptools; extra == "dev"
|
|
41
42
|
Dynamic: license-file
|
|
42
43
|
|
|
@@ -117,7 +118,7 @@ async def main():
|
|
|
117
118
|
student_names.append(doc["name"])
|
|
118
119
|
```
|
|
119
120
|
|
|
120
|
-
Another example with [graphs](https://docs.
|
|
121
|
+
Another example with [graphs](https://docs.arango.ai/arangodb/stable/graphs/):
|
|
121
122
|
|
|
122
123
|
```python
|
|
123
124
|
async def main():
|
|
@@ -78,7 +78,7 @@ class AQLQueryCache:
|
|
|
78
78
|
AQLCacheEntriesError: If retrieval fails.
|
|
79
79
|
|
|
80
80
|
References:
|
|
81
|
-
- `list-the-entries-of-the-aql-query-results-cache <https://docs.
|
|
81
|
+
- `list-the-entries-of-the-aql-query-results-cache <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-query-results-cache/#list-the-entries-of-the-aql-query-results-cache>`__
|
|
82
82
|
""" # noqa: E501
|
|
83
83
|
request = Request(method=Method.GET, endpoint="/_api/query-cache/entries")
|
|
84
84
|
|
|
@@ -99,7 +99,7 @@ class AQLQueryCache:
|
|
|
99
99
|
AQLCacheEntriesError: If retrieval fails.
|
|
100
100
|
|
|
101
101
|
References:
|
|
102
|
-
- `list-the-entries-of-the-aql-query-plan-cache <https://docs.
|
|
102
|
+
- `list-the-entries-of-the-aql-query-plan-cache <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-query-plan-cache/#list-the-entries-of-the-aql-query-plan-cache>`__
|
|
103
103
|
""" # noqa: E501
|
|
104
104
|
request = Request(method=Method.GET, endpoint="/_api/query-plan-cache")
|
|
105
105
|
|
|
@@ -117,7 +117,7 @@ class AQLQueryCache:
|
|
|
117
117
|
AQLCacheClearError: If clearing the cache fails.
|
|
118
118
|
|
|
119
119
|
References:
|
|
120
|
-
- `clear-the-aql-query-results-cache <https://docs.
|
|
120
|
+
- `clear-the-aql-query-results-cache <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-query-results-cache/#clear-the-aql-query-results-cache>`__
|
|
121
121
|
""" # noqa: E501
|
|
122
122
|
request = Request(method=Method.DELETE, endpoint="/_api/query-cache")
|
|
123
123
|
|
|
@@ -134,7 +134,7 @@ class AQLQueryCache:
|
|
|
134
134
|
AQLCacheClearError: If clearing the cache fails.
|
|
135
135
|
|
|
136
136
|
References:
|
|
137
|
-
- `clear-the-aql-query-plan-cache <https://docs.
|
|
137
|
+
- `clear-the-aql-query-plan-cache <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-query-plan-cache/#clear-the-aql-query-plan-cache>`__
|
|
138
138
|
""" # noqa: E501
|
|
139
139
|
request = Request(method=Method.DELETE, endpoint="/_api/query-plan-cache")
|
|
140
140
|
|
|
@@ -154,7 +154,7 @@ class AQLQueryCache:
|
|
|
154
154
|
AQLCachePropertiesError: If retrieval fails.
|
|
155
155
|
|
|
156
156
|
References:
|
|
157
|
-
- `get-the-aql-query-results-cache-configuration <https://docs.
|
|
157
|
+
- `get-the-aql-query-results-cache-configuration <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-query-results-cache/#get-the-aql-query-results-cache-configuration>`__
|
|
158
158
|
""" # noqa: E501
|
|
159
159
|
request = Request(method=Method.GET, endpoint="/_api/query-cache/properties")
|
|
160
160
|
|
|
@@ -193,7 +193,7 @@ class AQLQueryCache:
|
|
|
193
193
|
AQLCacheConfigureError: If setting the configuration fails.
|
|
194
194
|
|
|
195
195
|
References:
|
|
196
|
-
- `set-the-aql-query-results-cache-configuration <https://docs.
|
|
196
|
+
- `set-the-aql-query-results-cache-configuration <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-query-results-cache/#set-the-aql-query-results-cache-configuration>`__
|
|
197
197
|
""" # noqa: E501
|
|
198
198
|
data: Json = dict()
|
|
199
199
|
if mode is not None:
|
|
@@ -298,7 +298,7 @@ class AQL:
|
|
|
298
298
|
Cursor: Result cursor.
|
|
299
299
|
|
|
300
300
|
References:
|
|
301
|
-
- `create-a-cursor <https://docs.
|
|
301
|
+
- `create-a-cursor <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#create-a-cursor>`__
|
|
302
302
|
""" # noqa: E501
|
|
303
303
|
data: Json = dict(query=query)
|
|
304
304
|
if count is not None:
|
|
@@ -353,7 +353,7 @@ class AQL:
|
|
|
353
353
|
AQLQueryTrackingGetError: If retrieval fails.
|
|
354
354
|
|
|
355
355
|
References:
|
|
356
|
-
- `get-the-aql-query-tracking-configuration <https://docs.
|
|
356
|
+
- `get-the-aql-query-tracking-configuration <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#get-the-aql-query-tracking-configuration>`__
|
|
357
357
|
""" # noqa: E501
|
|
358
358
|
request = Request(method=Method.GET, endpoint="/_api/query/properties")
|
|
359
359
|
|
|
@@ -397,7 +397,7 @@ class AQL:
|
|
|
397
397
|
AQLQueryTrackingSetError: If setting the configuration fails.
|
|
398
398
|
|
|
399
399
|
References:
|
|
400
|
-
- `update-the-aql-query-tracking-configuration <https://docs.
|
|
400
|
+
- `update-the-aql-query-tracking-configuration <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#update-the-aql-query-tracking-configuration>`__
|
|
401
401
|
""" # noqa: E501
|
|
402
402
|
data: Json = dict()
|
|
403
403
|
|
|
@@ -462,7 +462,7 @@ class AQL:
|
|
|
462
462
|
AQLQueryListError: If retrieval fails.
|
|
463
463
|
|
|
464
464
|
References:
|
|
465
|
-
- `list-the-running-queries <https://docs.
|
|
465
|
+
- `list-the-running-queries <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#list-the-running-queries>`__
|
|
466
466
|
""" # noqa: E501
|
|
467
467
|
request = Request(
|
|
468
468
|
method=Method.GET,
|
|
@@ -493,7 +493,7 @@ class AQL:
|
|
|
493
493
|
AQLQueryListError: If retrieval fails.
|
|
494
494
|
|
|
495
495
|
References:
|
|
496
|
-
- `list-the-slow-aql-queries <https://docs.
|
|
496
|
+
- `list-the-slow-aql-queries <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#list-the-slow-aql-queries>`__
|
|
497
497
|
""" # noqa: E501
|
|
498
498
|
request = Request(
|
|
499
499
|
method=Method.GET,
|
|
@@ -523,7 +523,7 @@ class AQL:
|
|
|
523
523
|
AQLQueryClearError: If retrieval fails.
|
|
524
524
|
|
|
525
525
|
References:
|
|
526
|
-
- `clear-the-list-of-slow-aql-queries <https://docs.
|
|
526
|
+
- `clear-the-list-of-slow-aql-queries <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#clear-the-list-of-slow-aql-queries>`__
|
|
527
527
|
""" # noqa: E501
|
|
528
528
|
request = Request(
|
|
529
529
|
method=Method.DELETE,
|
|
@@ -560,7 +560,7 @@ class AQL:
|
|
|
560
560
|
AQLQueryKillError: If killing the query fails.
|
|
561
561
|
|
|
562
562
|
References:
|
|
563
|
-
- `kill-a-running-aql-query <https://docs.
|
|
563
|
+
- `kill-a-running-aql-query <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#kill-a-running-aql-query>`__
|
|
564
564
|
""" # noqa: E501
|
|
565
565
|
request = Request(
|
|
566
566
|
method=Method.DELETE,
|
|
@@ -598,7 +598,7 @@ class AQL:
|
|
|
598
598
|
AQLQueryExplainError: If retrieval fails.
|
|
599
599
|
|
|
600
600
|
References:
|
|
601
|
-
- `explain-an-aql-query <https://docs.
|
|
601
|
+
- `explain-an-aql-query <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#explain-an-aql-query>`__
|
|
602
602
|
""" # noqa: E501
|
|
603
603
|
data: Json = dict(query=query)
|
|
604
604
|
if bind_vars is not None:
|
|
@@ -634,7 +634,7 @@ class AQL:
|
|
|
634
634
|
AQLQueryValidateError: If validation fails.
|
|
635
635
|
|
|
636
636
|
References:
|
|
637
|
-
- `parse-an-aql-query <https://docs.
|
|
637
|
+
- `parse-an-aql-query <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#parse-an-aql-query>`__
|
|
638
638
|
""" # noqa: E501
|
|
639
639
|
request = Request(
|
|
640
640
|
method=Method.POST,
|
|
@@ -659,7 +659,7 @@ class AQL:
|
|
|
659
659
|
AQLQueryRulesGetError: If retrieval fails.
|
|
660
660
|
|
|
661
661
|
References:
|
|
662
|
-
- `list-all-aql-optimizer-rules <https://docs.
|
|
662
|
+
- `list-all-aql-optimizer-rules <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/aql-queries/#list-all-aql-optimizer-rules>`__
|
|
663
663
|
""" # noqa: E501
|
|
664
664
|
request = Request(method=Method.GET, endpoint="/_api/query/rules")
|
|
665
665
|
|
|
@@ -684,7 +684,7 @@ class AQL:
|
|
|
684
684
|
AQLFunctionListError: If retrieval fails.
|
|
685
685
|
|
|
686
686
|
References:
|
|
687
|
-
- `list-the-registered-user-defined-aql-functions <https://docs.
|
|
687
|
+
- `list-the-registered-user-defined-aql-functions <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/user-defined-aql-functions/#list-the-registered-user-defined-aql-functions>`__
|
|
688
688
|
""" # noqa: E501
|
|
689
689
|
params: Json = dict()
|
|
690
690
|
if namespace is not None:
|
|
@@ -726,7 +726,7 @@ class AQL:
|
|
|
726
726
|
AQLFunctionCreateError: If registration fails.
|
|
727
727
|
|
|
728
728
|
References:
|
|
729
|
-
- `create-a-user-defined-aql-function <https://docs.
|
|
729
|
+
- `create-a-user-defined-aql-function <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/user-defined-aql-functions/#create-a-user-defined-aql-function>`__
|
|
730
730
|
""" # noqa: E501
|
|
731
731
|
request = Request(
|
|
732
732
|
method=Method.POST,
|
|
@@ -765,7 +765,7 @@ class AQL:
|
|
|
765
765
|
AQLFunctionDeleteError: If removal fails.
|
|
766
766
|
|
|
767
767
|
References:
|
|
768
|
-
- `remove-a-user-defined-aql-function <https://docs.
|
|
768
|
+
- `remove-a-user-defined-aql-function <https://docs.arango.ai/arangodb/stable/develop/http-api/queries/user-defined-aql-functions/#remove-a-user-defined-aql-function>`__
|
|
769
769
|
""" # noqa: E501
|
|
770
770
|
params: Json = dict()
|
|
771
771
|
if group is not None:
|
|
@@ -49,7 +49,7 @@ class Backup:
|
|
|
49
49
|
BackupGetError: If the operation fails.
|
|
50
50
|
|
|
51
51
|
References:
|
|
52
|
-
- `list-backups <https://docs.
|
|
52
|
+
- `list-backups <https://docs.arango.ai/arangodb/stable/develop/http-api/hot-backups/#list-all-backups>`__
|
|
53
53
|
""" # noqa: E501
|
|
54
54
|
data: Json = {}
|
|
55
55
|
if backup_id is not None:
|
|
@@ -97,7 +97,7 @@ class Backup:
|
|
|
97
97
|
BackupCreateError: If the backup creation fails.
|
|
98
98
|
|
|
99
99
|
References:
|
|
100
|
-
- `create-backup <https://docs.
|
|
100
|
+
- `create-backup <https://docs.arango.ai/arangodb/stable/develop/http-api/hot-backups/#create-a-backup>`__
|
|
101
101
|
""" # noqa: E501
|
|
102
102
|
data: Json = {}
|
|
103
103
|
if label is not None:
|
|
@@ -137,7 +137,7 @@ class Backup:
|
|
|
137
137
|
BackupRestoreError: If the restore operation fails.
|
|
138
138
|
|
|
139
139
|
References:
|
|
140
|
-
- `restore-backup <https://docs.
|
|
140
|
+
- `restore-backup <https://docs.arango.ai/arangodb/stable/develop/http-api/hot-backups/#restore-a-backup>`__
|
|
141
141
|
""" # noqa: E501
|
|
142
142
|
data: Json = {"id": backup_id}
|
|
143
143
|
request = Request(
|
|
@@ -165,7 +165,7 @@ class Backup:
|
|
|
165
165
|
BackupDeleteError: If the delete operation fails.
|
|
166
166
|
|
|
167
167
|
References:
|
|
168
|
-
- `delete-backup <https://docs.
|
|
168
|
+
- `delete-backup <https://docs.arango.ai/arangodb/stable/develop/http-api/hot-backups/#delete-a-backup>`__
|
|
169
169
|
""" # noqa: E501
|
|
170
170
|
data: Json = {"id": backup_id}
|
|
171
171
|
request = Request(
|
|
@@ -209,7 +209,7 @@ class Backup:
|
|
|
209
209
|
BackupUploadError: If upload operation fails.
|
|
210
210
|
|
|
211
211
|
References:
|
|
212
|
-
- `upload-a-backup-to-a-remote-repository <https://docs.
|
|
212
|
+
- `upload-a-backup-to-a-remote-repository <https://docs.arango.ai/arangodb/stable/develop/http-api/hot-backups/#upload-a-backup-to-a-remote-repository>`__
|
|
213
213
|
""" # noqa: E501
|
|
214
214
|
data: Json = {}
|
|
215
215
|
if upload_id is not None:
|
|
@@ -265,7 +265,7 @@ class Backup:
|
|
|
265
265
|
BackupDownloadError: If the download operation fails.
|
|
266
266
|
|
|
267
267
|
References:
|
|
268
|
-
- `download-a-backup-from-a-remote-repository <https://docs.
|
|
268
|
+
- `download-a-backup-from-a-remote-repository <https://docs.arango.ai/arangodb/stable/develop/http-api/hot-backups/#download-a-backup-from-a-remote-repository>`__
|
|
269
269
|
""" # noqa: E501
|
|
270
270
|
data: Json = {}
|
|
271
271
|
if download_id is not None:
|
|
@@ -147,7 +147,7 @@ class ArangoClient:
|
|
|
147
147
|
self,
|
|
148
148
|
name: str,
|
|
149
149
|
auth_method: str = "basic",
|
|
150
|
-
auth: Optional[Auth] = None,
|
|
150
|
+
auth: Optional[Auth | str] = None,
|
|
151
151
|
token: Optional[JwtToken] = None,
|
|
152
152
|
verify: bool = False,
|
|
153
153
|
compression: Optional[CompressionManager] = None,
|
|
@@ -169,7 +169,8 @@ class ArangoClient:
|
|
|
169
169
|
and client are synchronized.
|
|
170
170
|
- "superuser": Superuser JWT authentication.
|
|
171
171
|
The `token` parameter is required. The `auth` parameter is ignored.
|
|
172
|
-
auth (Auth | None): Login information
|
|
172
|
+
auth (Auth | None): Login information (username and password) or
|
|
173
|
+
access token.
|
|
173
174
|
token (JwtToken | None): JWT token.
|
|
174
175
|
verify (bool): Verify the connection by sending a test request.
|
|
175
176
|
compression (CompressionManager | None): If set, supersedes the
|
|
@@ -188,6 +189,9 @@ class ArangoClient:
|
|
|
188
189
|
"""
|
|
189
190
|
connection: Connection
|
|
190
191
|
|
|
192
|
+
if isinstance(auth, str):
|
|
193
|
+
auth = Auth(password=auth)
|
|
194
|
+
|
|
191
195
|
if auth_method == "basic":
|
|
192
196
|
if auth is None:
|
|
193
197
|
raise ValueError("Basic authentication requires the `auth` parameter")
|
|
@@ -45,7 +45,7 @@ class Cluster:
|
|
|
45
45
|
ClusterHealthError: If retrieval fails.
|
|
46
46
|
|
|
47
47
|
References:
|
|
48
|
-
- `get-the-cluster-health <https://docs.
|
|
48
|
+
- `get-the-cluster-health <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#get-the-cluster-health>`__
|
|
49
49
|
""" # noqa: E501
|
|
50
50
|
request = Request(
|
|
51
51
|
method=Method.GET,
|
|
@@ -74,7 +74,7 @@ class Cluster:
|
|
|
74
74
|
ClusterStatisticsError: If retrieval fails.
|
|
75
75
|
|
|
76
76
|
References:
|
|
77
|
-
- `get-the-statistics-of-a-db-server <https://docs.
|
|
77
|
+
- `get-the-statistics-of-a-db-server <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#get-the-statistics-of-a-db-server>`__
|
|
78
78
|
""" # noqa: E501
|
|
79
79
|
params: Params = {"DBserver": db_server}
|
|
80
80
|
|
|
@@ -103,7 +103,7 @@ class Cluster:
|
|
|
103
103
|
ClusterEndpointsError: If retrieval fails.
|
|
104
104
|
|
|
105
105
|
References:
|
|
106
|
-
- `list-all-coordinator-endpoints <https://docs.
|
|
106
|
+
- `list-all-coordinator-endpoints <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#list-all-coordinator-endpoints>`__
|
|
107
107
|
""" # noqa: E501
|
|
108
108
|
request = Request(
|
|
109
109
|
method=Method.GET,
|
|
@@ -129,7 +129,7 @@ class Cluster:
|
|
|
129
129
|
ClusterServerIDError: If retrieval fails.
|
|
130
130
|
|
|
131
131
|
References:
|
|
132
|
-
- `get-the-server-id <https://docs.
|
|
132
|
+
- `get-the-server-id <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#get-the-server-id>`__
|
|
133
133
|
""" # noqa: E501
|
|
134
134
|
request = Request(
|
|
135
135
|
method=Method.GET,
|
|
@@ -154,7 +154,7 @@ class Cluster:
|
|
|
154
154
|
ClusterServerRoleError: If retrieval fails.
|
|
155
155
|
|
|
156
156
|
References:
|
|
157
|
-
- `get-the-server-role <https://docs.
|
|
157
|
+
- `get-the-server-role <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#get-the-server-role>`__
|
|
158
158
|
""" # noqa: E501
|
|
159
159
|
request = Request(
|
|
160
160
|
method=Method.GET,
|
|
@@ -182,7 +182,7 @@ class Cluster:
|
|
|
182
182
|
ClusterMaintenanceModeError: If the toggle operation fails.
|
|
183
183
|
|
|
184
184
|
References:
|
|
185
|
-
- `toggle-cluster-maintenance-mode <https://docs.
|
|
185
|
+
- `toggle-cluster-maintenance-mode <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#toggle-cluster-maintenance-mode>`__
|
|
186
186
|
""" # noqa: E501
|
|
187
187
|
request = Request(
|
|
188
188
|
method=Method.PUT,
|
|
@@ -212,7 +212,7 @@ class Cluster:
|
|
|
212
212
|
ClusterMaintenanceModeError: If retrieval fails.
|
|
213
213
|
|
|
214
214
|
References:
|
|
215
|
-
- `get-the-maintenance-status-of-a-db-server <https://docs.
|
|
215
|
+
- `get-the-maintenance-status-of-a-db-server <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#get-the-maintenance-status-of-a-db-server>`__
|
|
216
216
|
""" # noqa: E501
|
|
217
217
|
request = Request(
|
|
218
218
|
method=Method.GET,
|
|
@@ -242,7 +242,7 @@ class Cluster:
|
|
|
242
242
|
ClusterMaintenanceModeError: If the operation fails.
|
|
243
243
|
|
|
244
244
|
References:
|
|
245
|
-
- `set-the-maintenance-status-of-a-db-server <https://docs.
|
|
245
|
+
- `set-the-maintenance-status-of-a-db-server <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#set-the-maintenance-status-of-a-db-server>`__
|
|
246
246
|
""" # noqa: E501
|
|
247
247
|
data: Json = {"mode": mode}
|
|
248
248
|
if timeout is not None:
|
|
@@ -271,7 +271,7 @@ class Cluster:
|
|
|
271
271
|
ClusterRebalanceError: If retrieval fails.
|
|
272
272
|
|
|
273
273
|
References:
|
|
274
|
-
- `get-the-current-cluster-imbalance <https://docs.
|
|
274
|
+
- `get-the-current-cluster-imbalance <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#get-the-current-cluster-imbalance>`__
|
|
275
275
|
""" # noqa: E501
|
|
276
276
|
request = Request(method=Method.GET, endpoint="/_admin/cluster/rebalance")
|
|
277
277
|
|
|
@@ -315,7 +315,7 @@ class Cluster:
|
|
|
315
315
|
ClusterRebalanceError: If retrieval fails.
|
|
316
316
|
|
|
317
317
|
References:
|
|
318
|
-
- `compute-a-set-of-move-shard-operations-to-improve-balance <https://docs.
|
|
318
|
+
- `compute-a-set-of-move-shard-operations-to-improve-balance <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#compute-a-set-of-move-shard-operations-to-improve-balance>`__
|
|
319
319
|
""" # noqa: E501
|
|
320
320
|
data: Json = dict(version=version)
|
|
321
321
|
if databases_excluded is not None:
|
|
@@ -380,7 +380,7 @@ class Cluster:
|
|
|
380
380
|
ClusterRebalanceError: If retrieval fails.
|
|
381
381
|
|
|
382
382
|
References:
|
|
383
|
-
- `compute-and-execute-a-set-of-move-shard-operations-to-improve-balance <https://docs.
|
|
383
|
+
- `compute-and-execute-a-set-of-move-shard-operations-to-improve-balance <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#compute-and-execute-a-set-of-move-shard-operations-to-improve-balance>`__
|
|
384
384
|
""" # noqa: E501
|
|
385
385
|
data: Json = dict(version=version)
|
|
386
386
|
if databases_excluded is not None:
|
|
@@ -431,7 +431,7 @@ class Cluster:
|
|
|
431
431
|
ClusterRebalanceError: If the execution fails.
|
|
432
432
|
|
|
433
433
|
References:
|
|
434
|
-
- `execute-a-set-of-move-shard-operations <https://docs.
|
|
434
|
+
- `execute-a-set-of-move-shard-operations <https://docs.arango.ai/arangodb/stable/develop/http-api/cluster/#execute-a-set-of-move-shard-operations>`__
|
|
435
435
|
""" # noqa: E501
|
|
436
436
|
data: Json = dict(version=version, moves=moves)
|
|
437
437
|
|