Important
This repository has moved.
styxgraph (the execution-graph middleware) is now developed in the
styx-runtime-py monorepo,
alongside the other Styx Python runtime packages.
New issues and pull requests should be filed there.
The PyPI package styxgraph continues to be published from the new location.
from styxdefs import set_global_runner, get_global_runner
from styxgraph import GraphRunner
set_global_runner(DockerRunner()) # (Optional) Use any Styx runner like usual
set_global_runner(GraphRunner(get_global_runner())) # Use GraphRunner middleware
# Use any Styx functions as usual
# ...
print(get_global_runner().mermaid()) # Print mermaid diagram