A colorful terminal progress bar with ETA and speed display
Project description
Progress
A modern, customizable, and colorful terminal progress bar for Python.
Features
- 🔄 Real-time updates with smooth speed estimation
- 🎨 Gradient or single-color progress bar
- ⌛ ETA (Estimated Time Remaining)
- 📏 Adapts to terminal width
- 🧩 Customizable display template
- ✅ Easy to use and dependency-free
Installation
pip install progress-bar-cli # (Nome provisório, ajuste conforme seu setup.py)
Usage
import time
from progress import Progress
progress = Progress(
min_value=0,
max_value=100,
unit="items",
colors=[(255, 0, 0), (255, 255, 0), (0, 255, 0)],
single_color=False
)
for i in range(101):
progress.update(i)
time.sleep(0.05)
print("\nDone!")
Template Formatting
You can fully customize the progress bar layout:
template="{progress_bar} {percentage}% • {velocity} {unit}/s • {eta}"
Available placeholders:
{progress_bar}: the visual bar{percentage}: progress percent (int){velocity}: items per second (float){unit}: unit you provided (e.g.,files){eta}: estimated time remaining (e.g.,0m12s)
Parameters
| Parameter | Description |
|---|---|
min_value |
The start of the progress range (e.g., 0) |
max_value |
The end of the progress range (e.g., 100) |
unit |
Unit label to display next to speed (items, MB, files, etc.) |
colors |
List of RGB tuples for gradient coloring |
single_color |
If True, uses one interpolated color instead of gradient |
template |
Custom string template for output display |
Example with Single Color Mode
Progress(
min_value=0,
max_value=50,
unit="steps",
colors=[(0, 128, 255), (0, 255, 255)],
single_color=True
)
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file super_progress_bar-0.1.0.tar.gz.
File metadata
- Download URL: super_progress_bar-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0618c66b68870afebfaee5029003abd5099aab24d5f4e2e2965fa4d8585f6ced
|
|
| MD5 |
510de1450c5b9aa962f191340c17a227
|
|
| BLAKE2b-256 |
2f35e48fb6927affb7b9a7ad73de86b85d6da160b4d3ff5a1833809f680b4d34
|
File details
Details for the file super_progress_bar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: super_progress_bar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e46a64e46d56e082eb5aa38a05fd95a20012d477157b06598ebf7153e823e08
|
|
| MD5 |
65ae7c2dc47ec065f992cc1fbe2a08f5
|
|
| BLAKE2b-256 |
1854e20c8301e55a7695cf1e2027bc390a7c7b8946c60bd179d6501a0697789d
|