Skip to main content

A progress bar for python shell scripts (Linux)

Project description

# python_progress_bar

> Note: There exists also the original [bash implementation](https://github.com/pollev/bash_progress_bar)

This module uses terminal control codes to create and manage a progress bar on the bottom of the terminal.

This python module is intended to be imported into your scripts. It will allow you to create a progress bar which does not interfere with the scrolling output of the script. The look and feel for this progress bar is based on the progress bar used in APT.

What makes this progress bar different from the basic terminal progress bars which use carriage return (r) to overwrite their own line, is that this progress bar does not interfere with the normal output of your script. This makes it very easy to update existing scripts to use this bar without having to worry about the scrolling of your output.

An example can be viewed in test_bar.py. The actual implementation can be found in progress_bar.py

Example output:

![](example.gif)

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

python_progress_bar-1.01.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page