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.8.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for processingtools-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dea0d2c7efa19f89a43d499033cb221acb0e481acd59bec1990f7086e51984f3 |
|
MD5 | 3891bb1c03faaebff85f85a78c83c402 |
|
BLAKE2b-256 | 28fb91c26637427972e7525923f1645e27c5b462fd6c9df6b4690f72a6c99e56 |