algolia / algoliasearch-client-python

⚡️ A fully-featured and blazing-fast Python API client to interact with Algolia.
https://www.algolia.com/doc/api-client/getting-started/install/python/?language=python
MIT License
196 stars 67 forks source link

Feat/support proxy #505

Closed aseure closed 4 years ago

aseure commented 4 years ago
Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue N/A
Need Doc update no

Summary

This commit brings support for user-defined proxy addresses, defined by the HTTP_PROXY or HTTPS_PROXY environment variables, or via the Config.proxies dictionnary of the form:

Config.proxies = {
    'http: 'https://127.0.0.1:8080',
    'https: 'https://127.0.0.1:8080',
}

This works for both the Requester and the RequesterAsync.