pyam icon indicating copy to clipboard operation
pyam copied to clipboard

Add option to authenticate via proxies and with verification cerificates

Open LucaMingarelli opened this issue 11 months ago • 2 comments

It is currently not possible to pass proxies and verify parameters upon connection. This imposes substantial restrictions to data access for users working in institutions under proxies.

It would be an easy change amounting to including default parameters proxies=None and verify=True to a number of functions such as

  • All calls to requests
  • pyam.iiasa.Connection so that this can be called e.g. as conn = pyam.iiasa.Connection(proxies=PROXIES['https'], verify=where())
  • pyam.read_iiasa
  • etc

Would you kindly be able to push a new version accounting for this?

LucaMingarelli avatar Aug 03 '23 13:08 LucaMingarelli

I believe PRs are welcome so feel free to contribute the changes needed and ask for a review

znicholls avatar Aug 03 '23 16:08 znicholls

Thanks @LucaMingarelli - we don't have the capacity to implement and thoroughly test such a feature extension ourselves, but happy to review if you can start a PR.

danielhuppmann avatar Aug 07 '23 07:08 danielhuppmann