fastai / ghapi

A delightful and complete interface to GitHub's amazing API
https://ghapi.fast.ai/
Apache License 2.0
527 stars 57 forks source link

Async / await support #92

Closed AlexandreODelisle closed 3 months ago

AlexandreODelisle commented 2 years ago

Question,

I haven't seen any support for native aiohttp calls .

Is it something that could be implemented later in time?

Thanks,

dtaivpp commented 2 years ago

@AlexandreODelisle I think it would be really problematic to implement this with how GitHub rate limits. It would probably just be easier to offload the results to a queue on another thread and have some code consume that.

dhirschfeld commented 1 year ago

The lack of async (specifically trio) support has so far stopped me investigating ghapi further.

For managing rate limits aiometer could help: https://github.com/florimondmanca/aiometer