0.0.2
Throttling Feature for Ellar
Setup with Module
from ellar.common import Module
from ellar_throttler import ThrottlerModule
@Module(modules=[
ThrottlerModule.setup(ttl=60, limit=10)
])
class ApplicationModule:
passApply to Controller
# project_name/controller.py
from ellar.common import Controller, guards
from ellar_throttler import throttle, ThrottlerGuard
@Controller()
class AppController:
@guards(ThrottlerGuard)
@throttle(limit=5, ttl=30)
def normal(self):
passFull Changelog: https://github.com/eadwinCode/ellar-throttler/commits/0.0.2