Tiny demo app that shows how to use python-arango-async with ArangoDB.
- Install dependencies
pip install -r requirements.txt
- Start the ArangoDB server. You can use the starter.sh script for that.
./starter.sh cluster enterprise
- Run the demo app
python -m app.main
- Open the app in your browser (http://localhost:8000).
- List graphs: see existing graphs in your database.
- Upload a graph: paste JSON with nodes + edges and click
Upload
. - Visualize: the graph is rendered with Cytoscape.
Example JSON:
{
"name": "demo_star",
"nodes": [
{"_key": "X"},
{"_key": "A"},
{"_key": "B"},
{"_key": "C"},
{"_key": "D"},
{"_key": "E"}
],
"edges": [
{"_from": "X", "_to": "A"},
{"_from": "X", "_to": "B"},
{"_from": "X", "_to": "C"},
{"_from": "X", "_to": "D"},
{"_from": "X", "_to": "E"},
{"_from": "A", "_to": "B"},
{"_from": "B", "_to": "C"},
{"_from": "D", "_to": "E"}
]
}
- Default
_systemd
database credentials: root/passwd. - This demo is intentionally minimal — no auth, no validation, just enough to show how to connect the driver, create graphs, and visualize them.
- The default database is
test
, usernametest
and passwordpasswd
. You can change these in the.env
file.