{"id":24745,"library":"turingdb","title":"TuringDB","description":"TuringDB is a graph database engine with support for Cypher-like queries, vector search, and LOAD CSV. Current version is 1.29.0, requiring Python >=3.10. Releases occur roughly monthly, with active development focused on performance, correctness, and new features like SET queries and vector database integration.","status":"active","version":"1.29.0","language":"python","source_language":"en","source_url":"https://github.com/turing-db/turingdb","tags":["graph-database","cypher","vector-search"],"install":[{"cmd":"pip install turingdb","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"TuringDB is a class, not a submodule. Direct import of the class is correct.","wrong":"import turingdb.TuringDB","symbol":"TuringDB","correct":"from turingdb import TuringDB"}],"quickstart":{"code":"from turingdb import TuringDB\nimport os\n\ndb = TuringDB()\ndb.init()\nresult = db.execute(\"MATCH (n) RETURN n LIMIT 1\")\nprint(result)\ndb.close()","lang":"python","description":"Initialize a local TuringDB instance and run a simple match query."},"warnings":[{"fix":"Replace `from turingdb import TuringGraph` with `from turingdb import TuringDB` and update all references.","message":"In v1.0 and earlier, the main class was `TuringGraph`. Renamed to `TuringDB` in v1.1. Code using `TuringGraph` will break.","severity":"breaking","affected_versions":"<1.1"},{"fix":"Always call `db.init()` immediately after creating the `TuringDB` instance.","message":"`TuringDB.init()` must be called before any queries. Failing to do so results in a segmentation fault or undefined behavior.","severity":"gotcha","affected_versions":"All"},{"fix":"Check the type of the result or explicitly convert using `list(result)` for consistent behavior.","message":"The `execute()` method returns results as a pandas DataFrame if pandas is installed, otherwise as a list of dicts. Code relying on one format may break if the other is returned.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: `from turingdb import TuringDB`","cause":"Importing the module incorrectly (e.g., `import turingdb` then `turingdb.TuringDB`) when the correct form is `from turingdb import TuringDB`.","error":"AttributeError: module 'turingdb' has no attribute 'TuringDB'"},{"fix":"Add `db.init()` immediately after `db = TuringDB()` before any query execution.","cause":"Calling `execute()` before calling `init()` on the TuringDB instance.","error":"Segmentation fault (core dumped)"},{"fix":"Ensure `db.init()` is called before any `execute()` call.","cause":"Attempting to run a query without initializing the database engine.","error":"turingdb.exceptions.TuringException: Database is not initialized"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}