Give yourself something to watch while your long calls are made. Add the '@progress' decorator to your functions, thats it!
from prygress import progress
from time import sleep
@progress
def wait_with_me():
sleep(10)
wait_with_me()
................................................ finished.
To customize your bar, just add one or all of these params to the decorator:
@progress(char='.', pause=0.2)
Full documentation available at https://github.com/dboudwin/prygress
from prygress import progress
from time import sleep
@progress
def wait_with_me():
sleep(10)
wait_with_me()
................................................ finished.
To customize your bar, just add one or all of these params to the decorator:
@progress(char='.', pause=0.2)
Full documentation available at https://github.com/dboudwin/prygress
Metadata
Release files for prygress 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prygress-0.2.tar.gz | 1.2 kB | Details |
Release files / prygress-0.2.tar.gz
| Download URL | prygress-0.2.tar.gz |
|---|---|
| Size | 1.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eabbebe5483c65197e929ca2cd871565887fc5d58e75c3ff60c1a9aa18e4e6c4
|
|
BLAKE2b-256 checksum How to use checksums |
5012ce2c15f40fb6e9cc4181a4f8a5ef05ef36f8c6a66d91cf8a59908d42b3de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |