Discussion:
[gevent] Options for Google Cloud services and Gevent
smetj
2018-01-24 09:37:41 UTC
Permalink
Hi Group,

I have a project which uses Gevent and would like to start Google Cloud
services, ....
It seems the default client
(https://github.com/GoogleCloudPlatform/google-cloud-python) is a no-go as
it doesn't work with Gevent.

Are some of you successfully using Google Cloud services in combination
with Gevent?
If so, could you please share some details?

Many thanks,

Js
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Matt Billenstein
2018-01-24 10:03:48 UTC
Permalink
What makes you think this doesn't work with gevent?

It looks to me like it just uses requests under the hood to talk to their http
json api, so if you at least don't share the client object among greenlets,
you're probably ok to use this with gevent and monkey-patching.

m
Post by smetj
Hi Group,
I have a project which uses Gevent and would like to start Google Cloud
services, ....
It seems the default client
(https://github.com/GoogleCloudPlatform/google-cloud-python) is a no-go as
it doesn't work with Gevent.
Are some of you successfully using Google Cloud services in combination
with Gevent?
If so, could you please share some details?
Many thanks,
Js
--
You received this message because you are subscribed to the Google Groups
"gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
Matt Billenstein
***@vazor.com
http://www.vazor.com/
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
smetj
2018-01-24 11:46:34 UTC
Permalink
Post by Matt Billenstein
What makes you think this doesn't work with gevent?
Yeah I should've given some more context there

https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3450
https://github.com/grpc/grpc/issues/4629

It seems coincidentally that the grpc issue got a "promising" update 2 days
ago, ... but the issue is open since Jan 6, 2016 so forgive me for being
skeptical and looking at options.

J.S
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Matt Billenstein
2018-01-24 19:30:31 UTC
Permalink
Post by Matt Billenstein
What makes you think this doesn't work with gevent?
Yeah I should've given some more context there
https://github.com/GoogleCloudPlatform/google-cloud-python/issues/3450A
https://github.com/grpc/grpc/issues/4629
It seems coincidentally that the grpc issue got a "promising" update 2
days ago, ... but the issue is open sinceA Jan 6, 2016 so forgive me for
being skeptical and looking at options.
Gotcha, I had only looked at storage which uses the http api. It appears only
a few of the subsystems use grpc (bigtable, datastore, pubsub, and speech) --
if you avoid those my guess is it would be fine to use gevent. I've used
gevent + requests + google-api-client and that's worked fine.

m
--
Matt Billenstein
***@vazor.com
http://www.vazor.com/
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...