Skip to main content

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 {}

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bake_o_matic, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size bake_o_matic-0.1.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page