Sparklines Library
Project description
sparkback
A Python library for generating sparklines.
Usage
You can use sparkback from the command line or in your Python scripts.
Command Line
Run sparkback with a series of numbers:
spark --ticks default 10 20 30 40 50
You can also use different styles of ticks:
spark --ticks block 10 20 30 40 50
spark --ticks ascii 10 20 30 40 50
spark --ticks numeric 10 20 30 40 50
spark --ticks braille 10 20 30 40 50
spark --ticks arrows 10 20 30 40 50
Use the --stats option to display statistics about your data:
spark --ticks default 10 20 30 40 50 --stats
Python API
You can also use sparkback in your Python scripts:
import sparkback
data = [10, 20, 30, 40, 50]
ticks = sparkback.scale_data(data, sparkback.TICKS_OPTIONS["default"])
sparkback.print_ansi_spark(ticks)
See also:
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
sparkback-0.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for sparkback-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0e113b18301936e504b4c6314595f4d4977c614ffa7344d607beeaf2c076391 |
|
MD5 | 39e67cfe46a4ce3eb254d645bb798181 |
|
BLAKE2b-256 | fc6e1d060a128ea88be7bcd419f54da5d03ad5358b604772a6f0a7752ab983f2 |