Skip to main content

tqdm with a live terminal rate graph and smarter ETA.

Project description

twoqdm

twoqdm is a small tqdm wrapper for long-running Python loops. It keeps the normal progress bar and adds a live terminal panel with recent it/s history, colored trend direction, jitter, and a smarter ETA hint.

Demo

twoqdm terminal progress demo

Install

python3 -m pip install twoqdm

For local development from this repository:

python3 -m pip install -e ".[dev]"

Use

from twoqdm import tqdm, trange

for record in tqdm(records, desc="processing"):
    process(record)

for i in trange(500, desc="training"):
    train_step(i)

Disable color output with:

TQDM_TREND_NO_COLOR=1 python3 your_script.py

Build

python3 -m pytest
python3 -m build
python3 -m twine check dist/*

Publish

Create a PyPI API token, then upload:

python3 -m twine upload dist/*

PyPI does not allow re-uploading the same version. Bump the version in pyproject.toml and src/twoqdm/__init__.py before publishing a new release.

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

twoqdm-0.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

twoqdm-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file twoqdm-0.2.0.tar.gz.

File metadata

  • Download URL: twoqdm-0.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for twoqdm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4273eee64adccf8b799061fc38d3340236ce02fa92b27c42e203ace93d539f21
MD5 128f495f0a2838c934935cf0be1190d2
BLAKE2b-256 79d400c16695dfac4883b99422747071b92b415522ec1de914b7d117616c2bc0

See more details on using hashes here.

File details

Details for the file twoqdm-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: twoqdm-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for twoqdm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddacddd4f62ddc690601722881430ea629aae1e2ff8273201cc6e11375ccf323
MD5 b83e8099a8739127784ab82f7ef2af41
BLAKE2b-256 38e9a0f15f8a81106180ae97e411eb2fe36234d0205cb7728da0280abac37da5

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