Skip to main content

A simple progress bar for simple projects

Project description

SimpleTextProgressBar - A simple progress bar for simple projects

This Text Progress Bar is made for projects that don't need great, big, confusing, etc. progress bars. It's code is only 3 KB, and It provides any progress bar relative size, with any relative value, with any prefix before the Progress Bar.

How to Install?

pip install simpletextprogressbar  

Or use the .whl provided on GitHub

How to use?

Just

import simpletextprogressbar  

This imports the Progress Bar into your code

simpletextprogressbar.set_progress_bar()  

This function sends a unfinished line to the console.

simpletextprogressbar.change_position(position, size, optional_prefix, writeTheSameLineWhenFinished)  

This function sets a new progress bar in the relative position from the relative size, and also prints a text before the progress bar, If specified.

Examples

Imagine a example file:

import time  
import simpletextprogressbar  
simpletextprogressbar.set_progress_bar()
for x in range(10):  
        simpletextprogressbar.change_position(x+1, 10, "Filling 10% in 500 ms")  
        time.sleep(0.5)

It Will return this: Filling 10% each 500 ms

What changed?

1.1.2

  • Added argument "writeTheSameLineWhenFinished", as a solution for writing after the line when the progressbar is at the same position as the size.
  • Bug fixings

1.1.1

  • Bug fixing (not released, as I had the idea for 1.1.2)

1.1.0

  • Initial release

Bug Fixing or Suggestions

If you find any bugs or want anything to be on the code, you are encouraged to use GitHub to tell me :)

Enjoy! 😉

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

simpletextprogressbar-1.1.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

simpletextprogressbar-1.1.2-py3-none-any.whl (15.6 kB view hashes)

Uploaded Python 3

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