Skip to main content

printStatus

A simple collection of functions to print a progress bar in the console. In addition, it facilitates to print the status of a currently running job or the exit status of a finished job.

The module is for instance used by the GIST pipeline (https://abittner.gitlab.io/thegistpipeline/) and the generated messages look like this:

Installation

You can install this package with pip:

   pip install printStatus

Usage

A simple example of the usage of this module is provided in demo.py. The following functions are available:

  • printStatus.module(message): Print the name of the currently active module.
  • printStatus.running(message): Print a new message to stdout with the tag "Running".
  • printStatus.done(message): Print a new message to stdout with the tag "Done".
  • printStatus.updateDone(message, progressbar=False): Overwrite the previous message in stdout with the tag "Done" and a new message. Set progressbar=True if the previous message was the progress bar.
  • printStatus.warning(message): Print a new message to stdout with the tag "Warning".
  • printStatus.updateWarning(message, progressbar=False): Overwrite the previous message in stdout with the tag "Warning" and a new message. Set progressbar=True if the previous message was the progress bar.
  • printStatus.failed(message): Print a new message to stdout with the tag "Failed".
  • printStatus.updateFailed(message): Overwrite the previous message in stdout with the tag "Failed" and a new message. Set progressbar=True if the previous message was the progress bar.

Compatibility

Tested with Python3. Note that the appearance of the colours in the terminal depends on the specific setup of your terminal.

Release files for printStatus 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for printStatus 1.0.6
File Size Uploaded
printStatus-1.0.6.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for printStatus 1.0.6
File Interpreter ABI Platform
printStatus-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / printStatus-1.0.6.tar.gz

Download URL printStatus-1.0.6.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6dfc77217ed1a7cb229aa7bed88a1463eb4eeb09b3bff4885a31a1f5b4ccd5e2
BLAKE2b-256 checksum
How to use checksums
42ea7cf1be054c7152c2c06b98c79b2b602b6e1878f38a34c06a578f972b4194
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release files / printStatus-1.0.6-py3-none-any.whl

Download URL printStatus-1.0.6-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
212dae412e4694864296c03dc1a0b735b8767590ee1760f69dbc9c0fb14e79a5
BLAKE2b-256 checksum
How to use checksums
89b9f1aa886d8843f8a58c3385538b5a9974d9a01b5c4021f546f762a4c75a08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page