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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| progress_basic-0.5.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|