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.2.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shadowbar-0.1.2.tar.gz.
File metadata
- Download URL: shadowbar-0.1.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5a3c588ee9c1bb324f80d084e82bb6436c42854c42164f66a6dc285c9b3da6f
|
|
| MD5 |
f30202038105e0088b8ea39ed273e011
|
|
| BLAKE2b-256 |
4de3236cda49b9ed1f683d0adfcca985afba7d35f34df92d9350e6b6c6310874
|
File details
Details for the file shadowbar-0.1.2-py3-none-any.whl.
File metadata
- Download URL: shadowbar-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3efc1c7bace0846a9013b3291c3699ed73792ed1d63685e3b9c0ae6e43ed7866
|
|
| MD5 |
2a8ae61459a02fc8588c75ea09c2b0d9
|
|
| BLAKE2b-256 |
cb4373d71680d4be83a2d045dcd3b92c7dba4dfc5747dfa5f6426d05981d1c7f
|