Skip to main content

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


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 details)

Uploaded Source

Built Distribution

sparkback-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparkback-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0

File hashes

Hashes for sparkback-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e4608244b1cd5e9984b5adb6663d4c31e436f589fa7cfc9231173fd58e879a3b
MD5 111ada51e1d0c7217c98de795f11e0bd
BLAKE2b-256 0c677ad3eb09e807d63f4d4392bdfd9c014201e028e34ef545e3a992ecc806ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparkback-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Darwin/23.5.0

File hashes

Hashes for sparkback-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb96091d8dae39580cd145b48d1455d784f55f480066f24473f22a4347a6496b
MD5 291a540c9fd30b136f27ba7b5783b119
BLAKE2b-256 d4c47923c673b5f5704469edad479f7ccb7e1aed60566f15c9084ed3e06aece4

See more details on using hashes here.

Supported by

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