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
File details
Details for the file idempotent-sequence-2.0.0.tar.gz
.
File metadata
- Download URL: idempotent-sequence-2.0.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31a86cb510ffb71c1d105b1974ed09170b55c7e56a8a65b5573ce00f28ead12 |
|
MD5 | e9cbad76f979ee81f738a4f339a2f181 |
|
BLAKE2b-256 | 566c68c27cfcdf55e102e2d77158a543d8be3caf419e9c959dc9d84ec60d3987 |