Driver for Python is not entirely completed. It supports Connections to ArangoDB with custom options, Collections, Documents, Indexes Cursors and partially Edges.
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.
Library is in early alpha so it’s not on PyPi yet. To install use pip:
pip install arango
It’s quite simple to start work with ArangoDB:
from arango import create
# create connection to database
voca = create()
# create collection with name `test_collection`
voca.test_collection.create()
# create document
voca.test_collection.documents.create({"sample_key": "sample_value"})
# get first document
doc = voca.test_collection.documents().first
# get document body
doc.body
# get all documents in collection
for doc in voca.test_collection.query.execute():
print doc.id
Supported versions of ArangoDB: 1.1x and 1.2x
This release support Python 3.3, Python 2.7, PyPy 1.9.