Skip to main content

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 Agent with 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

orchflow-0.1.0.tar.gz (148.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orchflow-0.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for orchflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57eda9a17e5b8161e09765e34aa8cd32f2faea078e2c565bd57be733aabdaf28
MD5 a4365f55d18173dc342145b091a67485
BLAKE2b-256 80ecde89ae9c0dceea96e33c74fc782a75cfac274a66473f10ca4d11eff0faf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for orchflow-0.1.0.tar.gz:

Publisher: publish-pypi.yml on awesome-pro/orchflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for orchflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe409811b39f05203d98e8fe84c98885d9a44ffb86be9191681e1d0c3a57ae42
MD5 dd9f99b1db9cbf507cc7051ff1d64a04
BLAKE2b-256 9cee251a987c59703c6554ccdfab2a78414bcaa039880604dcd1ae8bde8a52d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for orchflow-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on awesome-pro/orchflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page