Skip to main content

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


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)

Uploaded Source

Built Distribution

sparkback-0.1.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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