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 1

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")

Example 2

from progressvertical import ProgressManager, VerticalProgressRenderer, ColorManager

ColorManager.init_colorama()
renderer = VerticalProgressRenderer(height=26)
manager = ProgressManager(renderer)
print("progress")

iterable = [1, 2, 3, 4, 5,'bebel',True,[1,2,3,4,5]]

for i in manager.track(iterable, label="1", fore_color="blue"):__import__('time').sleep(0.6)


for e in manager.track(iterable, label="2", fore_color="red"):__import__('time').sleep(0.4)


for f in manager.track(iterable, label="3", fore_color="blue"):__import__('time').sleep(0.5)
for g in manager.track(iterable, label="4", fore_color="yellow"):__import__('time').sleep(0.9)


for item in manager.track(range(100), label="title", fore_color="green"):
  if(item == 35):
   break

print("======================================")

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.9.tar.gz (6.6 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.9-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: progressvertical-0.1.9.tar.gz
  • Upload date:
  • Size: 6.6 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.9.tar.gz
Algorithm Hash digest
SHA256 bef5eb2002cc81d9c197e816d9bd6bb99c90a4a4863128973cf3eb6346c113f5
MD5 10cb53535242d3be81afeaa7bc5cffbe
BLAKE2b-256 ac45d201e9adf844f2ea316531370c21c582b3eb1f1b0c7d056d6ff9eb9ab7b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for progressvertical-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4c710223c89cfcf2c44f1258d41ba9b236e82104dc48a8794e73bc4f9fea7480
MD5 ff3b76cacb53d33de938d4f0dfd597f3
BLAKE2b-256 14b626906c43572876cd42951f774724d9985c760d108f1913f51a06eab63545

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