Flask-limiter

Latest version: v3.7.0

Safety actively analyzes 630523 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 16

2.3.0

------
Release Date: 2022-04-11

* Features

* Expose option to register a callback for rate limit breaches
of default limits via the :paramref:`~flask_limiter.Limiter.on_breach`
constructor parameter
* Replace use of `flask.g` with request context for keeping track of
extension state (:issue:`327`)
* Rework implementation of :meth:`~flask_limiter.Limiter.exempt` to accomodate
nested blueprints. (:issue:`326`)

* Chores

* Add python 3.11 to CI
* Extract management and filtering of limits to LimitManager
* Improve correctness of resolving inherited limits & extensions
when working with Blueprints (especially nested ones)

2.2.0

------
Release Date: 2022-03-05

* Feature

* Allow a function to be used for the ``cost`` parameter
to limiter decorators.

2.1.3

------
Release Date: 2022-01-30

* Chore

* Update documentation theme

2.1

----
Release Date: 2022-01-15

* Feature

* Add ``current_limit`` attribute to extension to
allow clients to fetch the relevant current limit
that was evaluated.
* Update extension constructor parameters to match
flask config for header control
* Add ``on_breach`` callback for ``limit`` and ``shared_limit``
decorators to be used as hooks for when a limit is breached
* Add ``cost`` argument to ``limit`` and ``shared_limit`` to control
how much is deducted when a hit occurs.

* Chore

* Improve documentation around configuration

* Deprecation

* Remove hacks for managing incorrectly ordered
limit/route decorators

2.0.4

------
Release Date: 2021-12-22

* Chore

* Documentation theme upgrades
* Integrate pytest-docker plugin
* Mass linting

* Deprecation

* Removed deprecated RATELIMIT_GLOBAL config
* Added deprecation doc for RATELIMIT_STORAGE_URL config

2.0.3

------
Release Date: 2021-12-15

Documentation & test tweaks

Page 7 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.