Skip to main content

libprogress

Build Status

PyPI PyPI - License

Package that allows easy generation of progress bars. Originally on my NameGenerator project.

Features

  • Easy to use
  • Imported as module
  • Always tested before release
  • Officially supports latest two versions of Python 3

How to Install

Run the command pip install libprogress. If you want to specify a specific Python version to use for pip, use a command such as pip3 or pip3.8.


Documentation

API

The following is an example that utilizes a progress bar with default length.

import libprogress

for i in range(20):  # example loop
    do(something)  # put the code to do what you are tracking the progress of
    print(libprogress.genbar(curprg=i+1, maxprg=20), end="\r")  # print progress
print(libprogress.genfullbar(prg=20))  # print the last bar

Final output:

[####################] 100% [20/20]...done

If you don't put end="\r", then each progress bar won't overwrite the last. The output will look like the following:

[#-------------------] 5% [1/20]
[##------------------] 10% [2/20]
[###-----------------] 15% [3/20]
[####----------------] 20% [4/20]
[#####---------------] 25% [5/20]
[######--------------] 30% [6/20]
[#######-------------] 35% [7/20]
[########------------] 40% [8/20]
[#########-----------] 45% [9/20]
[##########----------] 50% [10/20]
[###########---------] 55% [11/20]
[############--------] 60% [12/20]
[#############-------] 65% [13/20]
[##############------] 70% [14/20]
[###############-----] 75% [15/20]
[################----] 80% [16/20]
[#################---] 85% [17/20]
[##################--] 90% [18/20]
[###################-] 95% [19/20]
[####################] 100% [20/20]
[####################] 100% [20/20]...done

License

libprogress is licensed under the GPLv3 license. For more information, please refer to LICENSE.

Metadata

Release files for libprogress 3.0.2.post1

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

Source distribution (sdist)

Source distribution for libprogress 3.0.2.post1
File Size Uploaded
libprogress-3.0.2.post1.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libprogress 3.0.2.post1
File Interpreter ABI Platform
libprogress-3.0.2.post1-py3-none-any.whl Python 3 none any Details

Total release size: 30.0 kB

Release files / libprogress-3.0.2.post1.tar.gz

Download URL libprogress-3.0.2.post1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d6d3d05e1d9e642eb138e1017032ab81b7b51b882274deb5be2dce776f32a9
BLAKE2b-256 checksum
How to use checksums
3ba0391da9d038aa68cab4e09a8358c448fa90f719000ac18b9a9c68c81f2f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / libprogress-3.0.2.post1-py3-none-any.whl

Download URL libprogress-3.0.2.post1-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3beb613f5c0c53d13194d01ba3f80bf5c11f9ad44d15f6b5a0b480f2975bec24
BLAKE2b-256 checksum
How to use checksums
5bc986845da0bbf518e1dd5f5774470c1ada1744a50b396acb7f19f1ccca2cb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release history Release notifications | RSS feed

This release

3.0.2.post1 This release

2 release files

3.0.2

1 release file

3.0.1

2 release files

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