data-pypes

A micro framework for processing and logging.


Keywords
logging, number-crunching
License
Other
Install
pip install data-pypes==0.1.2

Documentation

PyPI Python Versions PyPI Latest Version PyPI Distribution Format build-status Coverage Status

The DataPypes framework

Another attempt to structure processes.

Documentation

To make this hands-on useful, it is mostly documented in the code.

Play around

Here are some interesting invocations of pypes-example.py.

$ ./pypes-example.py
...
$ LOGLEVEL=DEBUG ./pypes-example.py
...
$ LOGLEVEL=debug STDOUT_LOGLEVEL=error ./pypes-example.py
...
$ LOGLEVEL=debug STDOUT_LOGLEVEL=info ERROR_LOGFILE=error.log ./pypes-example.py
...
$ STDOUT_LOGLEVEL=success WARNING_LOGFILE=warn.log ./pypes-example.py
...

Usage

The ideas is very general. pypes-example.py contains an example (that could still be revisited to point out the idea more). It was intended to structure "long" comutational processes into reusable elements.

The file logsetup.py can also be use stand-alone.