sparklines
Generate sparklines for numbers using Unicode characters only.
Decision gist · record as of 2026-08-14
Yes. Sparklines is production-stable, actively maintained, has zero known vulnerabilities, installs with minimal friction, and solves a specific problem well: inline terminal visualization of numeric sequences. Install it if you need quick visual feedback on time-series data in shell scripts, monitoring tools, or Python notebooks without the overhead of a graphing library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; terminal must support Unicode characters.
- Installs cleanly with a single lightweight runtime dependency (termcolor).
- The package is actively maintained, marked Production/Stable, and has been in development since 2016 with a recent release.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal attribution requirements.
last release 2026-06-08 (67 days) · last repo commit 2026-07-24 · 129 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,948,615 downloads/mo, #2,192 on PyPI
Alternatives
Verify before relying
pip install sparklines
from sparklines import sparklines
for line in sparklines([1, 2, 3, 4, 5.0, None, 3, 2, 1]):
print(line)
# ▁▃▅▆█ ▅▃▁- Whether the package handles very large datasets efficiently or has memory/performance limits.
- Whether color emphasis and line wrapping features are fully documented in the API.
What it is and what it does
Sparklines is a terminal visualization tool that converts sequences of numbers into compact Unicode bar charts, inspired by Edward Tufte's concept of data-dense graphics. It renders data as a single row of Unicode characters (▁▂▃▄▅▆▇█) by default, with support for multi-line output for higher resolution, automatic handling of mixed positive/negative values (split across rows), and graceful rendering of missing data as gaps.
The package works both as a command-line tool and as a Python library. It's designed for quick visual summaries in contexts where traditional charts are impractical—monitoring sensor readings in IoT networks, tracking stock prices or trading volume, displaying request rates in DevOps dashboards, or visualizing training metrics in machine learning workflows. It depends only on termcolor for color support and runs on Python 3.9 through 3.13.
Use it for
- Display IoT sensor readings (temperature, humidity, power) as compact inline charts in monitoring dashboards.
- Visualize stock price history or daily P&L (gains above, losses below) in finance terminals.
- Show request rate, error rate, or build duration trends in DevOps/SRE monitoring without opening a graphing tool.
- Track training loss and validation accuracy per epoch in machine learning experiments inline.
- Monitor token usage, cost per API call, or cache hit rates in agentic computing workflows.
- Plot heart rate, sleep quality, or blood glucose trends in health and fitness tracking applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Sparklines is production-stable, actively maintained, has zero known vulnerabilities, installs with minimal friction, and solves a specific problem well: inline terminal visualization of numeric sequences. Install it if you need quick visual feedback on time-series data in shell scripts, monitoring tools, or Python notebooks without the overhead of a graphing library.
Install
sparklines on PyPI
Before you install
Installs cleanly with a single lightweight runtime dependency (termcolor). The package is actively maintained, marked Production/Stable, and has been in development since 2016 with a recent release.
Requires Python 3.9 or later; terminal must support Unicode characters.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal attribution requirements.
Quickstart
pip install sparklines
from sparklines import sparklines
for line in sparklines([1, 2, 3, 4, 5.0, None, 3, 2, 1]):
print(line)
# ▁▃▅▆█ ▅▃▁
Verify before relying
- Whether the package handles very large datasets efficiently or has memory/performance limits.
- Whether color emphasis and line wrapping features are fully documented in the API.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetermcolor |
| Maintenance | Actively maintained 67 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,948,615 / month, #2,192 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: Other AudienceLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPy |
Evidence: sparklines-1.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “unicode bar charts terminal”
- sparklinesSparklines renders compact Unicode bar charts (▃▁▄▁▅█▂▅) in your…
- termplotlibtermplotlib renders line plots, histograms, and bar charts directly…
- plotillePlotille renders plots, scatter plots, histograms, and heatmaps…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also termcolor · rich · progressbar2 · termplotlib · altex · tqdm · climage · colored · progress · leather