A tiny terminal progress bar with a 🦊
pip install fox-progress-barRun a demo with:
fox-progress-demofrom 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 unit parameter of ProgressBar. E.g.
pb = ProgressBar(total_size=total, unit="foxes")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).
- 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