Skip to content

1stvamp/py-sparkblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-sparkblocks

About sparkblocks

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.

It is based on the spark tool by Zach Holman, and the original Twitter sparkline generator by Alex Kerin.

Installation

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

Usage

>>> from sparkblocks import spark >>> print(spark([1, 2, 0.2, 3.1, 2])) ▂▅▁▇▅

About

Python library for generating unicode text based sparkline bargraphs from lists of numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages