Metadata-Version: 2.5
Name: hotdogdm
Version: 0.3.0
Summary: Ten-cell progress bars for Python loops and distributed MPI jobs
Project-URL: Source, https://github.com/Aboba-gif/hotdogdm
Project-URL: Documentation, https://github.com/Aboba-gif/hotdogdm/blob/main/docs/api.md
Project-URL: Issues, https://github.com/Aboba-gif/hotdogdm/issues
License-Expression: BSD-3-Clause
License-File: LICENSE
Keywords: jupyter,mpi,progress-bar,terminal
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: typing-extensions>=4.12; python_version < '3.13'
Requires-Dist: wcwidth>=0.3.0
Provides-Extra: mpi
Requires-Dist: mpi4py>=4; extra == 'mpi'
Description-Content-Type: text/markdown

![hotdogdm](https://raw.githubusercontent.com/Aboba-gif/hotdogdm/84dfdddad6e0f14ee32ae873914f1b1ef3ffa1a0/assets/hotdogdm-light.svg)

A ten-cell progress bar for Python loops. Each hot dog marks another 10% of the work. The percentage on the right updates between hot dogs.

```text
Loading [🌭🌭🌭▫️▫️▫️▫️▫️▫️▫️] 37%
```

```sh
python -m pip install hotdogdm
```

```python
from time import sleep
from hotdogdm import hddm

for _ in hddm(range(100), desc="Loading"):
    sleep(0.02)
```

The bar updates in place in a terminal or Jupyter notebook. For manual counting, use `with hddm(total=...) as bar` and call `bar.update(n)` as each chunk finishes.

## Giant ASCII hot dogs

On a 4K or ultrawide monitor, fill your terminal with ten giant ASCII hot dogs as your code runs. The artwork and lettering ship with the package.

```python
from time import sleep
from hotdogdm import hddm

for _ in hddm(range(100), desc="Training", theme="hotdog_stand", mininterval=0):
    sleep(0.06)
```

[Watch the animation](https://raw.githubusercontent.com/Aboba-gif/hotdogdm/v0.3.0/assets/hotdog-stand-training-smooth.gif)

The full frame uses 431 columns and 31 rows. In an 80 × 24 terminal the same theme shows `Training [###.......] 37%`. To customize the artwork, copy the theme file and pass its path with `config=`. [Hot dog theme](https://github.com/Aboba-gif/hotdogdm/blob/v0.3.0/src/hotdogdm/hotdog_stand.toml) · [Artwork sizes by screen resolution](https://github.com/Aboba-gif/hotdogdm/blob/v0.3.0/README.md#giant-ascii-hot-dogs)

## MPI

For a distributed job, install `hotdogdm[mpi]` with an MPI runtime. Each rank counts its own work, and rank zero displays the combined progress when the ranks call `sync()`. [MPI example](https://github.com/Aboba-gif/hotdogdm/blob/main/examples/mpi_batches.py)
