aws-durable-execution-sdk-python
AWS Durable Execution SDK for Python
What it is and what it does
This is an AWS SDK for building durable, long-running workflows inside Lambda functions that can survive Lambda pauses, timeouts, and restarts. It provides decorators and context objects to define steps with retry logic, waits for time or external callbacks, and parallel fan-out operations, all with automatic checkpointing so execution can resume from where it left off rather than restarting from the beginning. The SDK handles deterministic replay internally so that side effects don't duplicate and logging is de-duplicated.
You write Lambda handlers using the `@durable_execution` decorator and define individual work units as `@durable_step` functions, then call them through the context's `step()`, `wait()`, and parallel methods. The SDK depends only on boto3 and runs as pure Python, making it straightforward to add to existing Lambda projects. It's in active development (Beta status) and supported on Python 3.11, 3.12, 3.13, and 3.14.
Use it for:
- Multi-step order processing workflows that need to pause for approval or payment confirmation without blocking Lambda execution
- ETL pipelines that checkpoint progress and resume after failures without reprocessing completed batches
- Approval chains or human-in-the-loop processes that wait for external callbacks before proceeding to the next step
- Parallel fan-out tasks with configurable completion criteria across multiple concurrent operations
- Complex state machines that require structured subflows and isolated execution contexts
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Builds long-running AWS Lambda workflows with automatic checkpointing, durable steps, waits, callbacks, and parallel execution that can resume after Lambda pauses or restarts.
Yes, if you are building multi-step workflows on AWS Lambda and need automatic checkpointing and replay. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe addition. Beta status means the API may evolve, but the SDK is in active use. Not necessary for simple single-step Lambda functions or if you already use alternative orchestration tools.
Install
aws-durable-execution-sdk-python on PyPI
pip
pip install aws-durable-execution-sdk-pythonuv
uv add aws-durable-execution-sdk-pythonpoetry
poetry add aws-durable-execution-sdk-pythonInstalling aws-durable-execution-sdk-python
Before you install
Low install friction; single pure-Python wheel dependency on boto3. Active maintenance with recent releases; repo is not archived and receives commits. Beta status (Development Status :: 4) indicates the SDK is still stabilizing but in active use.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production and proprietary projects.
Quickstart
pip install aws-durable-execution-sdk-python
from aws_durable_execution_sdk_python import DurableContext, durable_execution, durable_step
@durable_step
def validate_order(step_ctx, order_id: str) -> dict:
return {"order_id": order_id, "valid": True}
@durable_execution
def handler(event: dict, context: DurableContext) -> dict:
validation = context.step(validate_order(event["order_id"]), name="validate")
return {"status": "approved", "order_id": event["order_id"]}
Requires Python 3.11 or later; designed for AWS Lambda runtime environment with boto3 available.
Verify before relying
- Whether checkpointing and replay work correctly across all Lambda pause/restart scenarios in production
- Performance overhead of automatic checkpointing on workflow latency and cost
- Compatibility with Lambda layers, container images, and other deployment models beyond standard zip packages
- Maximum timeout limits for durable workflows and whether they can exceed typical Lambda execution windows
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — boto3 |
| Maintenance | actively maintained — 36 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 210,938/month — #9,487 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aws_durable_execution_sdk_python-1.7.0-py3-none-any.whl
Tags
More Distributed Computing packages
gRPC Python is an HTTP/2-based RPC framework…
permissive · top 100 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
cloudpickleCloudpickle extends Python's standard pickle…
permissive · top 1,000 on PyPI
smart-openProvides a unified, open()-compatible Python…
permissive · top 1,000 on PyPI
portalockerPortalocker provides cross-platform file…
permissive · top 1,000 on PyPI
rayRay is a distributed computing framework that…
permissive · top 1,000 on PyPI
azure-functions-durableExtends Azure Functions to support stateful,…
permissive · top 5,000 on PyPI
restate-sdkRestate SDK provides a Python interface for…
unclear · top 15,000 on PyPI
dbosDBOS adds durable workflows and queues to…
permissive · top 5,000 on PyPI
absurd-sdkPython SDK for Absurd, a PostgreSQL-based…
permissive · top 15,000 on PyPI
pydantic-ai-absurdAdds durable execution to Pydantic AI agents by…
permissive · top 15,000 on PyPI
durabletaskDurabletask is a Python SDK for building…
permissive · top 15,000 on PyPI
conductor-pythonBuild durable Conductor agents, workflows, and…
permissive · top 15,000 on PyPI
durabletask.azuremanagedProvides a Python provider implementation for…
permissive · top 15,000 on PyPI
kailash-enterpriseA Rust-compiled workflow orchestration engine…
unclear · top 15,000 on PyPI
agent-framework-azurefunctionsHosts Microsoft Agent Framework agents on Azure…
permissive · top 15,000 on PyPI