Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

koviubi56/pypbar

PyPBar - DEPRECATED, check out Enlighten

~~Hits-of-Code Codacy Badge CodeFactor Grade pre-commit.ci status Code style: black semantic-release GitHub PyPI PyPI - Python Version PyPI - Format

PyPBar is a Python library for dealing with progress bars.

Installation

Use the package manager pip to install PyPBar. Need more help?

pip install pypbar

Requirements

PyPBar requires Python 3.7 and typing_extensions>=4.0.0. See the requirements.txt

Usage

import pypbar
import time

with pypbar.Bar(10) as bar:
    for n in bar:
        time.sleep(1)

with pypbar.Bar(["the", "quick", "brown", "fox"]) as bar:
    for w in bar:
        # Instead of print() you should use .write()
        bar.write(w)
        time.sleep(2)

Support

Questions should be asked in the Discussions tab.

Feature requests and bug reports should be reported in the Issues tab.

Security vulnerabilities should be reported as described in our Security policy (the SECURITY.md file).

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to add entries to the changelog.

For more information, please read the contributing guidelines.

Authors and acknowledgments

A list of nice people who helped this project can be found in the CONTRIBUTORS file.

License

GNU GPLv3+~~