pysparklines is a unicode sparkline generation library.
Project description
pysparkline
Python 3 clone of Zach Holman's BASH sparkline project
Takes series data via stdin, command line, or API and prints a sparkline representation.
Usage:
- $
sparkline 4 3 2 1
█▆▃▁ - $
echo "1.0 1.0 2.0 3.0 5.0 8.0 13.0" | sparkline
▁▁▂▂▃▅█ - $
$ seq 20 | sort -R | sparkline -r2
▃▁ █▂ ▂▆▅ ▄▇▆
██▃██▅▇▄▁███▃▇███▂█▆ - $
python3 -c "import sparkline; print(sparkline.sparkify([1.0, 2.0, 3.0, 4.0]))"
▁▃▆█
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysparklines-1.2.tar.gz
(4.8 kB
view hashes)
Built Distributions
pysparklines-1.2-py3.9.egg
(7.0 kB
view hashes)
Close
Hashes for pysparklines-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc33791dc58cb7687be857b7ccac344cc38c6bba160d9ec76aad531793fdce00 |
|
MD5 | 17d9f633cdd51140bc383b7a32d2674a |
|
BLAKE2b-256 | a656123bfb5ecf60d130931b55bdcfdfc65cb91ea84786801b67e889cc839561 |