Arangodb驱动程序
arango的Python项目详细描述
接口中的arangodb rest api的驱动程序,arangodb.org
安装
pip install arango
用法
要开始使用arangodb请尝试以下示例:
from arango import create # create connection to database conn = create(db="test") conn.database.create() # create collection with name `test_collection` conn.test_collection.create() # create document conn.test_collection.documents.create({"sample_key": "sample_value"}) # get first document doc = conn.test_collection.documents().first # get document body doc.body # get all documents in collection for doc in conn.test_collection.query.execute(): print doc.id
有关详细信息,请阅读Documentation
支持的Python解释器和版本:
- cPython 3.3
- cPython 2.7
- PyPy 1.9
支持的arangodb版本:1.4x
开发更改日志
0.2.0
- Added support for multiple databases
0.1.8
- Added support of bulk inserts