pyCLiFF, the Python Command Line Filter Framework is a simple tool designed
to remove the boilerplate and annoyances from command line filters.
In *nix there is a tradition of using pipes to connact many programs together
when processing data. The programs are usually very single transformations on
text. This text may come in from a file or from stdin, and leave via file or
stdout. This pattern is ubiquitous in *nix programming, allowing for very
powerful command line usage. Such tools frequently (mostly?) follow the this
1. Setup/handle arguments
A. Read line from input file (stdin or file)
B. Process that line in some way
C. Output the result of processing.
3. Cleanup and exit.
The above pattern results in many programs with a large portion of boilerplate
code, and a few dozen lines of unique application code. pyCLiFF is an attempt
to cover all the parts of a command line filter that are not unique. (Usually
this means step B above).
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.