Provides access to temporary ArangoDB Cloud instance provisioning, for graph and beyond.
pip install adb-cloud-connector
pip install git+https://github.com/arangodb/adb_cloud_connector.git
from adb_cloud_connector import get_temp_credentials
con = get_temp_credentials()
print(con)
Assuming you have python-arango installed, you can then do the following:
# pip install python-arango
from arango import ArangoClient
db = ArangoClient(hosts=credentials["url"]).db(
credentials["dbName"], credentials["username"], credentials["password"], verify=True
)
git clone https://github.com/arangodb/adb_cloud_connector.git
cd adb_cloud_connector
- (create virtual environment of choice)
pip install -e .[dev]
pytest