Metadata-Version: 2.5
Name: hotdogdm
Version: 0.1.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.2.13
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. Set `theme="beer"` for beer mugs or define your own symbols and multiline ASCII art in TOML. [Example themes](https://github.com/Aboba-gif/hotdogdm/blob/main/examples/themes.toml)

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)
