Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

The most interesting part is state construction: given an execution history, this library can build a full state of the execution and all of its tasks with all details; see swf_typed.build_state. The rest of the API simply wraps and closely matches AWS's SWF API.

See also

Installation

pip install swf-typed

Usage

See the full documentation.

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 has a slight change in terminology from AWS SDKs/APIs/docs:

  • 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

This is to simplify symbol names.

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.1.4b0.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swf_typed-1.1.4b0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file swf_typed-1.1.4b0.tar.gz.

File metadata

  • Download URL: swf_typed-1.1.4b0.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for swf_typed-1.1.4b0.tar.gz
Algorithm Hash digest
SHA256 d55bf8d2f24c97931634c7d492055219d89dc93ab22c1795bf811dec621f53a1
MD5 392de477b0bad00bdafed6bcf01cedc1
BLAKE2b-256 28895a8bb13c72e7f774478017a1d18ccae072667cf98ff1c516cd2096b6c1b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for swf_typed-1.1.4b0.tar.gz:

Publisher: publish-python-package.yml on EpicWink/python-swf-typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swf_typed-1.1.4b0-py3-none-any.whl.

File metadata

  • Download URL: swf_typed-1.1.4b0-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for swf_typed-1.1.4b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b247b54aeca78e92e8aa61f946eb4c99c25b797606be008172436452e61d5fd0
MD5 654501416dff56165ff070e0db756ad9
BLAKE2b-256 ce3c4a81aaaccc86bb62788501c8d26a62d1d88c1f621b9e4389d91e01568e9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for swf_typed-1.1.4b0-py3-none-any.whl:

Publisher: publish-python-package.yml on EpicWink/python-swf-typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page