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.3.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.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shadowbar-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f93cf799a42beae45e7a766a07c24c5267f7211c34b8c72251d0d701d27bffb1
MD5 25e0bfd1c5d77fe81c8eec0636a195fa
BLAKE2b-256 5803f50003d63a13358f1c61c021eeff62e235d9185a83f73df53cca350abbd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shadowbar-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 848f5d7ad9422cf7f7fc517efc8a51826ba74a0503142f9adac7103d573bc441
MD5 2a2b5c2c5c3a1d31e5424373d67a9345
BLAKE2b-256 0cb241cd7adec31012dc1f311cfce448e102158241398d39fa43175ea7910e89

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