Skip to main content

Python library for dataflow programming with Amazon SWF

Project description

Simpleflow

PyPI - Version GitHub Actions Workflow Status

Simpleflow is a Python library that provides abstractions to write programs in the distributed dataflow paradigm. It coordinates the execution of distributed tasks with Amazon SWF.

It relies on futures to describe the dependencies between tasks. A Future object models the asynchronous execution of a computation that may end. It tries to mimic the interface of the Python concurrent.futures library.

Features

  • Provides a Future abstraction to define dependencies between tasks.
  • Define asynchronous tasks from callables.
  • Handle workflows with Amazon SWF.
  • Implement replay behavior like the Amazon Flow framework.
  • Handle retry of tasks that failed.
  • Automatically register decorated tasks.
  • Encodes/decodes large fields to S3 objects transparently (aka "jumbo fields").
  • Handle the completion of a decision with more than 100 tasks.
  • Provides a local executor to check a workflow without Amazon SWF (see simpleflow --local command).
  • Provides decider and activity worker process for execution with Amazon SWF.
  • Ships with the simpleflow command. simpleflow --help for more information about the commands it supports.

You can read more in the Features section of the documentation.

Overview

Please read and even run the demo script to have a quick glance of simpleflow commands. To run the demo you will need to start decider and activity worker processes.

Start a decider with:

$ PYTHONPATH=$PWD simpleflow decider.start --domain TestDomain --task-list test examples.basic.BasicWorkflow

Start an activity worker with:

$ simpleflow worker.start --domain TestDomain --task-list quickstart

Then execute ./extras/demo.

More information

Read the main documentation at https://botify-labs.github.io/simpleflow/.

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

simpleflow-0.33.2.tar.gz (110.4 kB view details)

Uploaded Source

Built Distribution

simpleflow-0.33.2-py3-none-any.whl (155.2 kB view details)

Uploaded Python 3

File details

Details for the file simpleflow-0.33.2.tar.gz.

File metadata

  • Download URL: simpleflow-0.33.2.tar.gz
  • Upload date:
  • Size: 110.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for simpleflow-0.33.2.tar.gz
Algorithm Hash digest
SHA256 100d6ed62aa0e8544d205f8c82c9062cb70ae99c53ffbb940aa01a13c570a032
MD5 d1b5dd8532cf1bdb16968e10fbdba794
BLAKE2b-256 f5fca26b4337f17450462647f0bb248d837e57224e280d3db97ff7503eba32f2

See more details on using hashes here.

File details

Details for the file simpleflow-0.33.2-py3-none-any.whl.

File metadata

File hashes

Hashes for simpleflow-0.33.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c3537443d63829ea4e7875a2dee7667a09401fac8ddc7c21b8117b4bba59c269
MD5 e7f4c0ec5514307d96aa9b7eaceeabbe
BLAKE2b-256 e6bbfdaed8d60ec94cfeef345e3d59cc9396366f907875c46e988f4c2954c013

See more details on using hashes here.

Supported by

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