Braille-based multi progress bars with ANSI colors (docker-compose style)
Project description
braille-progress
Braille (U+2800–U+28FF) 기반 다중 프로그레스바 + ANSI 컬러.
고정폭 레이아웃으로 퍼센트/상태/라벨 흔들림 없이 정갈하게 표시.
Quick Start
from braille_progress import Progress
p = Progress(force_tty=True, force_color=True)
with p.task("demo", total=50) as t:
for i in range(50):
t.advance(stage="writing", label=f"item_{i:03d}")
p.close()
Multiprocess
from braille_progress import Progress, progress_message
# 워커: q.put_nowait(progress_message(i, stage="WRITING", done=k, total=N, label="case")))
CLI
braille-progress-demo --items 80 --force-tty --force-color
License
MIT License
tests/test_basic.py
from braille_progress import Progress
def test_construct():
p = Progress(force_tty=False, force_color=False) # CI에서도 동작
h = p.add("t", total=3)
p.update(h, stage="validated", total=3)
for _ in range(3):
h.advance(stage="writing")
p.done(h)
assert p.all_finished()
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
bprogress-0.2.0.tar.gz
(10.3 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
bprogress-0.2.0-py3-none-any.whl
(16.2 kB
view details)
File details
Details for the file bprogress-0.2.0.tar.gz.
File metadata
- Download URL: bprogress-0.2.0.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87ebd19b5bcdb448120f40eab92ef273989d2ae0afbdc9f4666500d1a10e48fe
|
|
| MD5 |
6af9774493e733dfb8fa6a3b00011c93
|
|
| BLAKE2b-256 |
e2dec8a888a8f842555e6ac42a10d474997b8950ce02c30bbe365b020368b5a9
|
File details
Details for the file bprogress-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bprogress-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5ca11fa06055ad30ca195c1d941f92b8752441d4fafa1077d7888380cf4130d
|
|
| MD5 |
9c85c5619b33afaea7742fb51a7a7002
|
|
| BLAKE2b-256 |
711cfbe10b3033b52a3c54a50311c41052d87db03266915a744ca71780f59644
|