Description
CogDB is an open source graph database for Python that runs inside your own program, so there is no server to install or configure. It is persistent, which means your data survives restarts. You store relationships as triples, traverse them with Torque, a chainable Python query API that replaces query languages such as Cypher, and you can run vector similarity search over the nodes to combine relationships with meaning. Calling vectorize() embeds all nodes for semantic search, and k_nearest lets you ask questions such as where to find a coffee, then follow relationships from the result. The storage engine has no third-party dependencies. Built-in graph visualization helps you see the data as you build it. CogDB runs in Jupyter notebooks, Python apps, Google Colab and in the browser through Pyodide. Installation is a single pip install cogdb. The site also mentions a cloud option and a playground where you can try the library before installing it.…
Highlights
- Embedded graph database with no server
- Torque fluent Python query API
- Vector similarity search over graph nodes
- Persistent storage with no dependencies
- Built-in graph visualization
Ratings & Reviews
No ratings yet
Be the first to rate CogDB.
People also visit
LibreDB Studio
Browser-based SQL IDE for PostgreSQL, MySQL, Oracle, SQL Server, MongoDB, Redis
CogDB FAQ
What is CogDB?
An embedded graph database for Python. It stores relationships as triples and runs inside your program, with no server or Docker setup.
How do I install it?
Run pip install cogdb. The site says it needs no server, no config and no dependencies.
Can I search by meaning as well as by relationship?
Yes. You can call vectorize() to embed the nodes, then use k_nearest to find similar items and traverse their relationships in the same query.
Where can I run it?
In Jupyter notebooks, Python apps, Google Colab, and in the browser through Pyodide.
Is it free?
Yes. CogDB is open source, and its source is on GitHub.
What are the best CogDB alternatives?
Popular alternatives to CogDB include Memgraph, Atomspace and Atomic Server. See all CogDB alternatives


