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

Uploaded Python 3

File details

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

File metadata

  • Download URL: shadowbar-0.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 b05ec8e2bf7230af1f83c8c2d5a34059417ba9260791c9835f62f94761f9b91b
MD5 76fa5d1440c29a8aca5c3674bc186c30
BLAKE2b-256 3650b3db9d3e3b16b02260dff9e57781173ea98deb5234bbdd45223c7445a116

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shadowbar-0.1.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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc7c763fce54e71a7485f2c6ce6b2404dcde3bcc67d4a629a961208464e725bb
MD5 1b0a183e49f7e1ef6b30db1ea7ab0bcd
BLAKE2b-256 c5689f2055ff7a77c8668124b4bbde090e5fbc5b09db7003fc38208fa4f6224c

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