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-1.0.3.tar.gz (9.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for idempotent-sequence-1.0.3.tar.gz
Algorithm Hash digest
SHA256 a5b7b4bdfbe06865e50dfcb3758d64ab422f1f584229cc83f820d7897df04572
MD5 43b570a77e4f45b51533271b96543bd9
BLAKE2b-256 386b38a323b09c511f5bf42a2a26803ceb5e856869bc4a4046e3105fc4eee403

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