Skip to content

runicGraph schema migrations and OGM

For Cypher-based graph databases โ€” FalkorDB, ArcadeDB, Neo4j, Memgraph, Apache AGE.

runic

Quick look โ€‹

python
from runic.ogm import Field, Node, Repository, Session, create_driver

class Person(Node, labels=["Person"]):
    id: str = Field(index=True)
    name: str
    email: str = Field(index=True, unique=True)

driver = create_driver("falkordb", host="localhost", port=6379, graph="myapp")

with Session(driver) as session:
    session.add(Person(id="alice", name="Alice", email="alice@example.com"))
    session.commit()

    repo = Repository(session, Person)
    print(repo.count())   # 1

Documentation โ€‹

See the OGM Quickstart or Migration Quickstart to get up and running.

pantau-alexa โ€” self-hosted Alexa Smart Home backend