sparkback
A Python library for generating sparklines.
Installation
$ uv sync --all-extras
$ uv run 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
spark --ticks line 10 20 30 40 50
spark --ticks multiline 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:
Release files for sparkback 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sparkback-0.3.0.tar.gz | 50.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sparkback-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.2 kB
Release files / sparkback-0.3.0.tar.gz
| Download URL | sparkback-0.3.0.tar.gz |
|---|---|
| Size | 50.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de9b2e525d118b2662f877e3cb7c941cd6804791dca93450179d831876c67793
|
|
BLAKE2b-256 checksum How to use checksums |
60428f2502b2e489c42b86ecfcd72d2f34a95fc4eaa161e27950092bb0e7b748
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sparkback-0.3.0-py3-none-any.whl
| Download URL | sparkback-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b7218ef1a868096d2f238368f8304da2a158967c8cc8532c991c1a62a58cd97
|
|
BLAKE2b-256 checksum How to use checksums |
716bfca223b1b6240af1db1343ffcd349f5a252d57b7c6825ec4a4ff837d4e0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|