Skip to main content

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


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.1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

progressbars-1.1.0-py3-none-any.whl (4.3 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