An installable Python parent class to support do-nothing workflows.
python nothing.py --help
Read more about do-nothing workflows.
- Reloadable
- Stores a progress file (JSON) during execution, which can be loaded to resume from where it left off.
- The progress file can be human-edited before loading. E.g. skip a step, or change a value.
get_input()
: a convenience for capturing input with a prompt.wait_for_done()
: a convenience for the user to confirm step completion.report_problem()
: a convenience for printing tostderr
.set_value_from_input()
: a convenience for setting a value based on user input, including offering a default value if available, and repeating the prompt until a valid value is entered.
- Install directly from GitHub.
- Create your own subclass of the
Progress
class. See theDemo
class in nothing.py for an example. - Create a script that calls
YourClass.main()
.