
Micro Graph Database for Python
Graphs · Vectors · Search
pip install cogdb
No server. No config. Runs in notebooks, apps, even your browser.
from cog.torque import Graph
g = Graph("marvel")
# Heroes and teams
g.put("iron_man", "team", "avengers")
g.put("thor", "team", "avengers")
g.put("loki", "enemy", "avengers")
# Embeddings capture fighting style
g.put_embedding("iron_man", [0.9, 0.1, 0.8])
g.put_embedding("thor", [0.2, 0.9, 0.7])
g.put_embedding("loki", [0.3, 0.8, 0.6])
# Which Avenger fights most like Loki?
g.v("avengers").inc("team").k_nearest("loki", k=1).all()Result
['thor']Zero Setup
pip install cogdb — no server, no Docker, no config, no dependencies.
Runs Anywhere
Jupyter notebooks, Python apps, Google Colab, even the browser via Pyodide.
Built-in Storage Engine
No third-party dependencies. Your data survives restarts.
Python-Native Query API
Traverse graphs with Torque — a fluent, chainable Python API. No Cypher, no query strings.
Graph + Vector Search
Combine traversal with similarity — filter by relationships and meaning.
Visualization
Built-in graph visualization. See your data as you build.
Stay in the Loop
Get notified about new features and releases