A tqdm-like progress bar that snakes across your terminal via a random space-filling curve.
Project description
snakebar
A tqdm-like progress bar that fills your terminal with a one-character-thick snake along a random space-filling curve. Based on https://observablehq.com/@esperanc/random-space-filling-curves
Installation
pip install snakebar
Usage
Basic Python usage
Using snake_bar as a drop-in replacement for tqdm:
from snakebar import snake_bar
for i in snake_bar(range(100)):
# your code here
pass
Using SnakeBAR for manual progress bar updates:
from snakebar import SnakeBAR
with SnakeBAR(total=100) as pbar:
for i in range(100):
# your code here
pbar.update(1)
CLI usage
You can also use the snakebar command line interface:
snakebar -n 5000 --desc "Processing" --sleep 0.05
Options:
-n,--total: Total number of steps (default 100)--desc: Description text to show alongside the progress bar--sleep: Time in seconds to sleep between steps (simulates work)
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 snakebar-0.1.1.tar.gz.
File metadata
- Download URL: snakebar-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08051bf7143063f867257958310b3343812f2ad86c0d43eecc418b5b7cde2d19
|
|
| MD5 |
f682fd8c4aa2c3f9991f0adba5e9167b
|
|
| BLAKE2b-256 |
6088d853998f27a4f018403d09591dbed51db8e1e218a246e1c0a4af89e5762d
|
File details
Details for the file snakebar-0.1.1-py3-none-any.whl.
File metadata
- Download URL: snakebar-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68a60cd53201c4e9a98cae9dade96dca08edb14507c0501db385dde5fd01b3c0
|
|
| MD5 |
dd842394acfd4724f3788fa026257474
|
|
| BLAKE2b-256 |
971bf48ba568f747d39c3838fb71c60e9af2bab315f30b6848a304f2428e28db
|