Rate limiting? #26

Closed
bilderbuchi opened this Issue May 17, 2012 · 4 comments

Projects

None yet

2 participants

@bilderbuchi

Hi!

I tried to find a function which returns the number of API requests I have remaining due to rate limiting. Is this somewhere in the library and I can't find it? If not, I think it would be a great feature to have, to be able to keep track of how many requests certain actions use up.

@jacquev6 jacquev6 was assigned May 18, 2012
@jacquev6
PyGithub member

Thank you for your feedback.

I have indeed not yet implemented this feature because I have no real use of it: each API call is more than half a second long, so it's hard to reach the rate limit.

Anyway, it is easy to extract the rate limiting headers, so I will add an attribute to the Github class to give access to their last value.

Expect it in version 1.0. I will set an expected date on the milestone during the week-end.

@bilderbuchi

Ah good point about it being hard to reach. Thanks for implementing it. No hurry, though, it's not that important. :-)

@jacquev6
PyGithub member

Implemented in ca97469. Will be in version 1.0.

@jacquev6 jacquev6 closed this May 21, 2012
@bilderbuchi

Thanks. :-)

@bilderbuchi bilderbuchi added the v1 label Mar 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment