clize 1.0b
Function decorator to quickly turn functions into CLIs as we know them
This decorator will turn your normal python functions into proper shell commands.
For example, this code:
from clize import clize, run
@clize
def echo(reverse=False, *text):
# ...
if __name__ == '__main__':
run(echo)
will yield the CLI described by this:
Usage: fn [OPTIONS] [text...] Positional arguments: text... Options: --reverse -h, --help Show this help
The decorator can take a few parameters all described in the README file.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| clize-1.0b.tar.gz (md5) | Source | 2011-12-04 | 8KB | 238 | |
- Author: Yann Kaiser
- Home Page: https://code.launchpad.net/~epsy/+junk/clize
- Keywords: CLI,options,arguments,getopts,flags,decorator
-
Categories
- Development Status :: 4 - Beta
- Environment :: Console
- Intended Audience :: Developers
- Intended Audience :: System Administrators
- License :: OSI Approved :: MIT License
- Natural Language :: English
- Operating System :: OS Independent
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7
- Programming Language :: Python :: 3
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.2
- Topic :: Software Development
- Topic :: Software Development :: Libraries :: Python Modules
- Topic :: Software Development :: User Interfaces
- Package Index Owner: epsy
- DOAP record: clize-1.0b.xml
