Python Magic Progressbar
Project description
MagicProgress
A python package that allows to implement and draw various examples of progress bar.
version 0.0.3
Demo
Install
pip install MagicProgress
Examples of How To Use
Progress
To have a dynamic progress bar, it is enough to send your percentage to it in each period
๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ 100%
from MagicProgress import Progress
from time import sleep
for i in range(1, 101):
Progress(i)
sleep(0.01)
Progress without Percentage
To have a dynamic progress bar without Percentage, it is enough to send your percentage to it in each period
๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ
from MagicProgress import ProgressNoPercentage
from time import sleep
for i in range(1, 101):
ProgressNoPercentage(i)
sleep(0.01)
Progress without Color
To have a dynamic progress bar without Color, it is enough to send your percentage to it in each period
[โโโโโโโโโโโโโโโโโโโโ] 100%
from MagicProgress import ProgressNoColor
from time import sleep
for i in range(1, 101):
ProgressNoColor(i)
sleep(0.01)
Progress without Color and Percentage
To have a dynamic progress bar without Color and Percentage, it is enough to send your percentage to it in each period
[โโโโโโโโโโโโโโโโโโโโ]
from MagicProgress import ProgressNoColorPercentage
from time import sleep
for i in range(1, 101):
ProgressNoColorPercentage(i)
sleep(0.01)
Draw Progress
To draw a progress bar, send your percentage to this function and it will return you a progress bar
๐ฉ๐ฉ๐ฉ๐ฉ๐ฉโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธ 50%
from MagicProgress import DrawProgress
progress = DrawProgress(50)
print(progress)
Draw Progress without Percentage
To draw a progress bar without Percentage, send your percentage to this function and it will return you a progress bar
๐ฉ๐ฉ๐ฉโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธโฌ๏ธ
from MagicProgress import DrawProgressNoPercentage
progress = DrawProgressNoPercentage(30)
print(progress)
Draw Progress without Color
To draw a progress bar without Color, send your percentage to this function and it will return you a progress bar
[โโโโโโโโโโโโโโโโ----] 80%
from MagicProgress import DrawProgressNoColor
progress = DrawProgressNoColor(80)
print(progress)
Draw Progress without Color and Percentage
To draw a progress bar without Color and Percentage, send your percentage to this function and it will return you a progress bar
[โโโโโโโโโโโโ--------]
from MagicProgress import DrawProgressNoColorPercentage
progress = DrawProgressNoColorPercentage(60)
print(progress)
Are you a developer?
1-Fork it!
2-Create your feature branch: git checkout -b my-new-feature
3-Commit your changes: git commit -am 'Add some feature'
4-Push to the branch: git push origin my-new-feature
5-Submit a pull request
Thank you dear Shahab Karimifar for the idea of developing this library.
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
Built Distribution
Hashes for MagicProgress-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5f22b9bc1b6b2bf2311390d420c88947036e23d76b8ab714d433a1976f5519c |
|
MD5 | cd03b3a02cdd3c12371bedff64246c2b |
|
BLAKE2b-256 | cd381aa713ee8a8ef371baaa6cff7f988fc7d181077b7d772bf225becfa31922 |