Simple progress indicator printing to stdout
Project description
## simpleprogress
Simple progress indicator for python. Internally tracks time for updates.
```python
from simpleprogress import Progress
max_val = 100
p = Progress(max_val, poll_time=2.0) # default poll time is 1 second
for i in range(0, 100):
if p.should_update:
p.update(i)
print(p.pretty_print())
time.sleep(1)
```
Simple progress indicator for python. Internally tracks time for updates.
```python
from simpleprogress import Progress
max_val = 100
p = Progress(max_val, poll_time=2.0) # default poll time is 1 second
for i in range(0, 100):
if p.should_update:
p.update(i)
print(p.pretty_print())
time.sleep(1)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simpleprogress-0.1.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for simpleprogress-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f13f21bd3a96af754bf3546b1819bc5479cefeb0c0f8b6fc05213da1acf6329 |
|
MD5 | 5f66ef4e7faa0f126d92fd6e2a74fe69 |
|
BLAKE2b-256 | f41ece950bd4999abfdfecb84f591754f3a61ac54f6fafeff3eb13ae9db78b3c |