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

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne