---
title: "limits 5.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each limits release removed, renamed or changed: 48 breaking changes in 5 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/limits
last_updated: 2026-12-04
---

# limits breaking changes

limits 5.0.0 (April 16, 2025) is its newest release with breaking changes, 35 of them. The first: Removed limits.aio.storage.etcd. Every breaking API change we have recorded in limits on PyPI: 48 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.8.0`, released February 5, 2026. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 38 breaking changes in 3 versions.
- From [3.0.0](#v-3-0-0) to [5.0.0](#v-5-0-0): 44 breaking changes in 4 versions.

## limits 5.0.0 breaking changes

limits 5.0.0, released April 16, 2025: 35 breaking changes.

- **Removed** `limits.aio.storage.etcd`  

limits.aio.storage.etcd was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.EtcdStorage`  

limits.aio.storage.EtcdStorage was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.memcached.EmcacheClientP`  

limits.aio.storage.memcached.EmcacheClientP was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.memcached.ItemP`  

limits.aio.storage.memcached.ItemP was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.MemcachedStorage.decr`  

MemcachedStorage.decr was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.MemcachedStorage.dependency`  

MemcachedStorage.dependency was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.MemcachedStorage.get_many`  

MemcachedStorage.get_many was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.MemcachedStorage.get_storage`  

MemcachedStorage.get_storage was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.MemcachedStorage.hosts`  

MemcachedStorage.hosts was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.MemoryStorage.get_num_acquired`  

MemoryStorage.get_num_acquired was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.redis.RedisBridge.key_prefix`  

RedisBridge.key_prefix was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.storage.RedisStorage.PREFIX`  

limits.aio.storage.RedisStorage.PREFIX was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.aio.strategies.FixedWindowElasticExpiryRateLimiter`  

limits.aio.strategies.FixedWindowElasticExpiryRateLimiter was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.storage.etcd`  

limits.storage.etcd was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.storage.EtcdStorage`  

limits.storage.EtcdStorage was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.storage.MemoryStorage.get_num_acquired`  

MemoryStorage.get_num_acquired was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.storage.RedisStorage.key_prefix`  

RedisStorage.key_prefix was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.strategies.FixedWindowElasticExpiryRateLimiter`  

limits.strategies.FixedWindowElasticExpiryRateLimiter was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.typing.EmcacheClientP`  

limits.typing.EmcacheClientP was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Removed** `limits.typing.ItemP`  

limits.typing.ItemP was removed in limits 5.0.0 [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.MemcachedStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, wrap_exceptions: bool = False, \*\*options: float | str | bool) -> None; now def \_\_init\_\_(self, uri: str, wrap_exceptions: bool = False, implementation: Literal\['memcachio', 'emcache'\] = 'memcachio'... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.MemcachedStorage.incr`  

Was async def incr(self, key: str, expiry: float, elastic_expiry: bool = False, amount: int = 1, set_expiration_key: bool = True) -> int; now async def incr(self, key: str, expiry: float, amount: int = 1, set_expiration_key: bool = True)... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.MemoryStorage.incr`  

Was async def incr(self, key: str, expiry: float, elastic_expiry: bool = False, amount: int = 1) -> int; now async def incr(self, key: str, expiry: float, amount: int = 1) -> int. [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.redis.RedisBridge.__init__`  

Was def \_\_init\_\_(self, uri: str, dependency: ModuleType, key_prefix: str) -> None; now def \_\_init\_\_(self, uri: str, dependency: ModuleType) -> None. [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.redis.RedisBridge.incr`  

Was async def incr(self, key: str, expiry: int, elastic_expiry: bool = False, amount: int = 1) -> int; now async def incr(self, key: str, expiry: int, amount: int = 1) -> int. [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.RedisClusterStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, wrap_exceptions: bool = False, implementation: Literal\['redispy', 'coredis', 'valkey'\] = 'coredis', key_prefix: str = RedisStorage.PREFIX, \*\*options: float | str | bool) -> None; now def \_\_init\_\_(self, uri... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.RedisSentinelStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, wrap_exceptions: bool = False, implementation: Literal\['redispy', 'coredis', 'valkey'\] = 'coredis', key_prefix: str = RedisStorage.PREFIX, service_name: str | None = None, use_replicas: bool = True... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.RedisStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, wrap_exceptions: bool = False, implementation: Literal\['redispy', 'coredis', 'valkey'\] = 'coredis', key_prefix: str = PREFIX, \*\*options: float | str | bool) -> None; now def \_\_init\_\_(self, uri: str... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.aio.storage.Storage.incr`  

Was async def incr(self, key: str, expiry: int, elastic_expiry: bool = False, amount: int = 1) -> int; now async def incr(self, key: str, expiry: int, amount: int = 1) -> int. [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.storage.MemcachedStorage.incr`  

Was def incr(self, key: str, expiry: float, elastic_expiry: bool = False, amount: int = 1, set_expiration_key: bool = True) -> int; now def incr(self, key: str, expiry: float, amount: int = 1, set_expiration_key: bool = True) -> int. [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.storage.MemoryStorage.incr`  

Was def incr(self, key: str, expiry: float, elastic_expiry: bool = False, amount: int = 1) -> int; now def incr(self, key: str, expiry: float, amount: int = 1) -> int. [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.storage.RedisClusterStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, key_prefix: str = RedisStorage.PREFIX, wrap_exceptions: bool = False, \*\*options: float | str | bool) -> None; now def \_\_init\_\_(self, uri: str, wrap_exceptions: bool = False, \*\*options: float | str | bool)... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.storage.RedisSentinelStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, service_name: str | None = None, use_replicas: bool = True, sentinel_kwargs: dict\[str, float | str | bool\] | None = None, key_prefix: str = RedisStorage.PREFIX, wrap_exceptions: bool = False, \*\*options... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.storage.RedisStorage.__init__`  

Was def \_\_init\_\_(self, uri: str, connection_pool: redis.connection.ConnectionPool | None = None, key_prefix: str = PREFIX, wrap_exceptions: bool = False, \*\*options: float | str | bool) -> None; now def \_\_init\_\_(self, uri: str... [pypi.org](https://pypi.org/project/limits/5.0.0/)
- **Signature changed** `limits.storage.Storage.incr`  

Was def incr(self, key: str, expiry: int, elastic_expiry: bool = False, amount: int = 1) -> int; now def incr(self, key: str, expiry: int, amount: int = 1) -> int. [pypi.org](https://pypi.org/project/limits/5.0.0/)

## limits 5.0.0rc2 breaking changes

limits 5.0.0rc2, released April 16, 2025: 1 breaking change.

- **Removed** `memcached`  

Memcached servers older than 1.5 are no longer supported. Upgrade the memcached server before using this release. [github.com](https://github.com/alisaifee/limits/releases/tag/5.0.0rc2)

## limits 5.0.0rc1 breaking changes

limits 5.0.0rc1, released April 16, 2025: 2 breaking changes.

- **Removed** `etcd`  

etcd is no longer supported as a storage backend. Code that uses etcd must move to a supported backend. [github.com](https://github.com/alisaifee/limits/releases/tag/5.0.0rc1)
- **Removed** `Fixed Window with Elastic Expiry`  

The Fixed Window with Elastic Expiry strategy is no longer supported. Code that uses it must switch to another strategy. [github.com](https://github.com/alisaifee/limits/releases/tag/5.0.0rc1)

## limits 4.0.0 breaking changes

limits 4.0.0, released January 5, 2025: 6 breaking changes.

- **Behavior changed** `get_window_stats`  

The reset_time returned by get_window_stats is now a precise floating point value rather than being truncated to the previous second. Code relying on whole-second reset times must be updated. [github.com](https://github.com/alisaifee/limits/releases/tag/4.0.0)
- **Signature changed** `limits.aio.storage.MovingWindowSupport.get_moving_window`  

Was async def get_moving_window(self, key: str, limit: int, expiry: int) -> Tuple\[int, int\]; now async def get_moving_window(self, key: str, limit: int, expiry: int) -> Tuple\[float, int\]. [pypi.org](https://pypi.org/project/limits/4.0.0/)
- **Signature changed** `limits.aio.storage.Storage.get_expiry`  

Was async def get_expiry(self, key: str) -> int; now async def get_expiry(self, key: str) -> float. [pypi.org](https://pypi.org/project/limits/4.0.0/)
- **Signature changed** `limits.storage.MovingWindowSupport.get_moving_window`  

Was def get_moving_window(self, key: str, limit: int, expiry: int) -> Tuple\[int, int\]; now def get_moving_window(self, key: str, limit: int, expiry: int) -> Tuple\[float, int\]. [pypi.org](https://pypi.org/project/limits/4.0.0/)
- **Signature changed** `limits.storage.Storage.get_expiry`  

Was def get_expiry(self, key: str) -> int; now def get_expiry(self, key: str) -> float. [pypi.org](https://pypi.org/project/limits/4.0.0/)
- **Signature changed** `limits.WindowStats.reset_time`  

Was reset_time: int; now reset_time: float. [pypi.org](https://pypi.org/project/limits/4.0.0/)

## limits 3.0.0 breaking changes

limits 3.0.0, released January 5, 2023: 4 breaking changes.

- **Removed**  

The deprecated GAE Memcached storage was removed in 3.0.0. Code that uses it must move to another storage backend. [github.com](https://github.com/alisaifee/limits/releases/tag/3.0.0)
- **Removed** `limits.storage.gae_memcached`  

limits.storage.gae_memcached was removed in limits 3.0.0 [pypi.org](https://pypi.org/project/limits/3.0.0/)
- **Removed** `limits.storage.GAEMemcachedStorage`  

limits.storage.GAEMemcachedStorage was removed in limits 3.0.0 [pypi.org](https://pypi.org/project/limits/3.0.0/)
- **Configuration changed**  

The minimum versions of the MongoDB dependencies were updated. Environments with older versions may need upgrading. [github.com](https://github.com/alisaifee/limits/releases/tag/3.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
