The data landscape is shifting toward specialized, embedded engines. Just as developers choose SQLite for light operational storage and DuckDB for fast analytical data frames,
db = kuzu.Database("./test_db") conn = kuzu.Connection(db)
# Insert Nodes conn.execute("CREATE (:User id: 1, name: 'Alice')") conn.execute("CREATE (:User id: 2, name: 'Bob')") conn.execute("CREATE (:Feature id: 'F_01', category: 'Search')") conn.execute("CREATE (:Feature id: 'F_02', category: 'Checkout')") # Insert Relationships with properties conn.execute(""" MATCH (u:User id: 1), (f:Feature id: 'F_01') CREATE (u)-[:InteractedWith clicks: 12]->(f) """) conn.execute(""" MATCH (u:User id: 2), (f:Feature id: 'F_01') CREATE (u)-[:InteractedWith clicks: 5]->(f) """) conn.execute(""" MATCH (u:User id: 2), (f:Feature id: 'F_02') CREATE (u)-[:InteractedWith clicks: 1]->(f) """) Use code with caution. 4. Querying and Exporting to Pandas kuzu v0 136
"Kuzu v0 136" is likely a historical or mistaken reference to an early version of the Kuzu graph database. Kuzu has since evolved into a mature, high-performance, and embeddable property graph database, uniquely positioned for modern AI, analytics, and knowledge graph applications. If you are seeking a cutting-edge graph database for your next project, looking at the current releases (v0.11.x and beyond) of Kuzu is an excellent place to start.
The following script demonstrates how to initialize an on-disk database, define a schema, and execute basic Cypher queries. The data landscape is shifting toward specialized, embedded
Update now → [link]
: It treats nodes and relationships as tables, allowing for columnar storage optimizations usually reserved for relational systems. Cypher Support Querying and Exporting to Pandas "Kuzu v0 136"
Version 0.136 introduces nested complex types. You can now store a LIST of STRUCT directly as a node property. This is a game-changer for property graph models that require hierarchical attributes (e.g., a “Customer” node holding a list of product: string, date: date ). Previously, this required serialization into JSON strings; now it is natively indexed.
To see the power of Kùzu v0.1.3.6, let's walk through a practical scenario: building a simple user-interaction graph, populating it with data, and querying it using Cypher. 1. Installation