s
Feb. 20, 2024, 1:15 a.m. |

Simon Willison's Weblog simonwillison.net

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.

api async asyncio design every found library python rate set

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York