ArangoDB Driver for Python

Features support

Driver for Python is not entirely completed. It supports Connections to ArangoDB with custom options, Collections, Documents, Indexes Cursors and partially Edges.

Presentation about Graph Databases and Python with real-world examples how to work with arango-python.

ArangoDB is an open-source database with a flexible data model for documents, graphs, and key-values. Build high performance applications using a convenient sql-like query language or JavaScript/Ruby extensions.

More details about ArangoDB on official website. Some blog posts about this driver.

Getting started


Library is in early alpha so it’s not on PyPi yet. To install use pip:

pip install arango

Usage example

It’s quite simple to start work with ArangoDB:

from arango import create

# create connection to database
conn = create(db="test")

# create database itself

# create collection with name `test_collection`
# create document
conn.test_collection.documents.create({"sample_key": "sample_value"})
# get first document
doc = conn.test_collection.documents().first
# get document body

# get all documents in collection
for doc in conn.test_collection.query.execute():

# work with AQL

for n in range(10):
    "n": n,
    "mult": n * n})

  filter("n == 1 || n == 5")).execute()

# delete database

Arango versions, Platforms and Python versions

Supported versions of ArangoDB: 1.1x and 1.2x

This release support Python 3.3, Python 2.7, PyPy 1.9.

Indices and tables