GithubHelp home page GithubHelp logo

tekrar's Introduction



what is tekrar

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 SYS113 - 2019.


license

MIT license , please see LICENSE file.


donate

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

contact me


last word

hope this is tekrar useful to you and enjoy it.


tekrar logo ❤️ mohamad moradiyani


tekrar's People

Contributors

hamid-dionysus avatar

Stargazers

 avatar Javad Bahrami avatar Daniyal avatar hamidreza ghahremani  avatar M.A.Felegari avatar Mohammad Barati avatar Talhe avatar  avatar AmirHosein-Ghavidel avatar Sadra Yahyapour avatar Alireza Memarzade avatar  avatar Ma V avatar Behnam  avatar majid mohamadi avatar Ali Najafi avatar -Mtt avatar

Watchers

 avatar

tekrar's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.