energyquantified / eq-python-client

Python library for Energy Quantified's Time Series API.
https://energyquantified-python.readthedocs.io/
Apache License 2.0
15 stars 2 forks source link

Using proxy with EQ #53

Closed risosoky closed 1 year ago

risosoky commented 1 year ago

Is there any way how to use proxy with EQ?

Thanks for a response.

jonmd commented 1 year ago

In v0.10, released today, you can specify the proxies when initiating EnergyQuantified instance.

See https://energyquantified-python.readthedocs.io/en/latest/userguide/auth.html#proxies for more info.

from energyquantified import EnergyQuantified

eq = EnergyQuantified(api_key='aaaa-bbbb-cccc-dddd', proxies={
    "http": "http://myproxy.goes.here",
    "https": "https://myproxy.goes.here"
})