Registry / aws / aws-durable-execution-sdk-python

aws-durable-execution-sdk-python

JSON →
library1.5.0pypypi✓ verified 83d ago

The AWS Durable Execution SDK provides decorators and runtime for building durable, stateful workflows on AWS Lambda. It manages checkpointing, retries, and parallel execution. Current version 1.4.0 (requires Python >=3.11). Released about monthly.

pip install aws-durable-execution-sdk-python
INSTALL
IMPORT
SIG · AWS-DURABLE-EXECUT
A
aws-durable-execution-sdk-python
awspythonv1.5.0
Install
2.6s avg
Import
Disk
37MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.000s · 18MB
37MB installed
● package 37MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DurableContext
from aws_durable_execution_sdk_python import DurableContext
from aws_durable_execution import durable
durable_execution
from aws_durable_execution_sdk_python import durable_execution
from aws_durable_execution import durable
durable_step
from aws_durable_execution_sdk_python import durable_step
from aws_durable_execution import durable

Minimal example using the @durable decorator. Requires AWS credentials and a Lambda-like execution environment.

from aws_durable_execution import durable import os # Set AWS_LAMBDA_FUNCTION_NAME and AWS_LAMBDA_FUNCTION_VERSION environment variables os.environ.setdefault('AWS_LAMBDA_FUNCTION_NAME', 'my-function') os.environ.setdefault('AWS_LAMBDA_FUNCTION_VERSION', '$LATEST') @durable() def my_workflow(event, context): print("Hello from durable execution") return {"status": "success"} # Example invocation if __name__ == '__main__': result = my_workflow({}, None) print(result)
Debug
Known issues
breakingIn v1.4.0, BatchResult import moved from submodule to package root. Importing from 'aws_durable_execution.batch' will raise ImportError.
fix
Use 'from aws_durable_execution import BatchResult'.
affects: >=1.4.0
breakingIn v1.4.0, map and parallel now exit early on empty input list, returning empty results. Previously they may have caused errors.
fix
Check that empty input handling is acceptable; no code change needed if implicit empty result is fine.
affects: >=1.4.0
gotchaThe SDK requires an active AWS Lambda execution environment. Running outside Lambda (e.g., locally) may fail due to missing Lambda runtime APIs or IAM permissions.
fix
Run within AWS Lambda, or use a mock library (not provided by SDK).
affects: >=1.0.0
deprecatedUsing direct submodule imports (e.g., aws_durable_execution.context) is deprecated since v1.3.0 and may be removed in future.
fix
Use top-level imports from aws_durable_execution.
affects: >=1.3.0
Upgrade
Version history
1.5.0latest on PyPI · released May 20, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
1
Resources
aws-durable-execution-sdk-python — pip install aws-durable-execution-sdk-python · libregistry