Skip to content

Commit 5eb4cdf

Browse files
author
Wojciech Kocjan
authored
feat: Allow providing proxy option to InfluxDBClient (#177)
1 parent 73e3d0b commit 5eb4cdf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 1.14.0 [unreleased]
22

3+
### Features
4+
1. [#176](https://github.com/influxdata/influxdb-client-python/pull/176): Allow providing proxy option to InfluxDBClient
5+
36
## 1.13.0 [2020-12-04]
47

58
### Features

influxdb_client/client/influxdb_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __init__(self, url, token, debug=None, timeout=10000, enable_gzip=False, org
3434
:param org: organization name (used as a default in query and write API)
3535
:key bool verify_ssl: Set this to false to skip verifying SSL certificate when calling API from https server.
3636
:key str ssl_ca_cert: Set this to customize the certificate file to verify the peer.
37+
:key str proxy: Set this to configure the http proxy to be used (ex. http://localhost:3128)
3738
:key urllib3.util.retry.Retry retries: Set the default retry strategy that is used for all HTTP requests
3839
except batching writes. As a default there is no one retry strategy.
3940
@@ -54,6 +55,7 @@ def __init__(self, url, token, debug=None, timeout=10000, enable_gzip=False, org
5455
conf.debug = debug
5556
conf.verify_ssl = kwargs.get('verify_ssl', True)
5657
conf.ssl_ca_cert = kwargs.get('ssl_ca_cert', None)
58+
conf.proxy = kwargs.get('proxy', None)
5759

5860
auth_token = self.token
5961
auth_header_name = "Authorization"

0 commit comments

Comments
 (0)