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

Add proxy param to EnergyQuantified and RealtoConnection #56

Closed fredriksvendsen closed 1 year ago

fredriksvendsen commented 1 year ago

Proxies can be set in the session object of EQ and realto.

fredriksvendsen commented 1 year ago
fredriksvendsen commented 1 year ago

From: https://requests.readthedocs.io/en/latest/user/advanced/

Setting session.proxies may behave differently than expected. Values provided will be overwritten by environmental proxies (those returned by urllib.request.getproxies). To ensure the use of proxies in the presence of environmental proxies, explicitly specify the proxies argument on all individual requests as initially explained above.