Skip to main content

create loading animation in python cli project ...

Project description



what is <ins>tekrar</ins>

create loading animation in python cli project ...

  • Generally you can use tekrar in two methods ...
    • sleep
      maybe a unique example similar to time.sleep ...
      pause the python cli project and display the loading animation for a few seconds ...
      
    • function
      show loading animation will be displayed until the function process is completed ...
      

installation

  • install by pip

    # linux
    
    sudo python3 -m pip install tekrar
    
    # windows
    
    py -m pip install tekrar
    
  • install by setup.py

    # linux
    
    sudo python3 -m pip install https://github.com/sys113/tekrar/archive/0.1.1.zip
    
    # windows
    
    py -m pip install https://github.com/sys113/tekrar/archive/0.1.1.zip
    

example


description

  • speed

      # set loading speed ...
      
      # range 1 to 10 ...
      # default value is 3 ...
      
      speed = 5
    
  • method

      # set loading animation method ...
      
      # only 1 or 2 ...
      # default value is 1 ...
      
      method = 2
    
    • method 1

    • method 2

  • sleep

      # pause the python cli project and display the loading animation for 8 seconds ...
      # maybe a unique example similar to time.sleep ...
      
      # argument 'sleep' must be a int type ...
      # cannot use simultaneously 'sleep' and 'function' argument ...
      
      sleep = 8
    
  • function

      # show loading if 'x' function running ...
      
      # cannot use simultaneously 'sleep' and 'function' argument ...
      
      function = x
    
  • argument

    # use this method if 'function' has 'argument' ...
    
    # argument 'argument' must be a int type ...
    
    argument = ['tekrar','SYS113']
    
  • output

    # if 'function' has arguments then use this way for hide function output ...
    
    # default value is True
    # argument 'output' must be boolean type ...
    
    output = True
    
  • save function return value

    # call tekrar.loading function in a variable ...
    
    save_return_value = tekrar.loading(function = func, argument = ['hi'], output = True, speed = 5, method = 2)
    

copyright

copyright <ins>SYS113</ins> - <ins>2019</ins>.


license

<ins>MIT</ins> license , please see <ins>LICENSE</ins> file.


donate

  • for <ins>iranian</ins> users   :       <ins> id pay </ins>      -                    https://idpay.ir/sys113
  • for <ins>global</ins> users   :  <ins>BTC wallet id</ins>  -   149JgUmFqG6MvFg79Ldrvdk2bN35ByhMuw

contact me


last world

hope this is <ins>tekrar</ins> useful to you and enjoy it.


tekrar logo ❤️ mohamad moradiyani


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tekrar, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size tekrar-0.1.1.tar.gz (8.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page