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

Example

from progressvertical import vertical
import time

name_list = ["Mel", "Bianca", "Melissa", "Piqueno", "Netuno", "Merenga"]

print("starting")

for name in vertical(name_list, label="Names"):
    time.sleep(0.5)

print("finished")

Example 2

from progressvertical import vertical
import time

name_list = ["Mel", "Bianca", "Melissa", "Piqueno", "Netuno", "Merenga"]
numbers_list = [10, 20, 30, 40, 50]
color_list = ["vermelho", "verde", "azul", "amarelo"]

print("starting")


for items in vertical(
    name_list, numbers_list, color_list,
    labels=["Names", "Numbers", "Colors"],
    colors=["cyan", "green", "magenta"],
    height=5,
    spacing=5
):
    time.sleep(0.5)

print("finished")

Exemple 3

from progressvertical import vertical
import time

name_list = ["Mel", "Bianca", "Melissa", "Piqueno", "Netuno", "Merenga"]

print("starting")

progress_vertical = vertical(name_list, label="Names")

index = 0
while index < len(name_list):
    next(progress_vertical)  
    time.sleep(0.5)
    index += 1

print("finished")

📊 ProgressVertical MIT License

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.2.4.tar.gz (10.3 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.2.4-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: progressvertical-0.2.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for progressvertical-0.2.4.tar.gz
Algorithm Hash digest
SHA256 067962e44f338652d097861958de8eaaebb0cee91809dda6de914f7f27284ad0
MD5 afb3c326ebcae69a28b5188dded10f28
BLAKE2b-256 52086e570bb80312c1cda1caab3696caf671876be2e77d4644440a5984a47bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for progressvertical-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4f6893f9cda95e4645c6a2aef15610b3683540ae9c8da640c7d3ab8a6d7a5c06
MD5 a3143d6b6dd801e87d288368683ebf79
BLAKE2b-256 49ecea065916cf75f0a189e61bcf2a512970d6c6bd24f4f9052d8d6d98955604

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