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.2.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.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file fox_progress_bar-0.1.2.tar.gz.

File metadata

  • Download URL: fox_progress_bar-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a903f0a0b57b4b0e929685011ea5088bc69f879df8de38c39e12fc13b8d7dcaa
MD5 b255fcf2ea6d57220f9c7422fd678606
BLAKE2b-256 c4b3988acbac8c270576f13789d9611e0b66c1e82d491330e80466e6a7a5bdcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fox_progress_bar-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60406715caa1b7dd3e390a9ff00260459c36f86ffc13ee3b11be9a8705adb9a5
MD5 fcc4cb36a68d5ff7a61c76b87f06f436
BLAKE2b-256 f3d41fa2886edc32dd1b80c945555f5cd3285326fcfbfd39cf74c970d205a34d

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