gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

Proxy settings without env variables.

Open mitsuo0114 opened this issue 4 years ago • 5 comments

Hi, This is almost same as below issue, but to make title more general, please allow me to create this issue. https://github.com/googleapis/google-cloud-python/issues/5348

When we want to change proxy setting (from internal network) with this library, we need to change global env variables Like export HTTPS_PROXY=http://xx.xx.xx.xx in bash, os.environ["HTTPS_PROXY"]= "http://xx.xx.xx.xx" in python.

That affect to other threads and it is painful for me.

Actually, another python library[1] allows us to use local proxy with configuring httplib2. This doesn't affect to other threads. The maintainers of [1] recommend us to use this google-cloud-python in Readme. But this proxy issue is the one of the biggest issue and we cannot migrate actually.

I hope team enable us to set proxy without changing global data but by passing argument etc. (Actually, I have already communicated Google Cloud Support )

[1] https://github.com/googleapis/google-api-python-client

mitsuo0114 avatar Sep 01 '21 04:09 mitsuo0114