Feature request: rate limit #1

Open
conradlee opened this Issue Jun 24, 2011 · 2 comments

Comments

Projects
None yet
2 participants

I sometimes use this library for making API calls to web services. Such APIs often have rate limits, such as one request/second. It would be nice if I could specify this limit for pyparallelcurl. While I can already set the maximum number of simultaneous requests, this is not the same thing as the maximum number of requests started in any given second.

Owner

petewarden commented Jun 24, 2011

That is something that has come up before, I'd like to see it in there too.
I'll see how much work it will be next time I'm working on the code, though
I don't know when that will be. Feel free to send me a patch if you get the
itch to add it too!

On Fri, Jun 24, 2011 at 5:59 AM, conradlee <
reply@reply.github.com>wrote:

I sometimes use this library for making API calls to web services. Such
APIs often have rate limits, such as one request/second. It would be nice
if I could specify this limit for pyparallelcurl. While I can already set
the maximum number of simultaneous requests, this is not the same thing as
the maximum number of requests started in any given second.

Reply to this email directly or view it on GitHub:
#1

I've added a simple rate limiter to the branch located here

https://github.com/conradlee/pyparallelcurl

I don't have much experience with git, and have none with working with other
people on github, so I'm not sure how to properly show you a patch of the
changes that I've made---maybe this is clear to you?

I tested this out a little and it seems to work, but I'll be using it more
in the near future and so I'll let you know if I run into any bugs.

Conrad

On Fri, Jun 24, 2011 at 9:19 PM, petewarden <
reply@reply.github.com>wrote:

That is something that has come up before, I'd like to see it in there too.
I'll see how much work it will be next time I'm working on the code, though
I don't know when that will be. Feel free to send me a patch if you get the
itch to add it too!

On Fri, Jun 24, 2011 at 5:59 AM, conradlee <
reply@reply.github.com>wrote:

I sometimes use this library for making API calls to web services. Such
APIs often have rate limits, such as one request/second. It would be
nice
if I could specify this limit for pyparallelcurl. While I can already
set
the maximum number of simultaneous requests, this is not the same thing
as
the maximum number of requests started in any given second.

Reply to this email directly or view it on GitHub:
#1

Reply to this email directly or view it on GitHub:
#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment