Skip to main content

A simple to use process based progress bar

Project description

Shadowbar a simple process based progress bar

Installation

pip install -i https://test.pypi.org/simple/ progress-bar-shadowcrafter

Getting started

from ProgressBar import PBar

progress, pbar = PBar.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 the classmethod PBar.new()

Examples

from ProgressBar import PBar
from time import sleep

progress, pbar = PBar.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.0.1.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.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shadowbar-0.0.1.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.0.1.tar.gz
Algorithm Hash digest
SHA256 dd871cadd48a415a3770ca2eaf2063632c1f3cbd84d81de2d0ab1d2df6bab178
MD5 a730b4aeb5a0996e2aca45e1743de3f2
BLAKE2b-256 5a0b687a69595084879d765dd8ce10229048eec168f9a2127fc4a1bde588741f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shadowbar-0.0.1-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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e939f669da87db80ec188e74df819a55d991dec32784e23b303cd5dedc344c45
MD5 9256b32939b0d821601b80e1a8506747
BLAKE2b-256 c735b1100d64b7e78d3748f7c0eb61243221dd1d18a2fee823434d062f8ceba4

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