https://github.com/celestialtaha/percentile
With this python library you can compute and display progress in loops that take long time to complete.
https://github.com/celestialtaha/percentile
Last synced: 10 months ago
JSON representation
With this python library you can compute and display progress in loops that take long time to complete.
- Host: GitHub
- URL: https://github.com/celestialtaha/percentile
- Owner: celestialtaha
- Created: 2019-07-29T06:27:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-29T06:42:44.000Z (almost 7 years ago)
- Last Synced: 2025-07-21T19:26:57.578Z (11 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# percentile
With this python library you can compute and display progress in loops that take long time to complete.
# Usage
## import
from Percentile import Progress
## create instance
first parameter is range or the number of iterations,second is updating step.
for example below code creates an instance with 12000 iterations .the progress is updated every 5% and displayed graphically.
also if you specify cls = false it doesn't clear at each update.
prog = Progress(12000, 5, cls = True)
## compute and display progress
for i in range(12000):
# do something
prog.compute(i)
# Output
|------------------ | 90.0 %