Skip to main content

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


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.5.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bprogress-0.2.5-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file bprogress-0.2.5.tar.gz.

File metadata

  • Download URL: bprogress-0.2.5.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for bprogress-0.2.5.tar.gz
Algorithm Hash digest
SHA256 a19c213671fa9257d6f9727f051314b9f58d8a5f63a74e7794f0759e5ea50a6b
MD5 48eedbda5a4d5301e5ace97ff778bdd3
BLAKE2b-256 e51c4362582c6b2ba11aa609855058b620b4ccf643500efcb79ab7b26332c385

See more details on using hashes here.

File details

Details for the file bprogress-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: bprogress-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for bprogress-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cd7015d3757c07f2501a35f8c0b835a879c19e7f5e3ac03c7e7cfcdabcfc7225
MD5 52c2f35c6e480cae7837141cc9cc0d77
BLAKE2b-256 eed616aaf2e9bd9c7357d479ae8c33f763ef978b0a905b9ba25b36a9ee9d731b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page