Skip to content

erikareads/do_nothing.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

do_nothing

A gradual automation scripting framework.

Installation

pip install git+https://github.com/erikareads/do_nothing.py.git

Usage

import do_nothing

(
    do_nothing.Procedure(title="my procedure", description="...")
    .add_step(title="hello step", instructions="...")
    .add_step(
        title="execute",
        automation=do_nothing.Automation(
            execute=lambda: "hello", output="hello_output"
        ),
    )
    .add_step(title="interpolate", instructions="interpolate this: $hello_output")
    .execute()
)

Which will output:

# my procedure

...

[Enter] to begin

## hello step

...

[Enter] to continue

## execute

Executing step automatically.

**Outputs**:
  - `hello_output`: hello

## interpolate

interpolate this: hello

[Enter] to continue

done!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages