Rate limiting? #26

bilderbuchi opened this Issue May 17, 2012 · 4 comments


None yet

2 participants



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
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.


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

PyGithub member

Implemented in ca97469. Will be in version 1.0.

@jacquev6 jacquev6 closed this May 21, 2012

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