python-arango 8.2.2__tar.gz → 8.2.3__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.2 → python_arango-8.2.3}/.circleci/config.yml +3 -3
- {python_arango-8.2.2 → python_arango-8.2.3}/PKG-INFO +1 -1
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/aql.py +18 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/database.py +21 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/exceptions.py +8 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/request.py +1 -1
- {python_arango-8.2.2 → python_arango-8.2.3}/python_arango.egg-info/PKG-INFO +1 -1
- {python_arango-8.2.2 → python_arango-8.2.3}/starter.sh +2 -2
- {python_arango-8.2.2 → python_arango-8.2.3}/.github/workflows/codeql.yaml +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/.github/workflows/docs.yaml +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/.github/workflows/pypi.yaml +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/.gitignore +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/.pre-commit-config.yaml +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/.readthedocs.yaml +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/CONTRIBUTING.md +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/LICENSE +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/MANIFEST.in +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/README.md +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/__init__.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/api.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/backup.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/client.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/cluster.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/collection.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/connection.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/cursor.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/errno.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/executor.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/formatter.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/foxx.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/graph.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/http.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/job.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/pregel.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/py.typed +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/replication.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/resolver.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/response.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/result.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/typings.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/utils.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/arango/wal.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/Makefile +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/admin.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/analyzer.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/aql.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/async.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/auth.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/backup.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/batch.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/certificates.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/cluster.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/collection.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/compression.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/conf.py +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/contributing.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/cursor.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/database.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/document.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/errno.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/errors.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/foxx.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/graph.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/http.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/index.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/indexes.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/logging.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/make.bat +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/overload.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/overview.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/pregel.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/replication.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/requirements.txt +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/schema.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/serializer.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/simple.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/specs.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/static/logo.png +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/task.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/threading.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/transaction.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/user.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/view.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/docs/wal.rst +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/pyproject.toml +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/python_arango.egg-info/SOURCES.txt +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/python_arango.egg-info/dependency_links.txt +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/python_arango.egg-info/requires.txt +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/python_arango.egg-info/top_level.txt +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/setup.cfg +0 -0
- {python_arango-8.2.2 → python_arango-8.2.3}/setup.py +0 -0
|
@@ -11,10 +11,10 @@ workflows:
|
|
|
11
11
|
name: Python (<< matrix.python_version >>) - ArangoDB (<< matrix.arangodb_license >>, << matrix.arangodb_version >> << matrix.arangodb_config >>)
|
|
12
12
|
matrix:
|
|
13
13
|
parameters:
|
|
14
|
-
python_version: ["3.
|
|
14
|
+
python_version: ["3.10", "3.11", "3.12"]
|
|
15
15
|
arangodb_config: ["single", "cluster"]
|
|
16
|
-
arangodb_license: ["
|
|
17
|
-
arangodb_version: ["
|
|
16
|
+
arangodb_license: ["enterprise"]
|
|
17
|
+
arangodb_version: ["latest"]
|
|
18
18
|
|
|
19
19
|
jobs:
|
|
20
20
|
lint:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-arango
|
|
3
|
-
Version: 8.2.
|
|
3
|
+
Version: 8.2.3
|
|
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>
|
|
@@ -17,6 +17,7 @@ from arango.exceptions import (
|
|
|
17
17
|
AQLQueryClearError,
|
|
18
18
|
AQLQueryExecuteError,
|
|
19
19
|
AQLQueryExplainError,
|
|
20
|
+
AQLQueryHistoryError,
|
|
20
21
|
AQLQueryKillError,
|
|
21
22
|
AQLQueryListError,
|
|
22
23
|
AQLQueryRulesGetError,
|
|
@@ -627,6 +628,23 @@ class AQL(ApiGroup):
|
|
|
627
628
|
|
|
628
629
|
return self._execute(request, response_handler)
|
|
629
630
|
|
|
631
|
+
def history(self) -> Result[Json]:
|
|
632
|
+
"""Return recently executed AQL queries (admin only).
|
|
633
|
+
|
|
634
|
+
:return: AQL query history.
|
|
635
|
+
:rtype: dict
|
|
636
|
+
:raise arango.exceptions.AQLQueryHistoryError: If retrieval fails.
|
|
637
|
+
"""
|
|
638
|
+
request = Request(method="get", endpoint="/_admin/server/aql-queries")
|
|
639
|
+
|
|
640
|
+
def response_handler(resp: Response) -> Json:
|
|
641
|
+
if not resp.is_success:
|
|
642
|
+
raise AQLQueryHistoryError(resp, request)
|
|
643
|
+
res: Json = resp.body["result"]
|
|
644
|
+
return res
|
|
645
|
+
|
|
646
|
+
return self._execute(request, response_handler)
|
|
647
|
+
|
|
630
648
|
def functions(self) -> Result[Jsons]:
|
|
631
649
|
"""List the AQL functions defined in the database.
|
|
632
650
|
|
|
@@ -44,6 +44,7 @@ from arango.exceptions import (
|
|
|
44
44
|
PermissionListError,
|
|
45
45
|
PermissionResetError,
|
|
46
46
|
PermissionUpdateError,
|
|
47
|
+
ServerAPICallsError,
|
|
47
48
|
ServerAvailableOptionsGetError,
|
|
48
49
|
ServerCheckAvailabilityError,
|
|
49
50
|
ServerCurrentOptionsGetError,
|
|
@@ -463,6 +464,26 @@ class Database(ApiGroup):
|
|
|
463
464
|
|
|
464
465
|
return self._execute(request, response_handler)
|
|
465
466
|
|
|
467
|
+
def api_calls(self) -> Result[Json]:
|
|
468
|
+
"""Return recent API calls (admin only).
|
|
469
|
+
|
|
470
|
+
:return: API calls history.
|
|
471
|
+
:rtype: dict
|
|
472
|
+
:raise arango.exceptions.ServerAPICallsError: If retrieval fails.
|
|
473
|
+
"""
|
|
474
|
+
request = Request(
|
|
475
|
+
method="get",
|
|
476
|
+
endpoint="/_admin/server/api-calls",
|
|
477
|
+
)
|
|
478
|
+
|
|
479
|
+
def response_handler(resp: Response) -> Json:
|
|
480
|
+
if not resp.is_success:
|
|
481
|
+
raise ServerAPICallsError(resp, request)
|
|
482
|
+
res: Json = resp.body["result"]
|
|
483
|
+
return res
|
|
484
|
+
|
|
485
|
+
return self._execute(request, response_handler)
|
|
486
|
+
|
|
466
487
|
def status(self) -> Result[Json]:
|
|
467
488
|
"""Return ArangoDB server status.
|
|
468
489
|
|
|
@@ -121,6 +121,10 @@ class AQLQueryTrackingGetError(ArangoServerError):
|
|
|
121
121
|
"""Failed to retrieve AQL tracking properties."""
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
class AQLQueryHistoryError(ArangoServerError):
|
|
125
|
+
"""Failed to retrieve recent AQL queries."""
|
|
126
|
+
|
|
127
|
+
|
|
124
128
|
class AQLQueryTrackingSetError(ArangoServerError):
|
|
125
129
|
"""Failed to configure AQL tracking properties."""
|
|
126
130
|
|
|
@@ -638,6 +642,10 @@ class ServerDetailsError(ArangoServerError):
|
|
|
638
642
|
"""Failed to retrieve server details."""
|
|
639
643
|
|
|
640
644
|
|
|
645
|
+
class ServerAPICallsError(ArangoServerError):
|
|
646
|
+
"""Failed to retrieve recent API calls."""
|
|
647
|
+
|
|
648
|
+
|
|
641
649
|
class ServerLicenseGetError(ArangoServerError):
|
|
642
650
|
"""Failed to retrieve server license."""
|
|
643
651
|
|
|
@@ -12,7 +12,7 @@ def normalize_headers(
|
|
|
12
12
|
if driver_flags is not None:
|
|
13
13
|
for flag in driver_flags:
|
|
14
14
|
flags = flags + flag + ";"
|
|
15
|
-
driver_version = "8.2.
|
|
15
|
+
driver_version = "8.2.3"
|
|
16
16
|
driver_header = "python-arango/" + driver_version + " (" + flags + ")"
|
|
17
17
|
normalized_headers: Headers = {
|
|
18
18
|
"charset": "utf-8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-arango
|
|
3
|
-
Version: 8.2.
|
|
3
|
+
Version: 8.2.3
|
|
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>
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|