Skip to content

Commit

Permalink
Update documentation and add new logo
Browse files Browse the repository at this point in the history
  • Loading branch information
joowani committed Feb 19, 2021
1 parent 24949b7 commit 6baf721
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 19 deletions.
35 changes: 23 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# python-arango
![Logo](docs/static/logo.png)

Python driver for [ArangoDB](https://www.arangodb.com).
[![Build](https://github.com/joowani/python-arango/actions/workflows/build.yaml/badge.svg)](https://github.com/joowani/python-arango/actions/workflows/build.yaml)
[![CodeQL](https://github.com/joowani/python-arango/actions/workflows/codeql.yaml/badge.svg)](https://github.com/joowani/python-arango/actions/workflows/codeql.yaml)
[![CodeCov](https://codecov.io/gh/joowani/python-arango/branch/main/graph/badge.svg?token=DXg0O4hxnx)](https://codecov.io/gh/joowani/python-arango)
[![PyPI version](https://badge.fury.io/py/python-arango.svg)](https://badge.fury.io/py/python-arango)
[![GitHub license](https://img.shields.io/badge/license-MIT-brightgreen)](https://github.com/joowani/python-arango/blob/main/LICENSE)
![Python version](https://img.shields.io/badge/python-3.6%2B-blue)

# Python-Arango

Python driver for [ArangoDB](https://www.arangodb.com), a scalable multi-model
database natively supporting documents, graphs and search.

## Requirements

Python 3.6+ and ArangoDB 3.7+
- ArangoDB version 3.7+
- Python version 3.6+

## Installation

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

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

```python
from arango import ArangoClient
Expand All @@ -66,7 +77,7 @@ students = graph.create_vertex_collection("students")
lectures = graph.create_vertex_collection("lectures")

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

# Insert edge documents into "register" edge collection.
register.insert({"_from": "students/01", "_to": "lectures/MAT101"})
register.insert({"_from": "students/01", "_to": "lectures/STA101"})
register.insert({"_from": "students/01", "_to": "lectures/CSC101"})
register.insert({"_from": "students/02", "_to": "lectures/MAT101"})
register.insert({"_from": "students/02", "_to": "lectures/STA101"})
register.insert({"_from": "students/03", "_to": "lectures/CSC101"})
edges.insert({"_from": "students/01", "_to": "lectures/MAT101"})
edges.insert({"_from": "students/01", "_to": "lectures/STA101"})
edges.insert({"_from": "students/01", "_to": "lectures/CSC101"})
edges.insert({"_from": "students/02", "_to": "lectures/MAT101"})
edges.insert({"_from": "students/02", "_to": "lectures/STA101"})
edges.insert({"_from": "students/03", "_to": "lectures/CSC101"})

# Traverse the graph in outbound direction, breadth-first.
result = graph.traverse(
Expand All @@ -98,5 +109,5 @@ result = graph.traverse(
)
```

Please see [documentation](http://python-driver-for-arangodb.readthedocs.io/en/master/index.html)
Please see the [documentation](http://python-driver-for-arangodb.readthedocs.io/en/master/index.html)
for more details.
6 changes: 3 additions & 3 deletions docs/async.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Asynchronous Execution
----------------------
Async API Execution
-------------------

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

Expand Down
6 changes: 3 additions & 3 deletions docs/batch.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Batch Execution
---------------
Batch API Execution
-------------------

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

Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"sphinx.ext.viewcode",
]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_static_path = ["static"]
html_theme = "sphinx_rtd_theme"
master_doc = "index"

autodoc_member_order = "bysource"

Expand Down
10 changes: 9 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
.. image:: /static/logo.png

|
Python-Arango
-------------

Welcome to the documentation for **python-arango**, a Python driver for ArangoDB_.

Requirements
=============

Python 3.6+ and ArangoDB 3.7+
- ArangoDB version 3.7+
- Python version 3.6+

Installation
============
Expand Down
Binary file added docs/static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6baf721

Please sign in to comment.