Runs Anywhere

Because CogDB is a pure Python library, it can be imported anywhere you would normally write Python code. You are not restricted by infrastructure requirements or network constraints.

Interactive Environments

CogDB works exceptionally well in interactive environments. Data scientists and researchers can load, traverse, and visualize full graphs directly within their notebooks without needing to provision external database services.

  • Jupyter Notebooks
  • Google Colab
  • Local Python REPLs

In the Browser via Pyodide

CogDB supports Pyodide, meaning you can execute Python and the entire CogDB graph engine right inside the user's browser. This makes it possible to build fully interactive, client-side applications that leverage complex graph traversals.

# From any Python environment:
from cog.torque import Graph

g = Graph("my_data")
g.put("alice", "knows", "bob")

Seamless Transitions

The graph data you create locally in a notebook is fully compatible with production environments. You can prototype your graph structure and Torque queries locally, then move the exact same code and data directory to your servers.