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.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for ProcessingTools-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 508d7968cb28ebe9a379d036fd51452c78d2bf90bdf8e91093ed0b2a4ea20851 |
|
MD5 | 5f42f717469b0e41b1daeae67219ec42 |
|
BLAKE2b-256 | 34e62d45869b022d3ed9bed4b5b9bc5781afc38262cda70f71e7249f893d4199 |