Skip to content

Commit 6baf721

Browse files
committed
Update documentation and add new logo
1 parent 24949b7 commit 6baf721

File tree

6 files changed

+40
-19
lines changed

6 files changed

+40
-19
lines changed

README.md

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
# python-arango
1+
![Logo](docs/static/logo.png)
22

3-
Python driver for [ArangoDB](https://www.arangodb.com).
3+
[![Build](https://github.com/joowani/python-arango/actions/workflows/build.yaml/badge.svg)](https://github.com/joowani/python-arango/actions/workflows/build.yaml)
4+
[![CodeQL](https://github.com/joowani/python-arango/actions/workflows/codeql.yaml/badge.svg)](https://github.com/joowani/python-arango/actions/workflows/codeql.yaml)
5+
[![CodeCov](https://codecov.io/gh/joowani/python-arango/branch/main/graph/badge.svg?token=DXg0O4hxnx)](https://codecov.io/gh/joowani/python-arango)
6+
[![PyPI version](https://badge.fury.io/py/python-arango.svg)](https://badge.fury.io/py/python-arango)
7+
[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen)](https://github.com/joowani/python-arango/blob/main/LICENSE)
8+
![Python version](https://img.shields.io/badge/python-3.6%2B-blue)
9+
10+
# Python-Arango
11+
12+
Python driver for [ArangoDB](https://www.arangodb.com), a scalable multi-model
13+
database natively supporting documents, graphs and search.
414

515
## Requirements
616

7-
Python 3.6+ and ArangoDB 3.7+
17+
- ArangoDB version 3.7+
18+
- Python version 3.6+
819

920
## Installation
1021

@@ -47,7 +58,7 @@ cursor = db.aql.execute("FOR doc IN students RETURN doc")
4758
student_names = [document["name"] for document in cursor]
4859
```
4960

50-
Here is another example with graphs:
61+
Another example with [graphs](https://www.arangodb.com/docs/stable/graphs.html):
5162

5263
```python
5364
from arango import ArangoClient
@@ -66,7 +77,7 @@ students = graph.create_vertex_collection("students")
6677
lectures = graph.create_vertex_collection("lectures")
6778

6879
# Create an edge definition (relation) for the graph.
69-
register = graph.create_edge_definition(
80+
edges = graph.create_edge_definition(
7081
edge_collection="register",
7182
from_vertex_collections=["students"],
7283
to_vertex_collections=["lectures"]
@@ -83,12 +94,12 @@ lectures.insert({"_key": "STA101", "title": "Statistics"})
8394
lectures.insert({"_key": "CSC101", "title": "Algorithms"})
8495

8596
# Insert edge documents into "register" edge collection.
86-
register.insert({"_from": "students/01", "_to": "lectures/MAT101"})
87-
register.insert({"_from": "students/01", "_to": "lectures/STA101"})
88-
register.insert({"_from": "students/01", "_to": "lectures/CSC101"})
89-
register.insert({"_from": "students/02", "_to": "lectures/MAT101"})
90-
register.insert({"_from": "students/02", "_to": "lectures/STA101"})
91-
register.insert({"_from": "students/03", "_to": "lectures/CSC101"})
97+
edges.insert({"_from": "students/01", "_to": "lectures/MAT101"})
98+
edges.insert({"_from": "students/01", "_to": "lectures/STA101"})
99+
edges.insert({"_from": "students/01", "_to": "lectures/CSC101"})
100+
edges.insert({"_from": "students/02", "_to": "lectures/MAT101"})
101+
edges.insert({"_from": "students/02", "_to": "lectures/STA101"})
102+
edges.insert({"_from": "students/03", "_to": "lectures/CSC101"})
92103

93104
# Traverse the graph in outbound direction, breadth-first.
94105
result = graph.traverse(
@@ -98,5 +109,5 @@ result = graph.traverse(
98109
)
99110
```
100111

101-
Please see [documentation](http://python-driver-for-arangodb.readthedocs.io/en/master/index.html)
112+
Please see the [documentation](http://python-driver-for-arangodb.readthedocs.io/en/master/index.html)
102113
for more details.

docs/async.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Asynchronous Execution
2-
----------------------
1+
Async API Execution
2+
-------------------
33

4-
In **asynchronous execution**, python-arango sends API requests to ArangoDB in
4+
In **asynchronous API executions**, python-arango sends API requests to ArangoDB in
55
fire-and-forget style. The server processes the requests in the background, and
66
the results can be retrieved once available via :ref:`AsyncJob` objects.
77

docs/batch.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Batch Execution
2-
---------------
1+
Batch API Execution
2+
-------------------
33

4-
In **batch execution**, requests to ArangoDB server are stored in client-side
4+
In **batch API executions**, requests to ArangoDB server are stored in client-side
55
in-memory queue, and committed together in a single HTTP call. After the commit,
66
results can be retrieved later from :ref:`BatchJob` objects.
77

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"sphinx.ext.viewcode",
99
]
1010
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
11+
html_static_path = ["static"]
1112
html_theme = "sphinx_rtd_theme"
13+
master_doc = "index"
1214

1315
autodoc_member_order = "bysource"
1416

docs/index.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
.. image:: /static/logo.png
2+
3+
|
4+
5+
Python-Arango
6+
-------------
7+
18
Welcome to the documentation for **python-arango**, a Python driver for ArangoDB_.
29

310
Requirements
411
=============
512

6-
Python 3.6+ and ArangoDB 3.7+
13+
- ArangoDB version 3.7+
14+
- Python version 3.6+
715

816
Installation
917
============

docs/static/logo.png

10.4 KB
Loading

0 commit comments

Comments
 (0)