Skip to main content

https://github.com/ysy9997/ProcessingTools.git

Project description

Python 3.6

PyPI version Downloads

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


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)

Uploaded Source

Built Distribution

processingtools-0.2.8-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page