Simon Willison’s Weblog

Subscribe

Items tagged python, async in 2024

Filters: Year: 2024 × python × async × Sorted by date


aiolimiter. I found myself wanting an asyncio rate limiter for Python today—so I could send POSTs to an API endpoint no more than once every 10 seconds. This library worked out really well—it has a very neat design and lets you set up rate limits for things like “no more than 50 items every 10 seconds”, implemented using the leaky bucket algorithm. # 20th February 2024, 1:15 am

Types

Years

Months

Tags