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
Больше
How Do I End a Presentation?
Ending a presentation is just as important as starting one — and in many cases, even more...
The Art and Impact of Graphic Design: Shaping Visual Communication
Graphic design is a powerful tool that shapes how we perceive and interact with the world...
What are the best passive income ideas?
In an era where financial independence is becoming increasingly desirable, passive income has...
The Shining. (1980)
A family heads to an isolated hotel for the winter where a sinister presence influences the...
What is Brexit?
What is Brexit?
Brexit is a term used to describe the United Kingdom’s (UK) decision to...