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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file simpletextprogressbar-1.1.2.tar.gz.

File metadata

  • Download URL: simpletextprogressbar-1.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for simpletextprogressbar-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8423f2fd7795da8c75779da9957abc8663cc223aea0473c1d48c463ebdf5122f
MD5 71c404948d2b73035f9304821bdde8be
BLAKE2b-256 d0abc016fb19594a5122fd5fe3996c80681eb4c10b3261f9d1e6311dfb631bc4

See more details on using hashes here.

File details

Details for the file simpletextprogressbar-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: simpletextprogressbar-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for simpletextprogressbar-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a59eb8320034bde72df963db30cb7da9b7564bcb853dddb04c3b2a8180813852
MD5 239fa9f1f0c1513c1fa966bfb2103fe1
BLAKE2b-256 1f523a78079e4b7100dc757a28dfa4561736eab72405288313c853c5b5d76f00

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