Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asynchronous versions of Google APIs?

Is there any way to queue up document list API requests and handle them asynchronously (similar to the google app engine async urlfetch requests)?

I could conceivably copy/rewrite a lot of the client request modification logic in DocsClient around a urlfetch request, but I'd rather avoid that if there's some other method already available.

The target environment is google app engine, and I'm aware of the async datastore APIs.

EDIT

I've now implemented basic functionality on DocsClient.request to accept a callback kwarg, so any higher-level client request will use async urlfetch and call the callback function with the result of the call.

like image 238
technomage Avatar asked Oct 09 '22 10:10

technomage


1 Answers

To write asynchronous code with google-docs-api and with any google api generally use aiogoogle. For google-docs this documentation will be helpful too.

like image 153
Armen Sanoyan Avatar answered Oct 12 '22 10:10

Armen Sanoyan