python-arango-async 0.0.1__py3-none-any.whl

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.
arangoasync/version.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "0.0.1"
@@ -0,0 +1,142 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-arango-async
3
+ Version: 0.0.1
4
+ Summary: Async Python Driver for ArangoDB
5
+ Author-email: Alexandru Petenchea <alexandru.petenchea@arangodb.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
6
+ Maintainer-email: Alexandru Petenchea <alexandru.petenchea@arangodb.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
7
+ License: MIT License
8
+
9
+ Copyright (c) 2024 ArangoDB
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ Project-URL: homepage, https://github.com/arangodb/python-arango-async
30
+ Keywords: arangodb,python,driver,async
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: License :: OSI Approved :: MIT License
33
+ Classifier: Natural Language :: English
34
+ Classifier: Operating System :: OS Independent
35
+ Classifier: Programming Language :: Python :: 3
36
+ Classifier: Programming Language :: Python :: 3.9
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Programming Language :: Python :: 3.12
40
+ Classifier: Topic :: Documentation :: Sphinx
41
+ Classifier: Typing :: Typed
42
+ Requires-Python: >=3.9
43
+ Description-Content-Type: text/markdown
44
+ License-File: LICENSE
45
+ Requires-Dist: packaging>=23.1
46
+ Requires-Dist: setuptools>=42
47
+ Requires-Dist: aiohttp>=3.9
48
+ Requires-Dist: multidict>=6.0
49
+ Requires-Dist: pyjwt>=2.8.0
50
+ Provides-Extra: dev
51
+ Requires-Dist: black>=24.2; extra == "dev"
52
+ Requires-Dist: flake8>=7.0; extra == "dev"
53
+ Requires-Dist: isort>=5.10; extra == "dev"
54
+ Requires-Dist: mypy>=1.10; extra == "dev"
55
+ Requires-Dist: pre-commit>=3.7; extra == "dev"
56
+ Requires-Dist: pytest>=8.2; extra == "dev"
57
+ Requires-Dist: pytest-asyncio>=0.23.8; extra == "dev"
58
+ Requires-Dist: pytest-cov>=5.0; extra == "dev"
59
+ Requires-Dist: sphinx>=7.3; extra == "dev"
60
+ Requires-Dist: sphinx_rtd_theme>=2.0; extra == "dev"
61
+ Requires-Dist: types-setuptools; extra == "dev"
62
+ Dynamic: license-file
63
+
64
+ ![Logo](docs/static/logo.png)
65
+
66
+ [![CircleCI](https://dl.circleci.com/status-badge/img/gh/arangodb/python-arango-async/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/arangodb/python-arango-async/tree/main)
67
+ [![CodeQL](https://github.com/arangodb/python-arango-async/actions/workflows/codeql.yaml/badge.svg)](https://github.com/arangodb/python-arango-async/actions/workflows/codeql.yaml)
68
+ [![Last commit](https://img.shields.io/github/last-commit/arangodb/python-arango-async)](https://github.com/arangodb/python-arango-async/commits/main)
69
+
70
+ [![PyPI version badge](https://img.shields.io/pypi/v/python-arango-async?color=3775A9&style=for-the-badge&logo=pypi&logoColor=FFD43B)](https://pypi.org/project/python-arango-async/)
71
+ [![Python versions badge](https://img.shields.io/badge/3.9%2B-3776AB?style=for-the-badge&logo=python&logoColor=FFD43B&label=Python)](https://pypi.org/project/python-arango-async/)
72
+
73
+ [![License](https://img.shields.io/github/license/arangodb/python-arango?color=9E2165&style=for-the-badge)](https://github.com/arangodb/python-arango/blob/main/LICENSE)
74
+ [![Code style: black](https://img.shields.io/static/v1?style=for-the-badge&label=code%20style&message=black&color=black)](https://github.com/psf/black)
75
+ [![Downloads](https://img.shields.io/pepy/dt/python-arango-async?style=for-the-badge&color=282661
76
+ )](https://pepy.tech/project/python-arango-async)
77
+
78
+ # python-arango-async
79
+
80
+ Python driver for [ArangoDB](https://www.arangodb.com), a scalable multi-model
81
+ database natively supporting documents, graphs and search.
82
+
83
+ This is the _asyncio_ alternative of the officially supported [python-arango](https://github.com/arangodb/python-arango)
84
+ driver.
85
+
86
+ **Note: This project is still in active development, features might be added or removed.**
87
+
88
+ ## Requirements
89
+
90
+ - ArangoDB version 3.11+
91
+ - Python version 3.9+
92
+
93
+ ## Installation
94
+
95
+ ```shell
96
+ pip install python-arango-async --upgrade
97
+ ```
98
+
99
+ ## Getting Started
100
+
101
+ Here is a simple usage example:
102
+
103
+ ```python
104
+ from arangoasync import ArangoClient
105
+ from arangoasync.auth import Auth
106
+
107
+
108
+ async def main():
109
+ # Initialize the client for ArangoDB.
110
+ async with ArangoClient(hosts="http://localhost:8529") as client:
111
+ auth = Auth(username="root", password="passwd")
112
+
113
+ # Connect to "_system" database as root user.
114
+ sys_db = await client.db("_system", auth=auth)
115
+
116
+ # Create a new database named "test".
117
+ await sys_db.create_database("test")
118
+
119
+ # Connect to "test" database as root user.
120
+ db = await client.db("test", auth=auth)
121
+
122
+ # Create a new collection named "students".
123
+ students = await db.create_collection("students")
124
+
125
+ # Add a persistent index to the collection.
126
+ await students.add_index(type="persistent", fields=["name"], options={"unique": True})
127
+
128
+ # Insert new documents into the collection.
129
+ await students.insert({"name": "jane", "age": 39})
130
+ await students.insert({"name": "josh", "age": 18})
131
+ await students.insert({"name": "judy", "age": 21})
132
+
133
+ # Execute an AQL query and iterate through the result cursor.
134
+ cursor = await db.aql.execute("FOR doc IN students RETURN doc")
135
+ async with cursor:
136
+ student_names = []
137
+ async for doc in cursor:
138
+ student_names.append(doc["name"])
139
+
140
+ ```
141
+
142
+ Please see the [documentation](https://python-arango-async.readthedocs.io/en/latest/) for more details.
@@ -0,0 +1,27 @@
1
+ arangoasync/__init__.py,sha256=HEJ7_q_pRcS9Gco3poa89jLQr_zDrDrHAXCEJMgjUFI,196
2
+ arangoasync/aql.py,sha256=LetOQO5rzoER_dyTJhbEqPScifZRtgLA4y09K5RgQIY,28897
3
+ arangoasync/auth.py,sha256=MM13-S06zBU22v1Y978URMBOBgb1O1HLIANL7HKv9cA,2989
4
+ arangoasync/client.py,sha256=WoYcQJrppzNGf73a6OuCyfnSdMZ-hywCPUyqa2MAbOc,9871
5
+ arangoasync/collection.py,sha256=AB7GwN2BzkhfYCPnNZOA6TqjybvEdn-zNn4WCD2reVc,67915
6
+ arangoasync/compression.py,sha256=vMhcg5nQPkbgplk48vxARUnJ6YeIwrCLC6pDCVJSwo0,3804
7
+ arangoasync/connection.py,sha256=4JEbbeBPhlSSbhvNfwSKD9jKDrhvbLqM29UhPr5eszY,17236
8
+ arangoasync/cursor.py,sha256=GUnfjIuA4nmfk5GMi3WR5MXCaqHr_eyRmGWBG6ZuqLM,8446
9
+ arangoasync/database.py,sha256=iHIAZO4gp5TEALmuqGEk-bWQkrgaab_hAlFjzjOlpAg,58927
10
+ arangoasync/errno.py,sha256=4oKY9IyyzjOitbywhjH8S214qeNtpDlQg7JsHENJNoU,25245
11
+ arangoasync/exceptions.py,sha256=7YFm9pqTsnLyp_AcOT-nn0tV7YesgYek9ll-Ydn2PIM,9320
12
+ arangoasync/executor.py,sha256=eRUfWQc4eHgJr15nPnDju8oSK0408x6yB8XEGk7YhPY,4740
13
+ arangoasync/http.py,sha256=Ang6gAwmrkbfZm32OtXylyoFvEb4o-w8aLP098jNE5I,5578
14
+ arangoasync/job.py,sha256=Lr6BiMywq_iIJYtU8SQ3unhlAa0j1sfNngTm4LFF9ek,7441
15
+ arangoasync/logger.py,sha256=Ui4n-ELcYM4fujpZV6myU4by82L_70S1cfG0bhEhf-Q,58
16
+ arangoasync/request.py,sha256=3-C5bFJiihrAEo7pIQX-CSX6nF-x783G_TVLiepz13s,2845
17
+ arangoasync/resolver.py,sha256=icsmQIkklrvq-a88vIR8C-M3rcv5BJxhDE2PK8LenG0,3409
18
+ arangoasync/response.py,sha256=xw8fHODyd8dYc2Cvvk8xhOQ4AynufRE7-qSTHunfBIw,1764
19
+ arangoasync/result.py,sha256=NVwFxpYUDujHNRCqCZIBOlGLzB7XsiSmjWPFhUgRS6k,233
20
+ arangoasync/serialization.py,sha256=ExRqrEpbk11Hb3AfFUJGqPlGBD3dbvwQg_xsZUsrm6I,2910
21
+ arangoasync/typings.py,sha256=JRiHUeZg7GBendgrnw3cedFbMIOXNxx5EM-bgfSJTuU,54801
22
+ arangoasync/version.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
23
+ python_arango_async-0.0.1.dist-info/licenses/LICENSE,sha256=6zoGhJon2tcnvzmycirNjLNBZ6rlLJtYDdVGO76RXVM,1065
24
+ python_arango_async-0.0.1.dist-info/METADATA,sha256=usDD-cTlZn92skozNjrx_vTLF0Umnh22V8UBltD6aHM,6413
25
+ python_arango_async-0.0.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
26
+ python_arango_async-0.0.1.dist-info/top_level.txt,sha256=uabwJ6t-MiIaZQXGUvYikeSbZDcF0RK37GzikBnDz5k,12
27
+ python_arango_async-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (78.1.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 ArangoDB
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ arangoasync