pypi / limits
limits
What changed in limits 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking3 new APIs and options3 performance1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initlimits 58 changes
New APIs and options 3
Storages that support it now allow password to be specified explicitly as a keyword argument.
All Redis cluster storages now allow startup_nodes to be specified explicitly through keyword arguments.
Storages that support it now allow username to be specified explicitly as a keyword argument.
Performance 3
Reduced event-loop load when expiring limits with async in-memory implementations.
Improved performance of moving-window test and get_window_stats operations.
Improved performance of moving-window test and get_window_stats operations, especially for large rate limits.
Behavior and default changes 1
Extras constraints are relaxed for redis versions below 8.
Fixes and other changes 1
Cluster locators in storage URIs now support IPv6 addresses.
limits 41 changes
Breaking changes 1
reset_time now uses a precise floating point value instead of truncating to the previous second.