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

Uploaded Python 3

File details

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

File metadata

  • Download URL: progressvertical-0.2.1.tar.gz
  • Upload date:
  • Size: 6.5 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.1.tar.gz
Algorithm Hash digest
SHA256 8886e11b88431dbf4425107165b1d487b9f4ae4e554cb99d4a6b795e39bb0fbe
MD5 efd1ec8c2a6a8d6b044f665bd20037d2
BLAKE2b-256 6b42cb2ad8fe29262172321823ed38a0f075c53b7331f79b31aa2c9369496f56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for progressvertical-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a11edc576d97fa12debb41ee962f1969a6394f849a5497caaf23a89a1ae55539
MD5 346a36d7e200d62dc0aff8a062684c7c
BLAKE2b-256 3aa9fe3f55b07ad95194c5f5a8af392361220249afc0bc4ed560c4a5cd79f094

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