Simplify writing and executing repetitive tasks.
Steak is a minimal and powerful utility for collecting all of your mindless, repetitive tasks into a single, brilliantly-named steakfile. As an evolution of bumpy, steak focuses on the same design principles - minimize friction when writing tasks and provide a simple CLI interface to execute your tasks.
Inspired by tools like nose, steak allows you to write plain Python functions which will be automatically discovered and prepared for execution. By inspecting your function signatures, steak learns as much as it can and provides a simple and understandable command line interface to your tasks without requiring any extra effort on your end.
Usage
Write a steakfile / grill.py
Toss the code below in a steakfile or grill.py.
def build():
'''Builds ALL THE CODE.'''
print('Building...')
def run():
'''Runs ALL THE PROGRAMS.'''
build()
print('Running...')
def clean():
'''Cleans ALL THE GARBAGE.'''
print('Cleaning...')
Execute your tasks
Just call the included grill command-line tool to run your tasks.
$ grill build
Building...
$ grill run
Building...
Running...
$ grill clean
Cleaning...
Execute several tasks
Give multiple space-separated task names to grill to execute them all.
$ grill build run
Building...
Running...
Notice that grill tries to avoid repeating task execution, so it only runs the build task once! You can explicitly run a task multiple times.
$ grill build build run
Building...
Building...
Running...
Save some keystrokes
Steak will allow you to abbreviate command names as much as you want, but if there’s ambiguous tasks, the task selection behavior is unreliable.
$ grill b r
Building...
Running...
Get some help
If you invoke grill with no arguments, an automatic help message will be printed out.
$ grill
build
Builds ALL THE CODE.
clean
Cleans ALL THE GARBAGE.
run
Runs ALL THE PROGRAMS.
Metadata
Release files for steak 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| steak-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for steak-0.1.0.tar.gz |
Release files / steak-0.1.0.tar.gz
| Download URL | steak-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c5ae9fac62e603497f419b897e49159869e2330bc81b2778b1eec7ec9df28f4
|
|
BLAKE2b-256 checksum How to use checksums |
971216e43aad2b34c2afaa6b76f79ac226dfa0e5f45c2e82cd4e7dd0fc27a92d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for steak 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.