Skip to content

Instantly share code, notes, and snippets.

View ndepaola's full-sized avatar
🧹

Nicholas de Paola ndepaola

🧹
View GitHub Profile
@justinvanwinkle
justinvanwinkle / broken.py
Last active July 17, 2024 17:16
Every python rate-limiting library (that I can find) is broken, at least a little.
# I was looking for a rate limiting library to call rate limited apis as closely
# as possible to their enforced limits. I looked at the first few python libraries
# that I found, and when I glanced at the source, they were all clearly broken.
# Curious how this could be, I took all the top google and pip search results for: python rate limiting
# and tried to get them to do the wrong thing and fail to rate limit in situations that could come up
# in normal use (though in some cases very specific use)
# https://github.com/tomasbasham/ratelimit
# Where broken: