pyCLISimple, Object-Oriented approach to Python CLI apps | |
Download |
pyCLI Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Will Maier
- Publisher web site:
- http://code.lfod.us/
pyCLI Tags
pyCLI Description
Simple, Object-Oriented approach to Python CLI apps pyCLI is a small Python library that makes writing command-line applications easier. It can take care of command line argument (optparse), environment and configuration file (ConfigParser) parsing; logging (logging); and daemonization (os, sys). It also provides a handy test framework.pyCLI helps you write well-formed and reusable scripts without having to deal with incompatible interfaces in the Python stdlib. With PyCLI, a script is as simple as: def main(app): app.log.debug("We're using cli.app!") if do_stuff(): return 0 else: return 1 if __name__ == "__main__": from cli.app import LoggingApp app = LoggingApp(main) app.run() Requirements: · Python
pyCLI Related Software