Util for generating unicode text based sparkline bargraphs from lists of numbers
sparkblocks is a Python module that provides a single function, spark() which takes a list of numbers (ints or floats) and outputs a string containing a unicode character (9601-9608) sparklines bargraph representation of the numbers.
The library can be installed from PyPi using pip:
pip install py-sparkblocks
Or cloned from Github using git:
git clone git://github.com/1stvamp/py-sparkblocks.git cd py-sparkblocks python setup.py install
>>> from sparkblocks import spark >>> print(spark([1, 2, 0.2, 3.1, 2])) ▂▅▁▇▅