Skip to content

KyleJamesWalker/restraint-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restraint

https://travis-ci.org/KyleJamesWalker/restraint-py.svg?branch=master

Simple Rate Limit Library.

Example setup

from restraint import restrain, Limit, add

add('example', Limit(second=1, minute=5))

@restrain('example')
def hello():
    print(f'Hello World')