Console ASCII line charts with Braille characters
Project description
brasciichart
Console ASCII line charts with Braille characters, no dependencies.
Install
$ pip install brasciichart
Usage
usage: brasciichart [-h] [-v]
[-s SERIES_ADD [SERIES_ADD ...]]
[-c [...]]
[-f FORMAT] [-o OFFSET]
[-H HEIGHT] [-W WIDTH]
[-m MIN] [-M MAX]
[series ...]
Console ASCII line charts with Braille characters.
positional arguments:
series float number series, "NaN" for null-values
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-s SERIES_ADD [SERIES_ADD ...], --series SERIES_ADD [SERIES_ADD ...]
additional series
-c [ ...], --colors [ ...]
available series colors: black, red, green, yellow,
blue, magenta, cyan, lightgray, default, darkgray,
lightred, lightgreen, lightyellow, lightblue,
lightmagenta, lightcyan, white
-f FORMAT, --format FORMAT
format for tick numbers, default: "{:7.2f} "
-o OFFSET, --offset OFFSET
chart area offset
-H HEIGHT, --height HEIGHT
rows in chart area
-W WIDTH, --width WIDTH
columns in chart area
-m MIN, --min MIN min y value
-M MAX, --max MAX max y value
$ brasciichart --height 1 --offset 0 -s 1 2 3 4 3 2 1 2 3 4 3 2 1
⡠⠊⠢⡠⠊⠢⡀
$ brasciichart --height 10 --min 0 --format '{:5.3f} ' \
`rrdtool xport -s e-2month -e 20250518 --json \
DEF:load1=system.rrd:system_load1:AVERAGE \
XPORT:load1:"System Load 1 min average" \
| jq -r '[.data[][]] | join(" ")'`
0.024 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
0.021 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇
0.019 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⠀⠀⠀⠀⠀⠀⠀⠀⡇
0.016 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⣇
0.013 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⢸⢸
0.011 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⡎⡇⠀⠀⠀⠀⠀⠀⢸⢸
0.008 ┤⠀⠀⠀⠀⠀⠀⠀⠀⢰⠀⠀⠀⠀⣇⢀⡇⡇⠀⠀⠀⠀⠀⠀⢸⢸
0.005 ┤⠀⢠⣀⣠⠳⡀⡀⠀⡏⡆⡔⢆⣸⢸⡎⡇⡇⡀⡄⣀⠔⠤⠲⣸⠘⡄⣀⠦⡄⢀⣀
0.003 ┤⠉⠃⠁⠀⠀⠉⠈⠉⠀⠉⠀⠈⠙⠈⠀⠀⠘⠉⠈⠀⠀⠀⠀⠁⠀⠈⠀⠀⠈⠁
0.000 ┼
$ brasciichart --height 5 \
`for i in {-50..50..1}; do awk '{printf cos($1/10) " "}' <<< $i; done`
1.00 ┤⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠔⠊⠉⠉⠉⠒⠤⡀
0.50 ┤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠉⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡀
0.00 ┤⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠊
-0.50 ┤⠀⠀⠈⠑⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⠒⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⠢⡀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠔⠉
-1.00 ┤⠀⠀⠀⠀⠀⠉⠢⠤⣀⣀⣀⠤⠔⠊⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠒⠤⢄⣀⣀⡠⠤⠊⠁
$ brasciichart -H 5 -W 30 -c red green \
-s `for i in {-50..50..1}; do awk '{printf cos($1/10) " "}' <<< $i; done` \
-s `for i in {-50..50..1}; do awk '{printf sin($1/10) " "}' <<< $i; done`
1.00 ┤⠉⠉⠳⡄⠀⠀⠀⠀⠀⠀⠀⠀⢠⠔⠉⠉⠢⡤⠚⠉⠑⠦⡀
0.50 ┤⡀⠀⠀⠈⢣⠀⠀⠀⠀⠀⠀⡔⠁⠀⠀⢀⠎⠈⢢⠀⠀⠀⠑⢄⠀⠀⠀⠀⠀⢀
0.00 ┤⠘⡄⠀⠀⠀⠱⡀⠀⠀⢀⠜⠀⠀⠀⡠⠎⠀⠀⠀⠣⡀⠀⠀⠈⢆⠀⠀⠀⢠⠃
-0.50 ┤⠀⠈⢣⠀⠀⠀⠑⢄⢠⠊⠀⠀⠀⡰⠁⠀⠀⠀⠀⠀⠑⡄⠀⠀⠀⢣⡀⡜⠁
-1.00 ┤⠀⠀⠀⠑⢤⣀⡠⠜⠳⢄⣀⡤⠊⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⢄⣀⡤⠚⢦⣀⣀
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
brasciichart-0.1.0.tar.gz
(7.4 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 brasciichart-0.1.0.tar.gz.
File metadata
- Download URL: brasciichart-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88511e7bf79c05d4790f2260487eed224ae15bccb5074666ab3d0b5f107cda8
|
|
| MD5 |
1d5a11da75fb725a6cd661b8a16ce072
|
|
| BLAKE2b-256 |
16a24e1f9a104bab75803d4df9b3aa4a6b2fe4571ea14fce9235ee724a0e08dd
|
File details
Details for the file brasciichart-0.1.0-py3-none-any.whl.
File metadata
- Download URL: brasciichart-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f139f142ed9a21f8e2ce6dd9340da4302e956e20f445f20e7784f6b398981de
|
|
| MD5 |
9f3008e931f4c5278bd764f9306a1d7f
|
|
| BLAKE2b-256 |
3e062c4e6ca9ece146aa6c65b4d8c72e975a9a235a75a408457abf01546d18b7
|