aiogoogle
aiogoogle copied to clipboard
support for BatchHttpRequest
Right now BatchHttpRequest is not implemented. The way I plan to do implement it is using the Request.batch_requests
class method in the Request class.
It would look something like this:
resp1, resp2 = await aiogoogle.as_user(
Request.batch_requests(
youtube_v3.videos.search(q="first"),
youtube_v3.videos.search(q="second")
)
)
After implementing the batch_requests functionality, we must make the aiogoogle sessions understand the BatchRequest object that we just created. So, tweaking the send method will be necessary.
Updates:
I'm open to merging pull requests if you're up for the task @kshilov
I ended up creating my own version of async google api that replaces the sync functionality in the core google apis, will close. I've been working to try to open source it, hopefully soon
Cool, let's keep this issue open until we've landed this feature
@omarryhan when can we expect this to be implemented? Since it's more than 3 years already
Hey @sumankn314e I'm currently only maintaining the current features provided and I have no plans to add more features. However, I'd be happy to review your work and merge it in if you're interested in adding this feature