Module for displaying (text based) status update lines.
Project description
Python package for displaying status information in command line interfaces.
This package can be used to show status information through one or more lines of formatted status bars where each status bar consist of three components: a label, a progress bar, and a statistics/summary field.
import statusbar
bar = statusbar.StatusBar("Test status")
bar.add_progress(10, "#")
bar.add_progress(5, ".")
print(bar.format_status())
bar = statusbar.StatusBar("Test status")
bar.set_progress_brackets('','')
bar.add_progress(10, " ", color="green")
bar.add_progress(5, " ", color="red")
print(bar.format_status())
st = statusbar.StatusTable()
sb = st.add_status_line("Test")
sb.add_progress(1, "#")
sb.add_progress(1, " ")
sb = st.add_status_line("Testing progress")
sb.add_progress(10, "#")
sb.add_progress(5, ".")
sb.add_progress(10, " ")
print("\n".join(st.format_table()))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 statusbar-0.1.22.tar.gz.
File metadata
- Download URL: statusbar-0.1.22.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b4ac5d6f644c4425945143156c4157744c5b6aae5858e991b254853e9fe0225
|
|
| MD5 |
d79ab7171e86038c0e0799b2961a6ee8
|
|
| BLAKE2b-256 |
571f25c9a558305317bfc7b750be672edd53c8ef439a04b656e17271ecffdfd9
|
File details
Details for the file statusbar-0.1.22-py3-none-any.whl.
File metadata
- Download URL: statusbar-0.1.22-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c50accd009aaec9aa6bffa325e793d446020b7e39748643e1842bffd45da1ce9
|
|
| MD5 |
72e8ca93acc395831eebe05f369ea162
|
|
| BLAKE2b-256 |
9c4170dbe72f3bb6281325453db747b48b9079e3d1b7b3415dbe6f614ff97cc5
|