Skip to main content
https://api.travis-ci.org/bozoh/console_progressbar.svg?branch=master https://badge.fury.io/py/console-progressbar.svg

Console Progress Bar

It’s a very tiny lib to help devs to print a progress bar in console

Usage

Here a very simple sample:

import time
from console_progressbar import ProgressBar

pb = ProgressBar(total=100,prefix='Here', suffix='Now', decimals=3, length=50, fill='X', zfill='-')
pb.print_progress_bar(2)
time.sleep(5)
pb.print_progress_bar(25)
time.sleep(5)
pb.print_progress_bar(50)
time.sleep(5)
pb.print_progress_bar(95)
time.sleep(5)
pb.print_progress_bar(100)

Parameters Description

params:

total       - Required  : total iterations (Int)
prefix      - Optional  : prefix string (Str)
suffix      - Optional  : suffix string (Str)
decimals    - Optional  : positive number of decimals in percent complete (Int)
length      - Optional  : character length of bar (Int)
fill        - Optional  : bar fill character (Str)
zfill       - Optional  : bar zero fill character (Str)
file        - Optional  : output file (Stream)

Metadata

Release files for console-progressbar 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for console-progressbar 1.1.2
File Size Uploaded Provenance
console_progressbar-1.1.2.tar.gz 3.6 kB Without provenance Details

Release files / console_progressbar-1.1.2.tar.gz

Download URL console_progressbar-1.1.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
04cdcbd5561dc2e2fa38ecc4f4f93b5c0da54f54873c8f111e2cb257bda5a335
BLAKE2b-256 checksum
How to use checksums
d58d810e5c5dbdefc92cc1819d0b6ffac2c9c149acece9b3e55e4d9d05d0bb2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

Security for console-progressbar 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page