Python SlowAPI
Сообщение 2023-04-12 18:06:14
0
8Кб
SlowAPI is a ratelimiter library for FastAPI and Starlette adapted from flask-limiter. This package is used in various production setups, handling millions of requests per month, and seems to behave as expected. Here is an example of how it can be used:
@limiter.limit("5/minute")
async def myendpoint(request: Request)
pass
Поиск
Категории
- Arts
- Business
- Computers
- Игры
- Health
- Главная
- Kids and Teens
- Деньги
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Больше
Rules of first aid
First aid is the beginning of the treatment of injuries, because it prevents complications such...
Python super()
super() lets you avoid referring to the base class explicitly, which can be nice. But the main...
How do I forecast revenue for a new business?
When starting a new business, forecasting revenue can seem like a daunting task. However, an...
The History of Movies: A Journey Through Time and Technology
The history of movies is a fascinating story of creativity, technological innovation, and...
The Thrilling World of Sports Events: Where Passion and Performance Collide
Sports events are more than just competitions; they are spectacles of human achievement, passion,...