A tiny terminal progress bar with a fox emoji.
Project description
🦊-progress-bar
A tiny terminal progress bar with a 🦊
Installation
pip install fox-progress-bar
Demo
Run a demo with:
fox-progress-demo
Usage
from fox_progress_bar import ProgressBar
import time
total = 5_000_000
chunk_size = total // 100
pb = ProgressBar(total_size=total)
for _ in range(100):
pb.update(chunk_size)
time.sleep(0.03)
pb.finish()
[!TIP] You can define your own unit of measurement to display through the
unitparameter ofProgressBar. E.g.pb = ProgressBar(total_size=total, unit="foxes")
Releasing (GitHub + PyPI)
Everytime you create a GitHub Release (use a tag like v0.1.0), GitHub Actions will automatically build and publish the package to PyPI. Make sure to bump version in pyproject.toml accordingly for each release. If needed, you can also trigger a release manually from the "Actions" tab in GitHub to bypass the version check (not recommended).
Tests
- Ensure venv is active and install test dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -e .
pip install pytest
- Run tests with pytest:
pytest -q
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 fox_progress_bar-0.1.3.tar.gz.
File metadata
- Download URL: fox_progress_bar-0.1.3.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a90758e41588abd5c4bef59376ad5b532f7744239fdca170572c3e4127c7b093
|
|
| MD5 |
a60943cbd935fbb04cf1d6057fb59e7c
|
|
| BLAKE2b-256 |
86aecb8a88423c062488102bd2f56d7beda0172c3dc5eb897b982730b480a1f5
|
File details
Details for the file fox_progress_bar-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fox_progress_bar-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0755c087288ff339378f7f90cd5c063af00cd2624e02fae388cfd700d390aa87
|
|
| MD5 |
145500ab9bbbb22601e2262280b00298
|
|
| BLAKE2b-256 |
98a0127e631a1b7926b430748c3c41ae03521e6794155d3c35f1d0b8e57d0d27
|