InseeFrLab / InseeFrLab/pynsee
Improve handling of progress bars
- Dominant language
- Python
- Stars
- 89
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
At the moment, ``pynsee`` uses ``tqdm`` for progress bars.
It's a very solid library that does the job perfectly but it does not interact well with... basically anything.
So right now, any code or library using ``pynsee`` internally will have to accept having progress bars popping everywhere.
I think it would be nice to provide better options for handling them. I see to main options:
1. the simpler option is to provide one global parameter to hide progress (setting ``disable=True`` to the [tqdm object](https://tqdm.github.io/docs/tqdm/#__init__))
2. switch to [``rich.progress``](https://rich.readthedocs.io/en/stable/progress.html), which, as far as I know, is the only library that supports nested progress bars; one would then have a global ``progress`` object that people could use to [add other progress bars](https://rich.readthedocs.io/en/stable/progress.html?highlight=add_task#advanced-usage) or simply disable them
Contributor guide
Assessment
This issue has not been assessed yet.