Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

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]))
▂▅▁▇▅
Release History

Release History

This version
History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
py-sparkblocks-1.0.1.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Aug 31, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting