progresso
A simple library that aims at making hierarchical progress iterators / generators easy.
A single point API: progresso(it: Iterable, start: float = 0, end: float = 100) -> Iterable
Example:
>>> def task_1():
... yield 10
... yield 90
... yield 100
...
>>> def task_2():
... yield 5
... yield 2
... yield 99
...
>>> def task():
... yield 30
... yield from progresso(task_1(), 30, 60)
... yield from progresso(task_2(), 60, 90)
>>> for i in progresso(task()):
... print(i)
30.0
33.0
57.0
60.0
61.5
89.7
90.0
100.0
Metadata
Release files for progresso 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| progresso-0.1.0.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| progresso-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.9 kB
Release files / progresso-0.1.0.tar.gz
| Download URL | progresso-0.1.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f589a2ddfb4af320ea0a1a53c8f62100f3d5fd6979a14f533b9ab60e672ad61e
|
|
BLAKE2b-256 checksum How to use checksums |
97d6b11c7c5f73c4bfc503fa8a7c88e6ab57e6cf7d76e4b07d8d949b680e37c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Release files / progresso-0.1.0-py3-none-any.whl
| Download URL | progresso-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
728f24bf64ac14a2176cb074b11cb2a12519bc96914781b63d608841b7ccfa94
|
|
BLAKE2b-256 checksum How to use checksums |
35a13814c159268e38ede5a32d8d948ed77927805b30baa34fd8dc23e83e84d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|