A lightweight Python framework for readable multi-agent pipelines.
Project description
Orchflow
Orchflow is a lightweight Python framework for readable multi-agent pipelines. It gives you sequential, parallel, and conditional orchestration without making you model everything as a graph.
from orchflow import Flow, StepContext, step
@step
async def research(input: str, context: StepContext) -> str:
return f"research about {input}"
@step
async def write(input: str, context: StepContext) -> str:
return f"draft based on {context.previous}"
result = await Flow([research, write]).run("agent orchestration")
print(result.output)
Why
Plain Python chaining is easy to read but thin on retries, parallelism, and tracing. Heavy graph runtimes are powerful but can feel like too much for simple pipelines. Orchflow aims for the middle: small API, predictable state, useful traces, and offline-testable agent workflows.
Features
- Sequential flows
- Parallel step groups
- Conditional routing
- Retry policies
- Shared run state
- Flat structured traces
- Public
Agentwith optional LiteLLM support - Offline testing helpers under
orchflow.testing
Install
pip install orchflow
Optional LiteLLM-backed agents:
pip install "orchflow[litellm]"
Development
uv sync --extra dev
uv run pytest
uv run ruff check
uv run ruff format --check
uv run pyright
Publishing
Publish to TestPyPI first with the manual GitHub Actions workflow in
.github/workflows/publish-testpypi.yml, then publish to PyPI with
.github/workflows/publish-pypi.yml.
Source Of Truth
Project decisions live in AGENTS.md. Implementation follows that document.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orchflow-0.1.0.tar.gz.
File metadata
- Download URL: orchflow-0.1.0.tar.gz
- Upload date:
- Size: 148.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57eda9a17e5b8161e09765e34aa8cd32f2faea078e2c565bd57be733aabdaf28
|
|
| MD5 |
a4365f55d18173dc342145b091a67485
|
|
| BLAKE2b-256 |
80ecde89ae9c0dceea96e33c74fc782a75cfac274a66473f10ca4d11eff0faf5
|
Provenance
The following attestation bundles were made for orchflow-0.1.0.tar.gz:
Publisher:
publish-pypi.yml on awesome-pro/orchflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
orchflow-0.1.0.tar.gz -
Subject digest:
57eda9a17e5b8161e09765e34aa8cd32f2faea078e2c565bd57be733aabdaf28 - Sigstore transparency entry: 1432237968
- Sigstore integration time:
-
Permalink:
awesome-pro/orchflow@b4df99e1004b67505773a87819dcd1b2560eef7f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/awesome-pro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b4df99e1004b67505773a87819dcd1b2560eef7f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file orchflow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: orchflow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe409811b39f05203d98e8fe84c98885d9a44ffb86be9191681e1d0c3a57ae42
|
|
| MD5 |
dd9f99b1db9cbf507cc7051ff1d64a04
|
|
| BLAKE2b-256 |
9cee251a987c59703c6554ccdfab2a78414bcaa039880604dcd1ae8bde8a52d0
|
Provenance
The following attestation bundles were made for orchflow-0.1.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on awesome-pro/orchflow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
orchflow-0.1.0-py3-none-any.whl -
Subject digest:
fe409811b39f05203d98e8fe84c98885d9a44ffb86be9191681e1d0c3a57ae42 - Sigstore transparency entry: 1432238331
- Sigstore integration time:
-
Permalink:
awesome-pro/orchflow@b4df99e1004b67505773a87819dcd1b2560eef7f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/awesome-pro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b4df99e1004b67505773a87819dcd1b2560eef7f -
Trigger Event:
workflow_dispatch
-
Statement type: