Skip to main content

Basic Bar

Basic Bar is a simple and effective text-based progress bar for Python applications. It's lightweight and easy to integrate, making it perfect for monitoring the progress of iterable operations with visual feedback and estimated completion times.

Installation

You can install Basic Bar directly from PyPI:

pip install basic-bar

Usage

To use Basic Bar, simply wrap any iterable in the bar() function. This function will yield from the iterable and display a progress bar in the terminal.

Example

Here's a basic example of how to use Basic Bar:

from basic_bar import bar
import time

# Example iterable
data = range(100)

# Wrapping the iterable with the bar function
for item in bar(data):
    time.sleep(0.01)  # Simulate some work

This will display a progress bar in your terminal, updating with each iteration.

Customization

You can customize the length of the progress bar by providing a length parameter:

for item in bar(data, length=50):
    time.sleep(0.01)  # Simulate some work

Features

  • Simple Integration: Just wrap your iterable with bar().
  • Customizable Bar Length: Adjust the length of the progress bar to fit your needs.
  • Real-Time Updates: Provides real-time feedback on progress with percentage completion and estimated time remaining.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Release files for basic-bar 0.5

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

Source distribution (sdist)

Source distribution for basic-bar 0.5
File Size Uploaded
basic_bar-0.5.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for basic-bar 0.5
File Interpreter ABI Platform
basic_bar-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / basic_bar-0.5.tar.gz

Download URL basic_bar-0.5.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d9b3d4dc50724b470023940f477dcd88378c1c4d919ac8c69543f7c8b565f574
BLAKE2b-256 checksum
How to use checksums
968058c16c28c38daa111f866a95cf7b083039459210b401901fe5e990b07e2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / basic_bar-0.5-py3-none-any.whl

Download URL basic_bar-0.5-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9b87064ca0ece3e8e6a0919074a9152889dec61b01f175750a477b0833ebd48
BLAKE2b-256 checksum
How to use checksums
1d4837c4834d7a0d63df3e466c6e49982cc7d9ce78c1148c7697b97f54e4cc79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

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