Display progress indicator on CRT screen.
Project description
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)
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 displayfx-2.2.1.tar.gz.
File metadata
- Download URL: displayfx-2.2.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c01c55efb689e848c7951ca59a53f0f74a2e52f01a11166704d5fc1568451d3
|
|
| MD5 |
dff55d670f146118f3fbb62504a08aad
|
|
| BLAKE2b-256 |
eb178aaffc444951d1faaa6dc097bb367f06d7d8f609b0e745bd1ad1bd4e302a
|
File details
Details for the file displayfx-2.2.1-py3-none-any.whl.
File metadata
- Download URL: displayfx-2.2.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4df3b05e70d5e526887eaf6e1bae5f17aab1964c2c1d088cab25536cd537d2fe
|
|
| MD5 |
93921416c0a08c6e6b7600b95994f9bc
|
|
| BLAKE2b-256 |
b7b89d4a81bdd8f648d6b49500426bda037fbe665d6e4ec2a03d2f535fd5eb6b
|