Skip to main content

Organise a set of units of code in a sequence that can be rerun repeatedly skipping already completed units

Project description

A set of Python classes to declare an idempotent sequence of commands – a sequence that can be run repeatedly and on success will produce the same side effects no matter how many times you invoke it.

This is useful when you have a sequence of commands each of which can fail and you want to keep rerunning the sequence until it succeeds, yet you don’t want to run previously completed parts again.

You can install the package with pip install idempotent-sequence

See example under examples/example01.py.

To run the example: python -m idemseq.examples.example01 –help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idempotent-sequence-2.0.0.tar.gz (9.5 kB view details)

Uploaded Source

File details

Details for the file idempotent-sequence-2.0.0.tar.gz.

File metadata

File hashes

Hashes for idempotent-sequence-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e31a86cb510ffb71c1d105b1974ed09170b55c7e56a8a65b5573ce00f28ead12
MD5 e9cbad76f979ee81f738a4f339a2f181
BLAKE2b-256 566c68c27cfcdf55e102e2d77158a543d8be3caf419e9c959dc9d84ec60d3987

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