@@ -72,7 +72,7 @@ def __init__(self, url, token: str = None, org: str = None, debug=None, timeout=
7272
7373 from .._async .api_client import ApiClientAsync
7474 self .api_client = ApiClientAsync (configuration = self .conf , header_name = self .auth_header_name ,
75- header_value = self .auth_header_value , retries = self . retries , ** kwargs )
75+ header_value = self .auth_header_value , ** kwargs )
7676
7777 async def __aenter__ (self ) -> 'InfluxDBClientAsync' :
7878 """
@@ -93,10 +93,19 @@ async def close(self):
9393 self .api_client = None
9494
9595 @classmethod
96- def from_config_file (cls , config_file : str = "config.ini" , debug = None , enable_gzip = False ):
96+ def from_config_file (cls , config_file : str = "config.ini" , debug = None , enable_gzip = False , ** kwargs ):
9797 """
9898 Configure client via configuration file. The configuration has to be under 'influx' section.
9999
100+ :param config_file: Path to configuration file
101+ :param debug: Enable verbose logging of http requests
102+ :param enable_gzip: Enable Gzip compression for http requests. Currently, only the "Write" and "Query" endpoints
103+ supports the Gzip compression.
104+ :key str proxy_headers: A dictionary containing headers that will be sent to the proxy. Could be used for proxy
105+ authentication.
106+ :key urllib3.util.retry.Retry retries: Set the default retry strategy that is used for all HTTP requests
107+ except batching writes. As a default there is no one retry strategy.
108+
100109 The supported formats:
101110 - https://docs.python.org/3/library/configparser.html
102111 - https://toml.io/en/
@@ -169,13 +178,22 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz
169178
170179 """
171180 return super (InfluxDBClientAsync , cls )._from_config_file (config_file = config_file , debug = debug ,
172- enable_gzip = enable_gzip )
181+ enable_gzip = enable_gzip , ** kwargs )
173182
174183 @classmethod
175- def from_env_properties (cls , debug = None , enable_gzip = False ):
184+ def from_env_properties (cls , debug = None , enable_gzip = False , ** kwargs ):
176185 """
177186 Configure client via environment properties.
178187
188+ :param debug: Enable verbose logging of http requests
189+ :param enable_gzip: Enable Gzip compression for http requests. Currently, only the "Write" and "Query" endpoints
190+ supports the Gzip compression.
191+ :key str proxy: Set this to configure the http proxy to be used (ex. http://localhost:3128)
192+ :key str proxy_headers: A dictionary containing headers that will be sent to the proxy. Could be used for proxy
193+ authentication.
194+ :key urllib3.util.retry.Retry retries: Set the default retry strategy that is used for all HTTP requests
195+ except batching writes. As a default there is no one retry strategy.
196+
179197 Supported environment properties:
180198 - INFLUXDB_V2_URL
181199 - INFLUXDB_V2_ORG
@@ -188,7 +206,7 @@ def from_env_properties(cls, debug=None, enable_gzip=False):
188206 - INFLUXDB_V2_PROFILERS
189207 - INFLUXDB_V2_TAG
190208 """
191- return super (InfluxDBClientAsync , cls )._from_env_properties (debug = debug , enable_gzip = enable_gzip )
209+ return super (InfluxDBClientAsync , cls )._from_env_properties (debug = debug , enable_gzip = enable_gzip , ** kwargs )
192210
193211 async def ping (self ) -> bool :
194212 """
0 commit comments