Skip to main content

Python Magic Progressbar

Project description

MagicProgress

A python package that allows to implement and draw various examples of progress bar.

version 0.0.4

Maintenance License: GPL v3

Demo

Alt text

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)

Progress With Emoji

To have a dynamic progress bar with Emoji, it is enough to send your percentage to it in each period
๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ ๐Ÿ˜
Alt text

from MagicProgress import EmojiProgress
from time import sleep

for i in range(1, 101):
    EmojiProgress(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)

Draw Progress Emoji

To draw a progress bar with Emoji, send your percentage to this function and it will return you a progress bar
๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉ๐ŸŸฉโฌœ๏ธโฌœ๏ธ ๐Ÿ˜

from MagicProgress import DrawEmojiProgress

progress = DrawEmojiProgress(80)
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

MagicProgress-0.0.4.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

MagicProgress-0.0.4-py3-none-any.whl (15.8 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