InseeFrLab / InseeFrLab/pynsee

Improve handling of progress bars

Open
#152 1 comment 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.