progress indicator while program running
Project description
Running_Sign
Small tool to show dynamic indicator when program is running.
Function
running_sign_rotation(interval= 0, msg_pre="", msg_post="", sign = ["\", "|", "/", "-", "|", "/", "-"])
generator to show rotating indicator. parameter: interval: number, seconds of interval time between every frame of indicator. msg_pre: string, content will show before indicator. msg_post: string, conent will show after indicator. sign: list, symbols which will be showed sequentially.
running_sign_progress(interval=0, msg_pre = "", msg_post="", sign=".", max_num = 120)
generator to show progress bar. parameter: interval: number, seconds of interval time between every frame of indicator. msg_pre: string, content will show before indicator. msg_post: string, conent will show after indicator. sign: string, symbols which will be showed in progress way. max_num: number, max numbers of sign in one bar progress.
running_sign(interval=0, msg_pre="", msg_post="", sign=None, max_num=120)
funtion, as entrance of two above function. parameter: refer to parameters in above function. If sign != None, will call running_sign_progress, otherwise will call running_sign_progress. return: generator.
running_pct(msg_pre="", msg_post="", sign="■", pct=50, scale=1)
function, show progress bar. parameter: msg_pre: string, content will show before indicator. msg_post: string, conent will show after indicator. sign: string, symbols which will be showed in progress way. pct: number, length of progress bar. scale: number, scale of progress bar, default = 1 while the length of progress bar is 100 which means 100 signs.
Example
rs = running_sign_rotation(1)
for i in range(10):
next(rs)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file running_sign-0.1.3.tar.gz.
File metadata
- Download URL: running_sign-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b4bedeb6d0606f502c300da6b8df54bf4ec632e8fa318da6bc1c789934aba97
|
|
| MD5 |
cd97187d385a604dea2bce8b5095628a
|
|
| BLAKE2b-256 |
c57976df5d90bac9bb1753362875aab50e8e7ee8041480d002ba62dc23ef0f5d
|
File details
Details for the file running_sign-0.1.3-py3-none-any.whl.
File metadata
- Download URL: running_sign-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3921df67c1a759321840ffac76d641f0a2daa5015f0d3ed47045cc492485bf92
|
|
| MD5 |
724792a778cdcf9daba87c80ed91aa24
|
|
| BLAKE2b-256 |
95421b182fc1380687f20bdeef2777975b7634df91ccd62f553e75c693c240ca
|