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

Uploaded Source

Built Distribution

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

MagicProgress-0.0.4-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file MagicProgress-0.0.4.tar.gz.

File metadata

  • Download URL: MagicProgress-0.0.4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for MagicProgress-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3211535c5cf5820282fba21efdc860ad5836928cd9d82bf8a6186a7771ea0c62
MD5 640bb5ba04e200ae94362a69a6be1498
BLAKE2b-256 7021fa1e852f4715d6a115dd79dd961349e357892c01fe83b23256f12beb78e5

See more details on using hashes here.

File details

Details for the file MagicProgress-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: MagicProgress-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for MagicProgress-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f45a646ab0b013ba0d04548572d488bc186611ca6997912e822598f5839c57b
MD5 8f1317179dcba371ae7a244e2aca5c8b
BLAKE2b-256 055414527db7331e113fe82c5bd2ae98ebde35781e15f90dbea5a77c2b55b35b

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