Like make, but Python
Project description
pike
It's make
, but Python.
Example
See examples/pikefile.py
for an example file.
$ pike -f ./examples/pikefile.py --help
usage: pike [-h] [--file FILE] [--list] [--validate] {do-thing,wrapped-task} ...
An example pikefile
optional arguments:
-h, --help show this help message and exit
--file FILE, -f FILE pikefile.py to use. If not provided, look in the current working directory and all its parents
--list List tasks
--validate Validate tasks
Tasks:
Things to run
{do-thing,wrapped-task}
Each task also has a --help
:
$ pike -f ./examples/pikefile.py do-thing --help
usage: pike do-thing [-h] thing
Do a thing, and do it perfectly
positional arguments:
thing The thing to do
optional arguments:
-h, --help show this help message and exit
If a default value is provided, it's also shown:
$ pike -f ./examples/pikefile.py wrapped-task --help
usage: pike wrapped-task [-h] [--thing THING]
optional arguments:
-h, --help show this help message and exit
--thing THING (default: Rap)
If a type is provided, it should be cast automatically.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pike-tasks-0.0.1.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for pike_tasks-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99ca7d84eb2078ef21adcba568260ab5e1c1753487a54defae66b0c24cce2f21 |
|
MD5 | 82c7916dea745b7b2fd38a24e87caebe |
|
BLAKE2b-256 | 514f658f983e401b2cd34ebe8bd987988ec115267e96a0cb1bfb9a276be4b430 |