A python library to display progress of loops to the user
Project description
ProgressBars
A python library to display progress of loops to the user.
Installation
This library can be installed using pip.
pip install progressbars
Usage
The class you'll be using is called the ProgressBar class, here is an example of how to use it.
from progressbars import ProgressBar
import time
def createAccount(name: str) -> None:
time.sleep(1.5) # This function takes a few seconds to create an account
names = [
"John",
"Tom",
"Candace"
]
# Create an account for everyone in the names list
for name in ProgressBar(names):
createAccount(name)
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
progressbars-1.0.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for progressbars-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947be33f5bb5302af03fb329c00ae357603891652c7590b06e259ee33d2a39ab |
|
MD5 | 041448deceaba336fea9cbf248ab8ca7 |
|
BLAKE2b-256 | 3e18a010806f99f13d10c72692e492810da5945a17f94b7afb09fc246a7a4d27 |