
The Swiss army knife of Ratelimiting
Introducing Ratethrottle The Swiss Army knife of rate limiting - everything you need in one library. What is RateThrottle? An advanced rate limiting library for Python that goes far beyond basic REST API protection. The problem: Most rate limiting libraries are limited to one framework and only handle basic REST APIs. The solution: RateThrottle supports everything - multiple frameworks, multiple protocols, advanced features - all in one well-tested package. 🌟 Core Features 1. Universal Framework Support Works with all major Python web frameworks: # Flask @app.route ( ' /api ' ) @limiter.limit ( " 100/minute " ) def api (): return { ' data ' : ' value ' } # FastAPI @app.get ( " /api " ) async def api ( _ = Depends ( limiter . limit ( 100 , 60 ))): return { " data " : " value " } # Django @django_ratelimit ( limit = 100 , window = 60 ) def api ( request ): return JsonResponse ({ ' data ' : ' value ' }) 2. Multiple Protocols Beyond REST - WebSocket, gRPC, GraphQL: # WebSocket - limit conn
Continue reading on Dev.to Webdev
Opens in a new tab




