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
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8bac4b923214c877021dbc09f6533573a70d89d844bd3ce02b9ade88b6d525
|
|
| MD5 |
f290ff8bbb7eaabf86b151862d80d85b
|
|
| BLAKE2b-256 |
530b352262742f801367ed95a74fa447e0fd9f6ee3d465bf7aaaf41194d9b477
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cd89e75c57bb3b083aca56378d948c91ba1a2e25598dc7a39709600341410cd
|
|
| MD5 |
d485812f6a0681eaf8833df9e3e4ca42
|
|
| BLAKE2b-256 |
b6eb7caedecea17af0a9b90b488b816a49a3d83c7a99cd0a0f518270257f9a08
|