Skip to main content

Rendering vertical progress bars with custom colors and styles

Project description

ProgressVertical is a Python library for displaying vertical progress bars for command-line interface (CLI) applications.
Designed with a focus on usability and customization, allowing the creation of multi-stage progress animations with configurable colors, styles, and durations, inspired by another library progressbar.

Installation:

pip install progressvertical

Usage Example

from progressvertical import ProgressManager, VerticalProgressRenderer, ColorManager
import time

ColorManager.init_colorama()
renderer = VerticalProgressRenderer(height=5)
manager = ProgressManager(renderer)
print("progresso")
lista = [1, 2, 3, 4, 5]

for numero in manager.track(lista, label="Números", fore_color="green"):
    print(f"Processando: {numero}")

print("Processo concluído!")

Example

from progressvertical import ProgressManager, VerticalProgressRenderer, ColorManager

ColorManager.init_colorama()
renderer = VerticalProgressRenderer(height=5,spacing=5)
manager = ProgressManager(renderer)

lista_nomes = ["Mel", "Bianca", "Melissa","Piqueno"]
lista_numeros = [10, 20, 30, 40, 50]
lista_cores = ["vermelho", "verde", "azul", "amarelo"]
print("iniciado processo")

for nome in manager.track(lista_nomes, label="Nomes", fore_color="ciano"):
    __import__('time').sleep(0.4)
    for numero in manager.track(lista_numeros, label="Números", fore_color="verde"):
        __import__('time').sleep(0.3)
        for cor in manager.track(lista_cores, label="Cores", fore_color="magenta"):
            __import__('time').sleep(0.2)
print("finalizado")

ProgressVertical

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

progressvertical-0.1.8.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

progressvertical-0.1.8-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file progressvertical-0.1.8.tar.gz.

File metadata

  • Download URL: progressvertical-0.1.8.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for progressvertical-0.1.8.tar.gz
Algorithm Hash digest
SHA256 89b1827a4e4f667b7901b8821020f961231518b243ece2367b9741a6fb505857
MD5 3736bad8c6a8127066ca90a6b0edf231
BLAKE2b-256 db71832f3a0cb8cb2b4407228b275a71efb8d2ab14cece62dd569817409b83d3

See more details on using hashes here.

File details

Details for the file progressvertical-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for progressvertical-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6617f913d9ac9fa0dc8e8f430b2d1f2bc72f7b0f666d96ec8f7ed4740a61ffdc
MD5 eef77cc50ecba128bc6f82676a66fe8a
BLAKE2b-256 de7c324a0fbf19bc24fd42d5b4d83e47e7cee38b7f8a021b2660a6b6ea1442d8

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