Skip to main content

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_loading_bar_utility-0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_loading_bar_utility-0.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file simple_loading_bar_utility-0.1.tar.gz.

File metadata

File hashes

Hashes for simple_loading_bar_utility-0.1.tar.gz
Algorithm Hash digest
SHA256 43ba2fbdb0099f2b013b0e917aaecdba98a5cc3db84ddea131d277fbcbca5729
MD5 b480a37227d58d207197c44d5761e052
BLAKE2b-256 6c0f51a550d67534d37354c5ef3c75c195c696b5ca86c41716c86d85f58ed7a6

See more details on using hashes here.

File details

Details for the file simple_loading_bar_utility-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_loading_bar_utility-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9cc42a02fe8ddba25f6b84e97780876f5a3c593e28fbd2c50c45ec33138c59d
MD5 2c02f78bbdaca6aed6dd15566b1c8876
BLAKE2b-256 9d6ae12e3637c1a9e58097e8ae048544319a380fc46f8eaed96bd899ff8e5ffe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page