Inspired by a sparks, a bash sparkline programme, I've created something exactly the same, but in python
Installation
It's on PyPI, so just install it with
pip install ascii_sparks
The code is also on github, feel free to contribute.
Usage
>>> import ascii_sparks
>>> print ascii_sparks.sparks([0, 0, 1, 2, 1, 10])
????
Notes
Yes I know it's technically not ASCII, since it uses Unicode characters. However I'm using 'ascii' to refer to the style of textual drawing.
Published on
Tags:
Previous Post: ← Bare Minimum setup.py for a django app Next Post Using scipy with Django mod_wsgi →