Skip to content
PACKAGES

Python Docs

Python APIs, examples, recipes, integrations, and generated API reference for building graph-driven reactive systems with graphrefly.

  • 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.
Terminal window
pip install graphrefly
from 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)

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.