Sparklines Library
Project description
sparkback
A Python library for generating sparklines.
Installation
$ poetry install
$ poetry shell
$ bin/spark --help
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.2.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for sparkback-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb96091d8dae39580cd145b48d1455d784f55f480066f24473f22a4347a6496b |
|
MD5 | 291a540c9fd30b136f27ba7b5783b119 |
|
BLAKE2b-256 | d4c47923c673b5f5704469edad479f7ccb7e1aed60566f15c9084ed3e06aece4 |