Skip to main content

Module for displaying (text based) status update lines.

Project description

Python package for displaying status information in command line interfaces.

Build status Coverage License Packgage version Package stability Python versions supported Monthly PyPI downloads

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 colorama
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, " ", bg=colorama.Back.GREEN)
bar.add_progress(5, " ", bg=colorama.Back.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statusbar-0.1.1.tar.gz (6.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: statusbar-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for statusbar-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9c2eddd32dcd2cc61e837f659d7d7c9a1a7be65950f4036a99a6e4a5fce0ae9c
MD5 553b94f6b9b2b6b1c31095aa2b948f4d
BLAKE2b-256 cd10348b3e44c7fa3d6373663738fef0d16c294a6272754118820116ac2617b4

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