Python Docs
Python APIs, examples, recipes, integrations, and generated API reference for
building graph-driven reactive systems with graphrefly.
Start here
Section titled “Start here”- Quick Start — build a tiny graph through the Python facade.
- API Reference — generated from current exports and source docstrings.
- Examples — package-local Python usage patterns.
- Recipes — runtime-boundary and composition notes.
- Integrations — host-owned async and network adapter surfaces.
- Release — wheel, version, and publishing policy.
Install
Section titled “Install”pip install graphreflyfrom graphrefly import Graph
with Graph("hello") as graph: count = graph.state(1, name="count") doubled = graph.derived([count], lambda value: value * 2, name="doubled")
with doubled.subscribe(lambda msg: print(msg.kind, msg.value)): count.set(2)Ownership
Section titled “Ownership”This site is generated in graphrefly-py and deployed to
https://py.graphrefly.dev/. The shared graphrefly.dev site links here for
Python-specific API details and keeps cross-language concepts in the shared docs.