Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

See examples under idemseq/examples.

$ pip install idempotent-sequence

$ set IDEMSEQ_SEQUENCE_ID=/tmp/example02.db

$ idemseq idemseq.examples.example02:example

$ idemseq idemseq.examples.example02:example list
$ idemseq idemseq.examples.example02:example run --dry-run
$ idemseq idemseq.examples.example02:example run
$ idemseq idemseq.examples.example02:example reset all

Project details

Download files

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

Files for idempotent-sequence, version 3.0.0
Filename, size File type Python version Upload date Hashes
Filename, size idempotent-sequence-3.0.0.tar.gz (10.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page