Skip to content

apetenchea/python-arango-async-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-arango-async-demo

Tiny demo app that shows how to use python-arango-async with ArangoDB.

Demo screenshot


Quick start

  1. Install dependencies
    pip install -r requirements.txt
  2. Start the ArangoDB server. You can use the starter.sh script for that.
    ./starter.sh cluster enterprise
  3. Run the demo app
    python -m app.main

How to use

  1. Open the app in your browser (http://localhost:8000).
  2. List graphs: see existing graphs in your database.
  3. Upload a graph: paste JSON with nodes + edges and click Upload.
  4. 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"}
  ]
}

Notes

  • 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, username test and password passwd. You can change these in the .env file.

About

Tiny demo app that shows how to use python-arango-async with ArangoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published