rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.45k stars 205 forks source link

New alive-progress 3.0 #213

Closed rsalmei closed 1 year ago

rsalmei commented 1 year ago

Yep, I could finally get this version out! These are the new goodies:

Highly anticipated fixes

Code coverage has improved a lot

❯ pytest --cov=alive_progress --cov-branch
Test session starts (platform: darwin, Python 3.7.12, pytest 6.2.5, pytest-sugar 0.9.4)
rootdir: /Users/rogerio/Documents/projects/alive-progress
plugins: anyio-3.5.0, sugar-0.9.4, cov-3.0.0
collecting ...
 tests/animations/test_bars.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓  7% ▊
                               ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 15% █▌
                               ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 22% ██▎
                               ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 29% ██▉
                               ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 37% ███▋
                               ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓     43% ████▍
 tests/animations/test_spinners.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 50% █████
                                   ✓✓✓✓✓✓✓✓✓✓✓✓✓✓                        53% █████▍
 tests/animations/test_utils.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 60% ██████
                                ✓✓                                       60% ██████
 tests/core/test_calibration.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓                      63% ██████▍
 tests/core/test_configuration.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 70% ███████
                                  ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓ 77% ███████▊
                                  ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓                        80% ████████
 tests/core/test_hook_manager.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓                         82% ████████▎
 tests/core/test_progress.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓                    87% ████████▋
 tests/core/test_progress_util.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓                     90% █████████
 tests/utils/test_cells.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓           96% █████████▋
 tests/utils/test_timing.py ✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓✓                       100% ██████████

---------- coverage: platform darwin, python 3.7.12-final-0 ----------
Name                                            Stmts   Miss Branch BrPart  Cover
---------------------------------------------------------------------------------
alive_progress/__init__.py                          8      0      0      0   100%
alive_progress/animations/__init__.py               4      0      0      0   100%
alive_progress/animations/bars.py                  74      0     16      0   100%
alive_progress/animations/spinner_compiler.py      91     15     29      0    73%
alive_progress/animations/spinners.py              92      0     68      0   100%
alive_progress/animations/utils.py                 68      0     16      0   100%
alive_progress/core/__init__.py                     0      0      0      0   100%
alive_progress/core/calibration.py                 18      0      4      0   100%
alive_progress/core/configuration.py              136      4     31      1    97%
alive_progress/core/hook_manager.py                63      0     24      0   100%
alive_progress/core/progress.py                   259     70     78     18    70%
alive_progress/utils/__init__.py                    0      0      0      0   100%
alive_progress/utils/cells.py                      45      0     18      0   100%
alive_progress/utils/colors.py                     25      0      2      0   100%
alive_progress/utils/timing.py                     26      0      9      0   100%
---------------------------------------------------------------------------------
TOTAL                                             909     89    295     19    89%

Results (0.79s):
     558 passed