Skip to main content

Progress Indicator Library

A Python library providing two classes for displaying progress indicators in the console: ProgressIndicator and ProgressBar. These classes help visualize ongoing tasks by displaying an animated spinner or a progress bar, respectively.

Publish PyPI version

Python Versions

Installation

To install the library, you can use pip:

pip install progress_basic

Usage

ProgressIndicator

The ProgressIndicator class displays an animated spinner with a customizable message and color.

Example

from progress_basic.format.color_text import AnsiColors
from progress_basic.progress_basic import ProgressIndicator

with ProgressIndicator("Processing", color=AnsiColors.OKBLUE) as pi:
    # Simulate a long-running task
    time.sleep(5)

ProgressBar

The ProgressBar class displays a progress bar that updates as tasks progress, with customizable total steps, message, interval, bar length, and color.

Example

from progress_basic.format.color_text import AnsiColors
from progress_basic.progress_bar import ProgressBar

total_steps = 100

with ProgressBar(total_steps, message="Loading", color=AnsiColors.OKBLUE) as pb:
    for i in range(total_steps):
        pb.update(i + 1)
        time.sleep(0.1)  # Simulate work

Classes

ProgressIndicator

A class for displaying an animated spinner with a customizable message and color.

ProgressBar

A class for displaying a progress bar that updates as tasks progress, with customizable total steps, message, interval, bar length, and color.

Metadata

Release files for progress-basic 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 progress-basic 0.5
File Size Uploaded
progress_basic-0.5.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 8.6 kB

Release files / progress_basic-0.5.tar.gz

Download URL progress_basic-0.5.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb4e97261735015eb8d68395564227e2c0353c2fff054d9cef099ad95cc3126
BLAKE2b-256 checksum
How to use checksums
59e368d23f5e917cfc5046155f71072400f65c2a985f023e6088721fea84524f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

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

Download URL progress_basic-0.5-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
703e2c51724b957aacb9717b636ae45b0fcd1b343ccbb2d4ec1f919220bf9332
BLAKE2b-256 checksum
How to use checksums
89de628b29c19a432f4888cacca87abd8bafcac4799a10f10f8beb03808db841
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

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.2

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