Skip to content

Functionality to support do-nothing workflows.

License

Notifications You must be signed in to change notification settings

SciTools-incubator/nothing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An installable Python parent class to support do-nothing workflows.

python nothing.py --help

Read more about do-nothing workflows.

Features

  • 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 to stderr.
  • 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.

Use

  • Install directly from GitHub.
    • pip install git+https://github.com/SciTools-incubator/nothing.git
    • Include in a requirements file:
      • In a requirements.txt: git+https://github.com/SciTools-incubator/nothing.git
      • In the pip: section of a Conda YAML: - -e git://github.com/SciTools-incubator/nothing.git
  • Create your own subclass of the Progress class. See the Demo class in nothing.py for an example.
  • Create a script that calls YourClass.main().

About

Functionality to support do-nothing workflows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages