Skip to main content

Python library for dataflow programming with Amazon SWF

Project description

Simpleflow

[![Pypi Status](https://badge.fury.io/py/simpleflow.png)](https://badge.fury.io/py/simpleflow) [![Build Status](https://travis-ci.org/botify-labs/simpleflow.svg?branch=main)](https://travis-ci.org/botify-labs/simpleflow)

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:

$ 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.32.1.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

simpleflow-0.32.1-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simpleflow-0.32.1.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.12

File hashes

Hashes for simpleflow-0.32.1.tar.gz
Algorithm Hash digest
SHA256 75717c4a89f21ff30c29ede692248d6aa95fa1b3d974a473d60ec1a6d3ac4305
MD5 97f549e0ca1c38b624c8917fe26b8143
BLAKE2b-256 76e16cf136241baf354d127b5fd87ae94d8714d557910bdefee16377a1abce0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simpleflow-0.32.1-py3-none-any.whl
  • Upload date:
  • Size: 51.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.12

File hashes

Hashes for simpleflow-0.32.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6715f7a6dd854940b42852e2d9464293f91390b178acedd7b75ad56893db8f41
MD5 b5eca7fd138a6a57115678ec7b9618ce
BLAKE2b-256 42db32bca7846a5b83dc292bf2263a31f693293e6cd14c1c15e852995d0129ac

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