@@ -189,7 +189,7 @@ def _parse_timeout(to: str) -> int:
189189class InfluxDBClient3 :
190190 def __init__ (
191191 self ,
192- host = None ,
192+ host = 'localhost' ,
193193 org = None ,
194194 database = None ,
195195 token = None ,
@@ -219,6 +219,10 @@ def __init__(
219219 :type flight_client_options: dict[str, any]
220220 :param disable_grpc_compression: Disable gRPC compression for Flight query responses. Default is False.
221221 :type disable_grpc_compression: bool
222+ :param enable_gzip: Enable GZIP compression for write requests.
223+ :type enable_gzip: bool
224+ :param gzip_threshold: Minimum payload size (bytes) to trigger GZIP when enable_gzip is True.
225+ :type gzip_threshold: int
222226 :key auth_scheme: token authentication scheme. Set to "Bearer" for Edge.
223227 :key bool verify_ssl: Set this to false to skip verifying SSL certificate when calling API from https server.
224228 :key str ssl_ca_cert: Set this to customize the certificate file to verify the peer.
@@ -236,8 +240,6 @@ def __init__(
236240 :key urllib3.util.retry.Retry retries: Set the default retry strategy that is used for all HTTP requests
237241 except batching writes. As a default there is no one retry strategy.
238242 :key str query_timeout: int value used to set the client query API timeout in milliseconds.
239- :key str enable_gzip: TODO comment ???
240- :key str gzip_threshold: TODO comment ???
241243 :key str write_timeout: int value used to set the client write API timeout in milliseconds.
242244 :key bool write_accept_partial: allow partial writes when some lines fail.
243245 :key bool write_use_v2_api: route writes through /api/v2/write compatibility endpoint.
0 commit comments