Python API¶
Grafeo provides first-class Python support through the grafeo package.
Quick Start¶
import grafeo
# Create a database
db = grafeo.Database()
# Execute queries
with db.session() as session:
session.execute("INSERT (:Person {name: 'Alice'})")
result = session.execute("MATCH (p:Person) RETURN p.name")
for row in result:
print(row['p.name'])
Sections¶
-
Creating and configuring databases.
-
Creating, reading, updating, and deleting nodes.
-
Managing relationships between nodes.
-
Transaction management and isolation.
-
Working with query results.