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 details)
Built Distribution
File details
Details for the file simpleprogress-0.1.tar.gz
.
File metadata
- Download URL: simpleprogress-0.1.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d16f9505c60be7c0835e335a1fe28b829c643ec7e7b1b32c8416bbc103cf0a76 |
|
MD5 | 07765a2348b8e33765ed6c75c053005e |
|
BLAKE2b-256 | 437ff3e6a2393a29fdad1e58ffb07585e2d264c742e5fea67e0c445e05af4e60 |
File details
Details for the file simpleprogress-0.1-py3-none-any.whl
.
File metadata
- Download URL: simpleprogress-0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f13f21bd3a96af754bf3546b1819bc5479cefeb0c0f8b6fc05213da1acf6329 |
|
MD5 | 5f66ef4e7faa0f126d92fd6e2a74fe69 |
|
BLAKE2b-256 | f41ece950bd4999abfdfecb84f591754f3a61ac54f6fafeff3eb13ae9db78b3c |