Skip to main content

Sparklines Library

Project description

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:

Project details


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.3.0.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparkback-0.3.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file sparkback-0.3.0.tar.gz.

File metadata

  • Download URL: sparkback-0.3.0.tar.gz
  • Upload date:
  • Size: 50.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for sparkback-0.3.0.tar.gz
Algorithm Hash digest
SHA256 de9b2e525d118b2662f877e3cb7c941cd6804791dca93450179d831876c67793
MD5 d903e8e6b7a80d87aa5c20ed8364e494
BLAKE2b-256 60428f2502b2e489c42b86ecfcd72d2f34a95fc4eaa161e27950092bb0e7b748

See more details on using hashes here.

File details

Details for the file sparkback-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sparkback-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for sparkback-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b7218ef1a868096d2f238368f8304da2a158967c8cc8532c991c1a62a58cd97
MD5 2f960a0b4c0d6de883e2c6b844f3e34a
BLAKE2b-256 716bfca223b1b6240af1db1343ffcd349f5a252d57b7c6825ec4a4ff837d4e0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page