kirbyju / tcia_utils

A package to simplify common tasks one might perform when interacting with The Cancer Imaging Archive (TCIA) via Python.
Apache License 2.0
14 stars 4 forks source link

Please add proxy support #19

Open stefanches7 opened 4 months ago

stefanches7 commented 4 months ago

The easy customization of the requests API parameters worked well for my setup

stefanches7 commented 4 months ago

As an intermittent solution one can modify environment variables too:

On linux you can also do this via the HTTP_PROXY, HTTPS_PROXY, and FTP_PROXY environment variables:

export HTTP_PROXY=10.10.1.10:3128
export HTTPS_PROXY=10.10.1.11:1080
export FTP_PROXY=10.10.1.10:3128
On Windows:

set http_proxy=10.10.1.10:3128
set https_proxy=10.10.1.11:1080
set ftp_proxy=10.10.1.10:3128

Source: https://stackoverflow.com/questions/8287628/proxies-with-python-requests-module

kirbyju commented 4 months ago

Thanks for this suggestion. Any chance you'd be up for submitting a PR? :-)