displayfx
| Category | Status' and Links |
|---|---|
| General | |
| CD/CI | |
| PyPI | |
| Github |
Overview
DisplayFX is a Python library that provides a simple and effective text-based progress indicator for console applications. It is particularly useful for long-running tasks where visual feedback on progress is needed.
Key Features
- Text-based Progress Bar: Visualizes progress using characters in the terminal.
- Percentage Markers: Automatically places markers (e.g., 20%, 40%, etc.) along the bar.
- Customizable: Allows configuration of the progress bar length and the message displayed alongside it.
- Lightweight: Minimal dependencies, primarily relying on
beetools.
Installation
You can install DisplayFX via pip:
pip install displayfx
Or using poetry:
poetry add displayfx
Usage
Here is a simple example of how to use DisplayFX in your project:
import time
from displayfx import DisplayFx
# Define the maximum value (total steps)
max_val = 100
# Initialize DisplayFx
# p_msg: The message to display before the progress bar
# p_bar_len: The length of the progress bar in characters
progress_bar = DisplayFx(p_max_val=max_val, p_msg="Processing items: ", p_bar_len=50)
# Simulate a process
for i in range(max_val):
# Perform your task here
time.sleep(0.05)
# Update the progress bar with the current index
progress_bar.update(i)
Requirements
- Python >= 3.10
beetools(>=5.2.4)
Metadata
Release files for DisplayFX 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| displayfx-2.2.1.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| displayfx-2.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / displayfx-2.2.1.tar.gz
| Download URL | displayfx-2.2.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c01c55efb689e848c7951ca59a53f0f74a2e52f01a11166704d5fc1568451d3
|
|
BLAKE2b-256 checksum How to use checksums |
eb178aaffc444951d1faaa6dc097bb367f06d7d8f609b0e745bd1ad1bd4e302a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.11 Linux/6.11.0-1018-azure
|
Release files / displayfx-2.2.1-py3-none-any.whl
| Download URL | displayfx-2.2.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4df3b05e70d5e526887eaf6e1bae5f17aab1964c2c1d088cab25536cd537d2fe
|
|
BLAKE2b-256 checksum How to use checksums |
b7b89d4a81bdd8f648d6b49500426bda037fbe665d6e4ec2a03d2f535fd5eb6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.11 Linux/6.11.0-1018-azure
|