Python SlowAPI
Сообщение 2023-04-12 18:06:14
0
11Кб
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
Больше
Телохранитель. Yojimbo. (1961)
В некий японский городок приходит самурай. Самурай выглядит совершенно не по-самурайски: плохо...
What are newbies afraid of in tabletop RPGs?
Let's start breaking down the fun
I'm willing to bet you've definitely heard of tabletop...
Top 10 economies in terms of GDP by 2038
Top 10 economies in terms of GDP by 2038
In 2024, global...
How Do I Stay Motivated to Stick to My Budget?
How Do I Stay Motivated to Stick to My Budget?
Creating a budget is one thing — sticking...
Typical Interview Questions in Management Science: What to Expect and How to Prepare
Interviewing for a role in Management Science—whether in analytics, operations research, or...