Skip to main content

Python Progress Indicator Utility

Project description

Examples
=============

The following examples shall illustrate the typical usage of the PyPrind package.
A visualization can be viewed on YouTube: [http://youtu.be/gjj5K8OWo7U](http://youtu.be/gjj5K8OWo7U)


Example - Progress Bar
--------------------------

<pre>import pyprind

n = 10000000
my_prbar = pyprind.ProgBar(n)
for i in range(n):
# do some computation
my_prbar.update()
</pre>

**Screen Output**

<pre>sebastian > python3 ./examples/ex1_progress_bar.py
0% 100%
[########################################]
Total time elapsed: 1.033 sec
</pre>


**Screen Output**

<pre>sebastian > python3 ./examples/ex1_percentage_indicator.py
[100 %] elapsed: 2.674 sec
</pre>


Example - Percentage Indicator
--------------------------

<pre>import pyprind

n = 1000000
my_perc = pyprind.ProgPercent(n)
for i in range(n):
# do some computation
my_perc.update()
</pre>


**Screen Output**

<pre>sebastian > python3 ./examples/ex1_percentage_indicator.py
[100 %] elapsed: 2.674 sec
</pre>



Contact
=============

If you have any questions or comments about PyPrind, please feel free to contact me via
eMail: [se.raschka@gmail.com](mailto:se.raschka@gmail.com)
or Twitter: [@rasbt](https://twitter.com/rasbt)

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

PyPrind-1.1.1.tar.gz (17.4 kB view details)

Uploaded Source

File details

Details for the file PyPrind-1.1.1.tar.gz.

File metadata

  • Download URL: PyPrind-1.1.1.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyPrind-1.1.1.tar.gz
Algorithm Hash digest
SHA256 c9390dd92bb0238d48f4801284fc3bd741763f1e1d108db091eb9006ebec1b03
MD5 8ff1400a6ce2f3956796d43195b379cc
BLAKE2b-256 29155b532eae61a808095157aec5cd7b11e53e717bd15699e32774ee0decf01f

See more details on using hashes here.

Supported by

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