Ratelimit (PY)
Getting Started
Install
Create database
To be able to use upstash-ratelimit, you need to create a database on Upstash.
Usage
For possible Redis client configurations, have a look at the Redis SDK repository.
This library supports asyncio as well. To use it, import the asyncio-based variant from the
upstash_ratelimit.asyncio
module.
The limit
method also returns the following metadata: