Compatibility of Flask-Limiter or a different form of rate limiting?
See original GitHub issueI’m wondering or anyone has implemented a form of rate limiting that works with a flask-restplus-patched
project? Flask-Limiter looks like a really nice project but will probably need some work getting it to work with this project.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Flask-Limiter 1.5+2.g5eddb74.dirty documentation
Flask-Limiter comes with three different rate limiting strategies built-in. Pick the one that works for your use-case by specifying it in your flask...
Read more >Flask-Limiter {2.8.1}
Flask -Limiter provides rate limiting features to Flask applications. By adding the extension to your flask application, you can configure various rate ...
Read more >flask_limiter.extension - Flask-Limiter {2.8.1} - Read the Docs
:param key_func: a callable that returns the domain to rate limit by. :param default_limits: a variable list of strings or callables returning strings ......
Read more >Changelog - Flask-Limiter {2.8.1}
Expose option to register a callback for rate limit breaches of default limits via the on_breach constructor parameter · Replace use of flask.g...
Read more >Rate limiting strategies - Flask-Limiter {2.8.1}
Flask-Limiter comes with three different rate limiting strategies built-in. Pick the one that works for your use-case by specifying it in your flask...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@theveloped Thanks to @10000TB effort, there is now a section in the README about Flask-* integration
@theveloped what specific issue are you having ?
After adding limiter through extension as you did, a simple snippet like follow works for me for what flask-limiter promised:
note: set limiter decorator via decorator variable
Reference this for more details why decorating functions or class won’t work: https://flask-limiter.readthedocs.io/en/stable/#using-flask-pluggable-views