A simple loading bar utility
Project description
Simple Loading Bar Utility
Introduction
simple_loading_bar_utility is a simple, lightweight Python utility for displaying a customizable loading bar in the console. It's designed for ease of use and flexibility, ideal for adding a visual progress indicator to your Python scripts and applications.
Features
- Customizable bar length.
- Options to display or hide the percentage and iteration indicators.
- Easy integration into existing Python projects.
Installation
Currently, the package is not hosted on PyPI, so you can install it directly from the source:
git clone https://github.com/peterdonaghey/simple_loading_bar_utility.git
cd loading_bar
pip install .
Usage
To use loading_bar in your project, simply import and call the function in a loop:
from loading_bar.loading_bar import loading_bar
total = 1000
for i in range(total):
loading_bar(i, total)
Customization
You can customize the loading bar by adjusting the following parameters:
i: Current iteration (int).
total: Total iterations (int).
length: Length of the loading bar (default is 50).
show_percentage: Flag to show or hide percentage (default is True).
show_iterations: Flag to show or hide iterations completed (default is True).
License
This project is under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. For more information, see LICENSE.
Contributions
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_loading_bar_utility-0.1.tar.gz.
File metadata
- Download URL: simple_loading_bar_utility-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43ba2fbdb0099f2b013b0e917aaecdba98a5cc3db84ddea131d277fbcbca5729
|
|
| MD5 |
b480a37227d58d207197c44d5761e052
|
|
| BLAKE2b-256 |
6c0f51a550d67534d37354c5ef3c75c195c696b5ca86c41716c86d85f58ed7a6
|
File details
Details for the file simple_loading_bar_utility-0.1-py3-none-any.whl.
File metadata
- Download URL: simple_loading_bar_utility-0.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9cc42a02fe8ddba25f6b84e97780876f5a3c593e28fbd2c50c45ec33138c59d
|
|
| MD5 |
2c02f78bbdaca6aed6dd15566b1c8876
|
|
| BLAKE2b-256 |
9d6ae12e3637c1a9e58097e8ae048544319a380fc46f8eaed96bd899ff8e5ffe
|