ttystatus is a Python library for showing progress reporting and status updates on terminals, for (Unix) command line programs. Output is automatically adapted to the width of the terminal: truncated if it does not fit, and re-sized if the terminal size changes.
Output is provided via widgets. Each widgets formats some data into a suitable form for output. It gets the data either via its initializer, or from key/value pairs maintained by the master object. The values are set by the user. Every time a value is updated, widgets get updated (although the terminal is only updated every so often to give user time to actually read the output).
See example.py in the sources for an example of how to use the library.
Licensed under the GNU GPL version 3 or later.
Status: in production use. I don't expect the API to change in incompatible ways.
- Using stuff on code.liw.fi
- Version control:
git clone git://git.liw.fi/ttystatus
- Tarball and Debian packages: http://code.liw.fi/debian/pool/main/p/python-ttystatus/