https://github.com/ysy9997/ProcessingTools.git
Project description
ProcessionTools
- You can install this package using pip.
pip install ProcessingTools
usage
import ProcessingTools as pt
import time
for i in pt.ProgressBar(range(50)):
time.sleep(0.1)
or
import ProcessingTools as pt
import time
for i in pt.ProgressBar(range(50), bar_length=40, start_mark=None, finish_mark='progress done!', max=False):
time.sleep(0.1)
Then,
|████████████████████████████████████████| 100.0% | 50/50 | 0s |
progress finished!(5311ms)
parameters
class pt.ProgressBar(in_loop, bar_length: int = 40, start_mark: str = None, finish_mark='progress done!', max=False)
- in_loop: the input loop
- bar_length: bar length
- start_mark: print string when the progress start
- finish_mark: print string what you want when progress finish
- max: max value. If you do not fill this, it will calculate automatically, but it may be slow
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
ProcessingTools-0.2.2.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for ProcessingTools-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd21d3bc2ea44f29fb3a32a8ebe3a23ffa7589dc4ebb271266a8df3b46e37e1b |
|
MD5 | 34cb73750c4f390cb3c4f66d25bee77d |
|
BLAKE2b-256 | 8f09151c61f58b2fce36171b779265dc75ce40c669b4fb0611259055bababe8a |