Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 554 Bytes

README.rst

File metadata and controls

23 lines (15 loc) · 554 Bytes

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