Skip to main content

Util for generating unicode text based sparkline bargraphs from lists of numbers

Project description

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.


The library can be installed from PyPi using pip:

pip install py-sparkblocks

Or cloned from Github using git:

git clone git://
cd py-sparkblocks
python install


>>> from sparkblocks import spark
>>> print(spark([1, 2, 0.2, 3.1, 2]))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for py-sparkblocks, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size py-sparkblocks-1.0.1.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page