Category : flask-limiter

I was trying to create a flask app with certain limits on a particular endpoint. I have defined my app structure like so: run.py – >. to instantiate and run the flask server class MyFlaskApp(Flask): def run(self, host=None, port=None, debug=None, **options): with self.app_context(): super(MyFlaskApp, self).run(host=host, port=port, debug=debug, **options) app = MyFlaskApp(__name__) CORS(app) @app.errorhandler(429) def ratelimit_handler(e): ..

Read more

I was trying to create a flask app with certain limits on a particular endpoint. I have defined my app structure like so: run.py – >. to instantiate and run the flask server class MyFlaskApp(Flask): def run(self, host=None, port=None, debug=None, **options): with self.app_context(): super(MyFlaskApp, self).run(host=host, port=port, debug=debug, **options) app = MyFlaskApp(__name__) CORS(app) @app.errorhandler(429) def ratelimit_handler(e): ..

Read more