Skip to content

Commit 66ed30e

Browse files
feat: support env
1 parent 70837d2 commit 66ed30e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

influxdb_client_3/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ def file_parser_options(**kwargs):
4949
"""
5050
return kwargs
5151

52+
5253
# Constants for environment variable names
5354
INFLUX_HOST = "INFLUX_HOST"
5455
INFLUX_TOKEN = "INFLUX_TOKEN"
5556
INFLUX_DATABASE = "INFLUX_DATABASE"
5657
INFLUX_ORG = "INFLUX_ORG"
58+
59+
5760
def from_env(**kwargs: Any) -> 'InfluxDBClient3':
5861
"""
5962
Create an instance of `InfluxDBClient3` using environment variables for configuration.
@@ -97,7 +100,6 @@ def from_env(**kwargs: Any) -> 'InfluxDBClient3':
97100
)
98101

99102

100-
101103
def _deep_merge(target, source):
102104
"""
103105
Performs a deep merge of dictionaries or lists,

0 commit comments

Comments
 (0)