chart-cli 🗂️
Terminal chart generator — bar, line, pie, histogram. Zero dependencies.
pip install chart-cli
# Bar chart
chart bar "Mon:120 Tue:200 Wed:150 Thu:280 Fri:95" --sort
# Line chart
chart line 10 25 18 42 35 60 55 78
# Pie chart
chart pie "Python:45 JavaScript:25 Rust:15 Go:10 Other:5"
# Histogram
echo "12 25 18 42 35 60 55 78 90 45 30 67 82" | chart hist
# Horizontal bars
chart bar "CPU:78 Memory:92 Disk:45 Network:33" --horizontal
What it looks like
chart bar "Mon:120 Tue:200 Wed:150 Thu:280 Fri:95"
条形图
█
█
▌ █
█ █
█ █
▌ █ ▌ █
█ █ █ █
▌ █ ▌ █ █ █
█ █ █ █ █ █
──────────────────
Mon Tue Wed Thu Fri
120 200 150 280 95
chart pie "Python:45 JavaScript:25 Rust:15 Go:10 Other:5"
饼图
Python ████████████████████ 45 (45%)
JavaScript ██████████ 25 (25%)
Rust ██████ 15 (15%)
Go ████ 10 (10%)
Other ██ 5 ( 5%)
Why chart-cli?
- Zero dependencies — pure Python stdlib. Install in <1 second.
- No npm — no
node_modules, nopackage.json, no webpack. - Pipe-friendly — works in shell pipelines, CI/CD, scripts.
- Cross-platform — Linux, macOS, Windows, WSL. Any terminal.
- One command —
pip install chart-cli && chart bar ...
Use cases
- 📊 Quick data visualization in SSH sessions
- 🔄 CI/CD pipeline reports (no headless browser needed)
- 📝 Embed charts in Markdown code blocks
- 🐳 Docker containers (keep images small)
- 🎓 Teaching/learning data concepts
License
MIT
Metadata
Release files for chart-cli 1.0.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 | |
|---|---|---|---|
| chart_cli-1.0.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chart_cli-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / chart_cli-1.0.0.tar.gz
| Download URL | chart_cli-1.0.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d4e8615619970569a94e65a4230067e4942047b83740f29359b8893c52aee10
|
|
BLAKE2b-256 checksum How to use checksums |
3ea4d8f38e6ae65b1f1c8e6e82e347066cd2d3807409e828578ed46bed1cb7b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / chart_cli-1.0.0-py3-none-any.whl
| Download URL | chart_cli-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
848c3f0139f2b1e84e1e33c77168639f240ec7d92c92698caab69fa2e6f97581
|
|
BLAKE2b-256 checksum How to use checksums |
d61ff3e6648749894353e8233cfcf29685529547981ced62c5ce7dd5cb122412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|