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 ProgressManager, VerticalProgressRenderer, ColorManager

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

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

for name in manager.track(name_list, label="Names", fore_color="ciano"): __import__('time').sleep(0.4)
for number in manager.track(numbers_list, label="Number", fore_color="verde"): __import__('time').sleep(0.3)
for color in manager.track(color_list, label="Color", fore_color="magenta"): __import__('time').sleep(0.2)
print("finished")

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for progressvertical-0.2.0.tar.gz
Algorithm Hash digest
SHA256 55d6aba5dd6effbfb863f34ee24c9cd45f16a5ff01149a2cedf73d39a582c982
MD5 ac34ee3c8ce1338b204229d198032275
BLAKE2b-256 2d3e7b16f67bc98a62120753324fa5f0cbbba7253c16a5ca1bbf9d5bb0685559

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for progressvertical-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ceaf9cbce5f5d3e7fd8aa794874643f10dad6e316e384d0f4dab7b5fdf8306
MD5 e4fa7547a845b2d2c37af9e0af3cf41c
BLAKE2b-256 1b3a4feb6fde93ab93f930cf5fd28f559643e4a735b6f4d9fbf14597a06cb9f1

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