Skip to main content

UfaFlow

version license python release fastapi

CI status security audits status stars issues last commit

Overview

UfaFlow is a lightweight asynchronous worker manager and load balancer for Python services. It distributes traffic across worker processes with predictable lifecycle control, simple configuration, and async-first execution.

The project is designed for teams that need:

  • a simple worker runtime
  • process-level isolation
  • async-first execution
  • predictable startup and shutdown behavior
  • easy deployment in development and production-like environments

Why UfaFlow

Many applications need more than a single process, but do not require the complexity of a full orchestration platform. UfaFlow acts as a lightweight execution layer that helps you:

  • manage multiple workers with a single runtime
  • balance traffic or task distribution across processes
  • keep lifecycle management explicit and controllable
  • reduce operational overhead for small-to-medium service deployments

Key Features

  • Async-first worker orchestration
  • Configurable worker pool and process management
  • Lightweight request balancing across workers
  • Support for FastAPI and Python service integration
  • YAML-based configuration
  • Clean startup and shutdown lifecycle behavior
  • Simple deployment model for local and cloud environments

Installation

pip install ufaflow

Quick start

Create a YAML config file:

health_interval: 5
health_timeout: 2
frontends:
  - listen_host: "0.0.0.0"
    listen_port: 8080
    algorithm: round_robin
    backends:
      - host: "127.0.0.1"
        port: 8001
      - host: "127.0.0.1"
        port: 8002

Run the load balancer:

python -m ufaflow.cli config.yaml

To run with multiple worker processes:

python -m ufaflow.cli config.yaml --workers 4

License

MIT

Metadata

Release files for ufaflow 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ufaflow 1.0.6
File Size Uploaded Provenance
ufaflow-1.0.6.tar.gz 10.8 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ufaflow 1.0.6
File Interpreter ABI Platform
ufaflow-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 22.2 kB

Release files / ufaflow-1.0.6.tar.gz

Download URL ufaflow-1.0.6.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a48de20fb615a825a9df440d497f9861e33798ef48fd52d579b14f8a223a8150
BLAKE2b-256 checksum
How to use checksums
afb7b07856c81b2889dd975854fe0ad2aa0002d07952107f16b26847c02a2372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / ufaflow-1.0.6-py3-none-any.whl

Download URL ufaflow-1.0.6-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1eaf892aa82a0e26586aa8fa629da794c4996487f77d3488c28d49c5c31d276
BLAKE2b-256 checksum
How to use checksums
23c1aa182c0f03c83a31a8c8b0df3876e29f2ff268db171662de4273fe276c24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for ufaflow 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ufaflow-1.0.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page