{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"}],"enrichment":{"capability":"Ratelim enforces rate limits on function calls by decorating them to restrict execution frequency to a specified number of calls within a time window.","skillfed_tags":["rate-limiting","api-throttling","decorator"],"use_cases":["Throttle API calls to a web service that enforces rate limits on requests per second or minute","Distribute database queries evenly over time to avoid overwhelming a backend service","Limit function execution frequency in web scrapers to respect server policies and avoid IP bans","Enforce call quotas on internal functions to prevent resource exhaustion in multi-threaded applications"],"what_it_does":"Ratelim is a lightweight decorator library that restricts how often a function can be called within a given time interval. It provides two strategies: greedy rate limiting, which delays calls only when necessary, and patient rate limiting, which distributes calls evenly across the time window. The library is designed primarily for API interactions where rate limits are enforced by the service provider.\n\nThe package depends only on decorator and installs as a pure Python wheel with no compiled dependencies. It preserves the decorated function's signature, making it transparent to call. The project has not been updated since 2015-02-27, so it will not receive updates for Python language changes or new best practices.","worth_installing":"Yes, if you need simple rate limiting for legacy Python code or a straightforward API throttling decorator and can tolerate no ongoing maintenance. The low install friction and permissive license make it a minimal risk, but the codebase has not been updated since 2015-02-27, so verify compatibility with your Python version and consider whether a maintained alternative better suits new projects."},"id":"ratelim","links":{"html":"https://skillfed.io/packages/ratelim","md":"https://skillfed.io/packages/ratelim.md","pypi":"https://pypi.org/project/ratelim/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2015-02-27","license_spdx":null,"license_treatment":"permissive","name":"ratelim","python_support":"unspecified","summary":"Makes it easy to respect rate limits."},"popularity":{"monthly_downloads":3124515,"position":2739,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.1.6"}
