Typed Python interface to AWS Simple Workflow service
Project description
Python interface to SWF
Typed Python interface to AWS Simple Workflow service
- Type annotations
- Explicit exceptions
- Execution state construction
- Consistent method/attribute/parameter names (see below)
- Consistent model struture
- Automatic flattening of paged-list responses
- next-page calls are run concurrently and on-demand
- Better execution filtering
See also
- py-swf - typed and object-oriented interface layer
- mypy-boto3-swf - type-annotated layer
- python-simple-workflow - higher-level interface layer
Installation
pip install swf-typed
Usage
Example
import swf_typed
execution = swf_typed.ExecutionId(id="spam", run_id="abcd1234")
execution_details = swf_typed.describe_execution(execution, domain="eggs")
print(execution_details.configuration)
events = swf_typed.get_execution_history(execution, domain="eggs")
state = swf_typed.build_state(events)
for task in state.tasks:
print(task.status)
Terminology
This library uses a slight terminology change from SWF SDKs/APIs:
- Workflow type -> workflow
- Workflow execution -> execution
- Workflow execution
workflowId
-> execution ID - Activity type -> activity
- Activity task -> task
- Activity worker -> worker
- Activity task
activityId
-> task ID
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swf-typed-1.0.0.tar.gz
(31.6 kB
view hashes)
Built Distribution
swf_typed-1.0.0-py3-none-any.whl
(31.8 kB
view hashes)
Close
Hashes for swf_typed-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36577f9508f1bfe1d838a085e603781c1d5e5325aa528ae562d1f91bc7f79617 |
|
MD5 | 4d83150452ef698a831d61625e4083ab |
|
BLAKE2b-256 | 9246fc110815cd908e0da8998d66463cab6c54468128daa0b2dcfca510fa2fb3 |