Skip to main content

A tqdm progress bar that shows a bearded chef shaving a turning doner kebab.

Project description

kebab-tqdm

A tqdm progress bar — but instead of a bar, a bearded kebab-shop chef shaves a turning döner spit. The cone spins (scrolling shading bands), a diagonal knife sweeps up and down in his fist, and the shaved meat piles up in the foil tray as your loop progresses.

Install

pip install kebab-tqdm

Usage

Drop-in replacement for tqdm:

from kebab_tqdm import tqdm

for x in tqdm(range(100)):
    ...

It accepts the usual tqdm arguments (desc=, total=, etc.). Because the scene is tall and redraws in place, give your loop some time per step and let it refresh every iteration:

import time
from kebab_tqdm import tqdm

for x in tqdm(range(100), desc="dinner", mininterval=0):
    time.sleep(0.05)

Or just run the demo:

python -m kebab_tqdm      # or: kebab-demo

Notes

  • Needs a monospace terminal that renders box/braille characters at uniform width (Windows Terminal, VS Code's terminal, most modern emulators). Give it enough width (~90 cols) and height (~53 rows) so the scene isn't wrapped.
  • ANSI escape handling is enabled automatically on Windows.

License

MIT

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

kebab_tqdm-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

kebab_tqdm-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file kebab_tqdm-0.1.0.tar.gz.

File metadata

  • Download URL: kebab_tqdm-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for kebab_tqdm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4b8bac4b923214c877021dbc09f6533573a70d89d844bd3ce02b9ade88b6d525
MD5 f290ff8bbb7eaabf86b151862d80d85b
BLAKE2b-256 530b352262742f801367ed95a74fa447e0fd9f6ee3d465bf7aaaf41194d9b477

See more details on using hashes here.

File details

Details for the file kebab_tqdm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kebab_tqdm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for kebab_tqdm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6cd89e75c57bb3b083aca56378d948c91ba1a2e25598dc7a39709600341410cd
MD5 d485812f6a0681eaf8833df9e3e4ca42
BLAKE2b-256 b6eb7caedecea17af0a9b90b488b816a49a3d83c7a99cd0a0f518270257f9a08

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