Skip to content
Python clone of @holman's spark
Python
Branch: master
Clone or download
RedKrieg Merge pull request #3 from kmatt/master
Python 3 print functions
Latest commit 7efdc98 Mar 9, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
man fix path to man page, another version bump Aug 22, 2013
sparkline Python 3 print functions Jan 7, 2016
.gitignore updated gitignore Apr 9, 2013
LICENSE
MANIFEST.in fix path to man page, another version bump Aug 22, 2013
README.rst
setup.py fix path to man page, another version bump Aug 22, 2013

README.rst

pysparkline

Python clone of https://github.com/holman/spark

Takes series data via stdin, command line, or API and prints a sparkline representation.

Output is always UTF-8 encoded.

Usage:

  • $ sparkline 4 3 2 1 █▆▃▁
  • $ echo "1.0 1.0 2.0 3.0 5.0 8.0 13.0" | sparkline ▁▁▂▂▃▅█
  • $ python -c "import sparkline; print sparkline.sparkify([1.0, 2.0, 3.0, 4.0]).encode('utf-8')" ▁▃▆█
You can’t perform that action at this time.