Terminal chart generator — bar, line, pie, histogram (zero dependencies)
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chart_cli-1.0.0.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chart_cli-1.0.0.tar.gz.
File metadata
- Download URL: chart_cli-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d4e8615619970569a94e65a4230067e4942047b83740f29359b8893c52aee10
|
|
| MD5 |
60d2cd075f82ab221d6e08d747f657af
|
|
| BLAKE2b-256 |
3ea4d8f38e6ae65b1f1c8e6e82e347066cd2d3807409e828578ed46bed1cb7b2
|
File details
Details for the file chart_cli-1.0.0-py3-none-any.whl.
File metadata
- Download URL: chart_cli-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
848c3f0139f2b1e84e1e33c77168639f240ec7d92c92698caab69fa2e6f97581
|
|
| MD5 |
6c74dbde9d0c726f394e11b5d66db4a0
|
|
| BLAKE2b-256 |
d61ff3e6648749894353e8233cfcf29685529547981ced62c5ce7dd5cb122412
|