Python SlowAPI
Сообщение 2023-04-12 18:06:14
0
12Кб
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
- Personal Development
- Recreation
- Regional
- Reference
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Личное развитие
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Больше
What is the Future of the Creator Economy?
The Creator Economy has been rapidly growing over the past few years, and it shows no signs of...
Tobacco: A Complex History, Cultural Significance, and Health Impacts
Tobacco is a plant that has shaped human history for...
Органы безопасности Российской империи конца XIX – начала XX вв
Отличительной особенностью развития отечественных органов безопасности на рубеже XIX–XX вв....
How Long Does It Take to Get a Podcast Up and Running?
Introduction: The Podcast Boom and the Time Question
Podcasting has exploded over the past...
Witness for the Prosecution. (1957)
A veteran British barrister must defend his client in a murder trial that has surprise after...