python-arango 8.1.1__tar.gz → 8.1.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.1.1 → python_arango-8.1.3}/PKG-INFO +3 -3
- {python_arango-8.1.1 → python_arango-8.1.3}/README.md +2 -2
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/connection.py +1 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/database.py +15 -4
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/formatter.py +2 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/utils.py +5 -1
- {python_arango-8.1.1 → python_arango-8.1.3}/python_arango.egg-info/PKG-INFO +3 -3
- {python_arango-8.1.1 → python_arango-8.1.3}/.circleci/config.yml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/.github/workflows/codeql.yaml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/.github/workflows/docs.yaml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/.github/workflows/pypi.yaml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/.gitignore +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/.pre-commit-config.yaml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/.readthedocs.yaml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/CONTRIBUTING.md +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/LICENSE +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/MANIFEST.in +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/__init__.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/api.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/aql.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/backup.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/client.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/cluster.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/collection.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/cursor.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/errno.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/exceptions.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/executor.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/foxx.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/graph.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/http.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/job.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/pregel.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/py.typed +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/replication.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/request.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/resolver.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/response.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/result.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/typings.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/arango/wal.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/Makefile +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/admin.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/analyzer.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/aql.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/async.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/auth.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/backup.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/batch.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/certificates.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/cluster.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/collection.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/compression.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/conf.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/contributing.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/cursor.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/database.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/document.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/errno.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/errors.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/foxx.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/graph.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/http.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/index.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/indexes.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/logging.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/make.bat +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/overload.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/overview.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/pregel.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/replication.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/requirements.txt +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/schema.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/serializer.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/simple.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/specs.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/static/logo.png +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/task.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/threading.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/transaction.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/user.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/view.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/docs/wal.rst +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/pyproject.toml +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/python_arango.egg-info/SOURCES.txt +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/python_arango.egg-info/dependency_links.txt +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/python_arango.egg-info/requires.txt +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/python_arango.egg-info/top_level.txt +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/setup.cfg +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/setup.py +0 -0
- {python_arango-8.1.1 → python_arango-8.1.3}/starter.sh +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-arango
|
|
3
|
-
Version: 8.1.
|
|
3
|
+
Version: 8.1.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>
|
|
@@ -70,12 +70,12 @@ Requires-Dist: types-setuptools; extra == "dev"
|
|
|
70
70
|
[](https://github.com/arangodb/python-arango/actions/workflows/codeql.yaml)
|
|
71
71
|
[](https://github.com/arangodb/python-arango/actions/workflows/docs.yaml)
|
|
72
72
|
[](https://codecov.io/gh/arangodb/python-arango)
|
|
73
|
-
[](https://github.com/arangodb/python-arango/commits/
|
|
73
|
+
[](https://github.com/arangodb/python-arango/commits/main)
|
|
74
74
|
|
|
75
75
|
[](https://pypi.org/project/python-arango/)
|
|
76
76
|
[](https://pypi.org/project/python-arango/)
|
|
77
77
|
|
|
78
|
-
[](https://github.com/arangodb/python-arango/blob/
|
|
78
|
+
[](https://github.com/arangodb/python-arango/blob/main/LICENSE)
|
|
79
79
|
[](https://github.com/psf/black)
|
|
80
80
|
[](https://pepy.tech/project/python-arango)
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
[](https://github.com/arangodb/python-arango/actions/workflows/codeql.yaml)
|
|
5
5
|
[](https://github.com/arangodb/python-arango/actions/workflows/docs.yaml)
|
|
6
6
|
[](https://codecov.io/gh/arangodb/python-arango)
|
|
7
|
-
[](https://github.com/arangodb/python-arango/commits/
|
|
7
|
+
[](https://github.com/arangodb/python-arango/commits/main)
|
|
8
8
|
|
|
9
9
|
[](https://pypi.org/project/python-arango/)
|
|
10
10
|
[](https://pypi.org/project/python-arango/)
|
|
11
11
|
|
|
12
|
-
[](https://github.com/arangodb/python-arango/blob/
|
|
12
|
+
[](https://github.com/arangodb/python-arango/blob/main/LICENSE)
|
|
13
13
|
[](https://github.com/psf/black)
|
|
14
14
|
[](https://pepy.tech/project/python-arango)
|
|
@@ -47,6 +47,7 @@ class BaseConnection:
|
|
|
47
47
|
request_compression: Optional[RequestCompression] = None,
|
|
48
48
|
response_compression: Optional[str] = None,
|
|
49
49
|
) -> None:
|
|
50
|
+
self._hosts = hosts
|
|
50
51
|
self._url_prefixes = [f"{host}/_db/{db_name}" for host in hosts]
|
|
51
52
|
self._host_resolver = host_resolver
|
|
52
53
|
self._sessions = sessions
|
|
@@ -436,7 +436,7 @@ class Database(ApiGroup):
|
|
|
436
436
|
instance. Can be called on single servers, Coordinators,
|
|
437
437
|
and DB-Servers.
|
|
438
438
|
|
|
439
|
-
:param license: The Base64-encoded license string.
|
|
439
|
+
:param license: The Base64-encoded license string, wrapped in double-quotes.
|
|
440
440
|
:type license: str
|
|
441
441
|
:param force: If set to True, the new license will be set even if
|
|
442
442
|
it expires sooner than the current license.
|
|
@@ -1284,8 +1284,9 @@ class Database(ApiGroup):
|
|
|
1284
1284
|
:type name: str
|
|
1285
1285
|
:param users: List of users with access to the new database, where each
|
|
1286
1286
|
user is a dictionary with fields "username", "password", "active"
|
|
1287
|
-
and "extra" (see below for example). If not set,
|
|
1288
|
-
|
|
1287
|
+
and "extra" (see below for example). If not set, the default user root
|
|
1288
|
+
will be used to ensure that the new database will be accessible after
|
|
1289
|
+
it is created.
|
|
1289
1290
|
:type users: [dict]
|
|
1290
1291
|
:param replication_factor: Default replication factor for collections
|
|
1291
1292
|
created in this database. Special values include "satellite" which
|
|
@@ -1697,6 +1698,7 @@ class Database(ApiGroup):
|
|
|
1697
1698
|
shard_count: Optional[int] = None,
|
|
1698
1699
|
replication_factor: Optional[int] = None,
|
|
1699
1700
|
write_concern: Optional[int] = None,
|
|
1701
|
+
satellite_collections: Optional[Sequence[str]] = None,
|
|
1700
1702
|
) -> Result[Graph]:
|
|
1701
1703
|
"""Create a new graph.
|
|
1702
1704
|
|
|
@@ -1721,7 +1723,8 @@ class Database(ApiGroup):
|
|
|
1721
1723
|
:param smart_field: Document field used to shard the vertices of the
|
|
1722
1724
|
graph. To use this, parameter **smart** must be set to True and
|
|
1723
1725
|
every vertex in the graph must have the smart field. Applies only
|
|
1724
|
-
to enterprise version of ArangoDB.
|
|
1726
|
+
to enterprise version of ArangoDB. NOTE: If this field is
|
|
1727
|
+
None and **smart** is True, an Enterprise Graph will be created.
|
|
1725
1728
|
:type smart_field: str | None
|
|
1726
1729
|
:param shard_count: Number of shards used for every collection in the
|
|
1727
1730
|
graph. To use this, parameter **smart** must be set to True and
|
|
@@ -1744,6 +1747,12 @@ class Database(ApiGroup):
|
|
|
1744
1747
|
parameter cannot be larger than that of **replication_factor**.
|
|
1745
1748
|
Default value is 1. Used for clusters only.
|
|
1746
1749
|
:type write_concern: int
|
|
1750
|
+
:param satellite_collections: An array of collection names that is
|
|
1751
|
+
used to create SatelliteCollections for a (Disjoint) SmartGraph
|
|
1752
|
+
using SatelliteCollections (Enterprise Edition only). Each array
|
|
1753
|
+
element must be a string and a valid collection name. The
|
|
1754
|
+
collection type cannot be modified later.
|
|
1755
|
+
:type satellite_collections: [str] | None
|
|
1747
1756
|
:return: Graph API wrapper.
|
|
1748
1757
|
:rtype: arango.graph.Graph
|
|
1749
1758
|
:raise arango.exceptions.GraphCreateError: If create fails.
|
|
@@ -1784,6 +1793,8 @@ class Database(ApiGroup):
|
|
|
1784
1793
|
data["options"]["replicationFactor"] = replication_factor
|
|
1785
1794
|
if write_concern is not None: # pragma: no cover
|
|
1786
1795
|
data["options"]["writeConcern"] = write_concern
|
|
1796
|
+
if satellite_collections is not None: # pragma: no cover
|
|
1797
|
+
data["options"]["satellites"] = satellite_collections
|
|
1787
1798
|
|
|
1788
1799
|
request = Request(method="post", endpoint="/_api/gharial", data=data)
|
|
1789
1800
|
|
|
@@ -1261,6 +1261,8 @@ def format_graph_properties(body: Json) -> Json:
|
|
|
1261
1261
|
}
|
|
1262
1262
|
if "isSmart" in body:
|
|
1263
1263
|
result["smart"] = body["isSmart"]
|
|
1264
|
+
if "isDisjoint" in body:
|
|
1265
|
+
result["disjoint"] = body["isDisjoint"]
|
|
1264
1266
|
if "isSatellite" in body:
|
|
1265
1267
|
result["is_satellite"] = body["isSatellite"]
|
|
1266
1268
|
if "smartGraphAttribute" in body:
|
|
@@ -120,5 +120,9 @@ def build_filter_conditions(filters: Json) -> str:
|
|
|
120
120
|
if not filters:
|
|
121
121
|
return ""
|
|
122
122
|
|
|
123
|
-
conditions = [
|
|
123
|
+
conditions = []
|
|
124
|
+
for k, v in filters.items():
|
|
125
|
+
field = k if "." in k else f"`{k}`"
|
|
126
|
+
conditions.append(f"doc.{field} == {json.dumps(v)}")
|
|
127
|
+
|
|
124
128
|
return "FILTER " + " AND ".join(conditions)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-arango
|
|
3
|
-
Version: 8.1.
|
|
3
|
+
Version: 8.1.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>
|
|
@@ -70,12 +70,12 @@ Requires-Dist: types-setuptools; extra == "dev"
|
|
|
70
70
|
[](https://github.com/arangodb/python-arango/actions/workflows/codeql.yaml)
|
|
71
71
|
[](https://github.com/arangodb/python-arango/actions/workflows/docs.yaml)
|
|
72
72
|
[](https://codecov.io/gh/arangodb/python-arango)
|
|
73
|
-
[](https://github.com/arangodb/python-arango/commits/
|
|
73
|
+
[](https://github.com/arangodb/python-arango/commits/main)
|
|
74
74
|
|
|
75
75
|
[](https://pypi.org/project/python-arango/)
|
|
76
76
|
[](https://pypi.org/project/python-arango/)
|
|
77
77
|
|
|
78
|
-
[](https://github.com/arangodb/python-arango/blob/
|
|
78
|
+
[](https://github.com/arangodb/python-arango/blob/main/LICENSE)
|
|
79
79
|
[](https://github.com/psf/black)
|
|
80
80
|
[](https://pepy.tech/project/python-arango)
|
|
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
|
|
File without changes
|