baker boilerplate reduction
Project description
import bake_o_matic at the end of a script to turn it into a baked command script.
$ cat say.py
#!/usr/bin/python
def hi(msg, **opt):
"greet"
print 'OH HAI', msg, opt
import bake_o_matic
$ ./say.py
Usage: ./say.py COMMAND <options>
Available commands:
hi greet
Use './say.py <command> --help' for individual command help.
$ ./say.py hi ho
OH HAI ho {}
$ cat say.py
#!/usr/bin/python
def hi(msg, **opt):
"greet"
print 'OH HAI', msg, opt
import bake_o_matic
$ ./say.py
Usage: ./say.py COMMAND <options>
Available commands:
hi greet
Use './say.py <command> --help' for individual command help.
$ ./say.py hi ho
OH HAI ho {}
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
bake_o_matic-0.1.tar.gz
(1.5 kB
view details)
File details
Details for the file bake_o_matic-0.1.tar.gz
.
File metadata
- Download URL: bake_o_matic-0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dec6230771890d3a395f8cf3f3fa5dc6ab3700469c8386d7cb2f1c76441ce356 |
|
MD5 | 5c363920267ce7ea51e9f01ba5ec56e3 |
|
BLAKE2b-256 | d80fe433e0b9ba71c47fcb744eab428a8b2dfaa0f2a43436189f81ce33785f68 |