Skip to main content

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.

Metadata

Release files for simple-loading-bar-utility 0.1

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

Source distribution (sdist)

Source distribution for simple-loading-bar-utility 0.1
File Size Uploaded Provenance Actions
simple_loading_bar_utility-0.1.tar.gz 2.6 kB Without provenance Details for simple_loading_bar_utility-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-loading-bar-utility 0.1
File Interpreter ABI Platform Actions
simple_loading_bar_utility-0.1-py3-none-any.whl Python 3 none any Details for simple_loading_bar_utility-0.1-py3-none-any.whl

Total release size: 8.7 kB

Release files / simple_loading_bar_utility-0.1.tar.gz

Download URL simple_loading_bar_utility-0.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
43ba2fbdb0099f2b013b0e917aaecdba98a5cc3db84ddea131d277fbcbca5729
BLAKE2b-256 checksum
How to use checksums
6c0f51a550d67534d37354c5ef3c75c195c696b5ca86c41716c86d85f58ed7a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Release files / simple_loading_bar_utility-0.1-py3-none-any.whl

Download URL simple_loading_bar_utility-0.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9cc42a02fe8ddba25f6b84e97780876f5a3c593e28fbd2c50c45ec33138c59d
BLAKE2b-256 checksum
How to use checksums
9d6ae12e3637c1a9e58097e8ae048544319a380fc46f8eaed96bd899ff8e5ffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Security for simple-loading-bar-utility 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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