Skip to main content

It displays loading like structure in loopy statement

Project description

pyloadart

It displays loading like structure in loopy statement (package)

   pyloadart
        |
        |-- function
        |      |
        |      |-- bar()
        |      |-- arrow()
        |      |-- doted()
        |      |-- hash_()
        |      |-- custom()
        |      |-- loop
        |            |
        |            |-- box()
        |            |-- arrow()
        |            |-- clock()
        |            |-- doted()
        |            |-- custom()
        |            |-- inwords()
        |            |-- outwords()
        |
        |-- asign
        |      |
        |      |-- ExceptionKeyboardInterrupt
        |      |-- loop
        |            |-- ExceptionKeyboardInterrupt
        |
        |-- version
        |      |__ v0.0.1
        |
        |-- author
        |      |_ Madhava-mng
        |
        |__  The End. Nandrigal...!
  >>> import pyloadart as pla
  >>> for i in range(500000):
  ...     pla.arrow(i, 500000, msg='banner\\t')
  banner  100% [➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢]
Function:
    ➢ bar
    ➢ arrow
    ➢ doted
    ➢ hash_
    ➢ custom

Assign:
    ➢ ExceptionKeyboardInterrupt = False/True


Arg:
    ➢ current_value   =>  (int)  number
    ➢ expected_value  =>  (int)  number
    ➢ theam           =>  (str)  Inside loders "#" or "➢" ...
                                 only in custom
    ➢ msg             =>  (str)  print the message before loaders
    ➢ unfilled        =>  (str)  Fill this char with unfilled areas
    ➢ number          =>  (Bool) for hide persentage sign and number
    ➢ color           =>  (str)  W   => white
                               R   => red
                               B   => blue
                               G   => green
                               Y   => yellow
                               P   => pink like     code: \\033[35m
                               D   => disco
                            the colors displayed according your terminal
                            color scheam
    ➢ end_with        =>  (str)  end with chars default "[]"
                               [0] => starts with
                               [1] => ends with
    ➢ interval        =>  (int)  set intervel to print the loader
                               To wavering the speed of the program



Examples:
  >>> import pyloadart as pla
  >>>
  >>> for i in range(500000):
  ...     pla.arrow(i, 500000, msg='banner \\t')
  banner   100% [➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢]

  >>> for i in range(500000):
  ...     pla.arrow(i, 500000, msg='banner2\\t', unfilled='-')
  banner2   85% [➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢----------]

  >>> for i in range(500000):
  ...     pla.arrow(i, 500000, msg='banner3\\t\\t', number=False)
  banner3       [➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢]

  >>> for i in range(500000):
  ...     pla.arrow(i, 500000, msg='banner\\t', endwith="()", unfilled='-')
  banner4   67% (➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢➢-------------------------)


  >>> for i in range(500000):
  ...     pla.custom(i, 500000, msg='banner5\\t', endwith="()", theam="@")
  banner5   68% (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@--------------------------)

  Exception
  >>> pla.ExceptionKeyboardInterrupt = True

➢ bar, dotted, hash_ all are similear to arrow. ➢ Some ascii values are not suported by some terminals, use custom function for that kind of issues.

loop:

 Functions:
    ➢ box
    ➢ arrow
    ➢ doted
    ➢ clock
    ➢ inwords
    ➢ outwords
    ➢ custom

Assign:
    ➢ ExceptionKeyboardInterrupt = False/True

Arg:
    ➢ interval        =>  (int)  set intervel to print the loader
                               To wavering the speed of the program

    ➢ pre_msg         =>  (str) display the message before loader
    ➢ post_msg        =>  (str) display the message after loader
    ➢ color           =>  (str)  W   => white
                               R   => red
                               B   => blue
                               G   => green
                               Y   => yellow
                               P   => pink like     code: \\033[35m
                               D   => disco
                            the colors displayed according your terminal
                            color scheam
    ➢ theam           => (list) list of char you want to disply
                                theam = ("\\", "|", "-", "|", "/", "-")
                                only in custom

Examples:
     >>> import pyloadart as pla
     >>> while (True):
     ...     pla.loop.box(10, pre_msg = "something loading")
     something loading  
     >>> while (True):
     ...     pla.loop.box(10, post_msg = "something loading")
      something loading

     Exception
     >>> pla.loop.ExceptionKeyboardInterrupt = True

see in github

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

pyloadart-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

pyloadart-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pyloadart-0.0.1.tar.gz.

File metadata

  • Download URL: pyloadart-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1

File hashes

Hashes for pyloadart-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f3e384022d0c375fd4de811c4a5fb80bcb5a2be0c92774f1aed01075d5173b82
MD5 bbd73b17a3b6c4febd8bbd855617364d
BLAKE2b-256 bed2138f7f9df9a4b06038051d0d6f37cdafc0ae5bcdc5e72296f8fc63fa7068

See more details on using hashes here.

File details

Details for the file pyloadart-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyloadart-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1

File hashes

Hashes for pyloadart-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3abbba1bc55ae67cf666a586170b470a19b30c750e5fb264d2ffc68abb164fae
MD5 999733e02646e1123c3a0724484b70a8
BLAKE2b-256 719aa4e9ede93d9632e93ceaaef3466b5551b9c68cb4c8345943517d423ba6a5

See more details on using hashes here.

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