bake_o_matic-0.1
توضیحات
baker boilerplate reduction
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bake_o_matic-0.1 |
| نام | bake_o_matic |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | tengu |
| ایمیل نویسنده | karasuyamatengu@gmail.com |
| آدرس صفحه اصلی | UNKNOWN |
| آدرس اینترنتی | https://pypi.org/project/bake_o_matic/ |
| مجوز | LGPL |
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 {}
نحوه نصب
نصب پکیج whl bake_o_matic-0.1:
pip install bake_o_matic-0.1.whl
نصب پکیج tar.gz bake_o_matic-0.1:
pip install bake_o_matic-0.1.tar.gz