dbos
Ultra-lightweight durable execution in Python
What it is and what it does
DBOS is a Python library that adds durable workflow execution to applications by storing workflow state and progress in Postgres. Instead of managing a separate orchestration service or task queue, you annotate functions as workflows and steps, and DBOS automatically checkpoints their execution. If your application crashes or restarts, workflows resume from their last completed step without data loss or duplicate execution.
The library provides several Postgres-backed primitives: durable queues for background task execution with concurrency control, scheduled workflows using cron syntax, durable sleep for long pauses that survive restarts, exactly-once event processing for webhooks and Kafka consumers, and programmatic workflow management to query, pause, resume, or restart workflows. It targets applications that need reliable failure handling—payments systems, data pipelines, AI agents, and long-running background jobs—without the operational burden of external infrastructure.
Use it for:
- Build a payments service that reliably processes transactions even if servers crash mid-operation, with automatic recovery from the last completed step.
- Create a data pipeline that checkpoints progress in Postgres and resumes from interruption points rather than restarting from the beginning.
- Implement a Kafka consumer that processes messages exactly-once by starting a workflow per event with idempotency guarantees.
- Schedule recurring workflows using cron syntax and durably sleep workflows for days or weeks, surviving restarts and interruptions.
- Manage AI agent workflows that call unreliable external APIs, with automatic retry and recovery on failure.
- Enqueue background tasks with flow control, timeouts, rate limiting, and deduplication using only Postgres as the backing store.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
DBOS adds durable workflows and queues to Python applications by checkpointing execution state in Postgres, allowing programs to automatically recover from failures without external orchestration infrastructure.
Yes. DBOS is actively maintained, MIT-licensed, has low install friction, and solves a genuine problem—reliable failure handling without external infrastructure—for applications that need durable workflows. It is production-ready (Development Status 5) and supports current Python versions. Install if your application requires fault-tolerant execution and you want to avoid managing a separate orchestration service.
Install
dbos on PyPI
pip
pip install dbosuv
uv add dbospoetry
poetry add dbosInstalling dbos
Before you install
Low install friction with a pure Python wheel and six standard runtime dependencies. Active maintenance with a recent release 15 days ago. Supports current Python versions (3.10–3.14).
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal obligations.
Quickstart
pip install dbos
from dbos import DBOS
@DBOS.step()
def my_step():
return "done"
@DBOS.workflow()
def my_workflow():
return my_step()
DBOS.start_workflow(my_workflow)
Requires a Postgres database connection; DBOS must be initialized with a database_url before workflows can run.
Verify before relying
- Whether the package includes built-in support for distributed execution across multiple processes or machines.
- Performance characteristics and latency overhead of checkpoint operations for high-throughput workflows.
- Compatibility with async/await patterns beyond the AsyncIO framework classifier.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — pyyaml, python-dateutil, psycopg, websockets, click, sqlalchemy |
| Maintenance | actively maintained — 15 days since the last release |
| First released | |
| Downloads | 1,786,393/month — #3,563 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dbos-2.29.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pydantic-ai-absurdAdds durable execution to Pydantic AI agents by…
permissive · top 15,000 on PyPI
temporalioTemporal Python SDK provides a framework for…
permissive · top 1,000 on PyPI
aws-durable-execution-sdk-pythonBuilds long-running AWS Lambda workflows with…
permissive · top 15,000 on PyPI
absurd-sdkPython SDK for Absurd, a PostgreSQL-based…
permissive · top 15,000 on PyPI
restate-sdkRestate SDK provides a Python interface for…
unclear · top 15,000 on PyPI
inngestInngest adds durable, event-driven background…
unclear · top 5,000 on PyPI
durabletask.azuremanagedProvides a Python provider implementation for…
permissive · top 15,000 on PyPI
durabletaskDurabletask is a Python SDK for building…
permissive · top 15,000 on PyPI
pgqueuerPgQueuer turns PostgreSQL into a background job…
permissive · top 15,000 on PyPI
azure-functions-durableExtends Azure Functions to support stateful,…
permissive · top 5,000 on PyPI