Skip to main content

A simple to use process based progress bar

Project description

Shadowbar a simple process based progress bar

Getting started

from shadowbar import ProgressBar

progress, pbar = ProgressBar.new(length, total, refresh_rate=0.5)

Parameters

  • Length specifies the amount of characters the progress bar will span in the console
  • Total specifies the amount of tasks that will be executed
  • Refresh rate is the delay between updates. To short delays will lead to flickering in the console. The recommended and default value is 0.5

Returns

  • Progress is an integer shared value from multiprocessing import Value
  • Pbar is the ProgressBar object instantiated through ProgressBar.new()

Examples

from shadowbar import ProgressBar
from time import sleep

progress, pbar = ProgressBar.new(50, 100)

for _ in range(100):
	progress.value += 1
	sleep(0.5)

pbar.wait_complete()
print("Task is done!")

pbar.wait_complete() ensures that the process is done before continuing

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

shadowbar-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

shadowbar-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file shadowbar-0.1.0.tar.gz.

File metadata

  • Download URL: shadowbar-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for shadowbar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bd8f6e1bff19032cadfffd2e061ea543307b72550ab67206cf4f349fd60afeef
MD5 39945d0d470b68e4c93e04a2cd9bc2c6
BLAKE2b-256 d64c1a7a769c4faefd189302b59cd6a9ac202e4e5a0a6111e6f5284f2cc72a50

See more details on using hashes here.

File details

Details for the file shadowbar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shadowbar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for shadowbar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a023fb3e55228262ce6e1a6cdb4ee003f8b3485643dde8a04be74f641bd7308
MD5 23c562442750adae50289be42cace07d
BLAKE2b-256 eb5709abc25cd77a75611e878cb8ca7f6d426280c1862c3d70ed235afde9e168

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