Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

displayfx-2.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

displayfx-2.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file displayfx-2.2.0.tar.gz.

File metadata

  • Download URL: displayfx-2.2.0.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

Hashes for displayfx-2.2.0.tar.gz
Algorithm Hash digest
SHA256 8025443f8c76d5e5945cd3849fbcf90e65745c8e09e97621de5d79dc1e3b614c
MD5 b315dc3153924f062b65626f376b11bb
BLAKE2b-256 3fa966118aad046b44dc9c23f00b7dfcdd1260fa2b2b2fc3574f9b58d9e103da

See more details on using hashes here.

File details

Details for the file displayfx-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: displayfx-2.2.0-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

Hashes for displayfx-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0232b6a40b58886e469ebbbd18ccd0af1b4e19e5bc5584f9080ffa6b5aad0cf4
MD5 9e7f5c79d9fc466bc6d525e74237b3e3
BLAKE2b-256 2d87c3cea7fda739e3bcbde10a64c6bcbade5a45cd219f3a72f264be112c37f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page