Skip to main content

A tiny terminal progress bar with a fox emoji.

Project description

🦊-progress-bar

A tiny terminal progress bar with a 🦊

demo.gif

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 unit parameter of ProgressBar. 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

  1. Ensure venv is active and install test dependencies:
python -m venv .venv
source .venv/bin/activate
pip install -e .
pip install pytest
  1. Run tests with pytest:
pytest -q

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

fox_progress_bar-0.1.3.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

fox_progress_bar-0.1.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

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

Hashes for fox_progress_bar-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a90758e41588abd5c4bef59376ad5b532f7744239fdca170572c3e4127c7b093
MD5 a60943cbd935fbb04cf1d6057fb59e7c
BLAKE2b-256 86aecb8a88423c062488102bd2f56d7beda0172c3dc5eb897b982730b480a1f5

See more details on using hashes here.

File details

Details for the file fox_progress_bar-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for fox_progress_bar-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0755c087288ff339378f7f90cd5c063af00cd2624e02fae388cfd700d390aa87
MD5 145500ab9bbbb22601e2262280b00298
BLAKE2b-256 98a0127e631a1b7926b430748c3c41ae03521e6794155d3c35f1d0b8e57d0d27

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