influxdb3-python 0.10.0__tar.gz → 0.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {influxdb3_python-0.10.0/influxdb3_python.egg-info → influxdb3_python-0.11.0}/PKG-INFO +12 -2
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0/influxdb3_python.egg-info}/PKG-INFO +12 -2
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/__init__.py +3 -2
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/query/query_api.py +5 -1
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/version.py +1 -1
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_query.py +14 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/batching_example.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/cloud_dedicated_query.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/cloud_dedicated_write.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/config.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/flight_options_example.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/handle_http_error.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/pandas_write.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/Examples/query_type.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/LICENSE +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/README.md +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb3_python.egg-info/SOURCES.txt +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb3_python.egg-info/dependency_links.txt +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb3_python.egg-info/requires.txt +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb3_python.egg-info/top_level.txt +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/py.typed +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/query/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/read_file.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/_sync/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/_sync/api_client.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/_sync/rest.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/_base.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/exceptions.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/influxdb_client.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/logging_handler.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/util/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/util/date_utils.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/util/date_utils_pandas.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/util/helpers.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/util/multiprocessing_helper.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/warnings.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/write/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/write/dataframe_serializer.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/write/point.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/write/polars_dataframe_serializer.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/write/retry.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/write_api.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/configuration.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/domain/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/domain/write_precision.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/extras.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/rest.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/service/__init__.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/service/_base_service.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/service/signin_service.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/service/signout_service.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/service/write_service.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/setup.cfg +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/setup.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_api_client.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_dataframe_serializer.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_date_helper.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_deep_merge.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_influxdb_client_3.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_influxdb_client_3_integration.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_merge_options.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_point.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_polars.py +0 -0
- {influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_write_file.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: influxdb3-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: Community Python client for InfluxDB 3.0
|
|
5
5
|
Home-page: https://github.com/InfluxCommunity/influxdb3-python
|
|
6
6
|
Author: InfluxData
|
|
@@ -33,6 +33,16 @@ Requires-Dist: polars; extra == "dataframe"
|
|
|
33
33
|
Provides-Extra: test
|
|
34
34
|
Requires-Dist: pytest; extra == "test"
|
|
35
35
|
Requires-Dist: pytest-cov; extra == "test"
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: provides-extra
|
|
43
|
+
Dynamic: requires-dist
|
|
44
|
+
Dynamic: requires-python
|
|
45
|
+
Dynamic: summary
|
|
36
46
|
|
|
37
47
|
<p align="center">
|
|
38
48
|
<img src="https://github.com/InfluxCommunity/influxdb3-python/blob/main/python-logo.png?raw=true" alt="Your Image" width="150px">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: influxdb3-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: Community Python client for InfluxDB 3.0
|
|
5
5
|
Home-page: https://github.com/InfluxCommunity/influxdb3-python
|
|
6
6
|
Author: InfluxData
|
|
@@ -33,6 +33,16 @@ Requires-Dist: polars; extra == "dataframe"
|
|
|
33
33
|
Provides-Extra: test
|
|
34
34
|
Requires-Dist: pytest; extra == "test"
|
|
35
35
|
Requires-Dist: pytest-cov; extra == "test"
|
|
36
|
+
Dynamic: author
|
|
37
|
+
Dynamic: author-email
|
|
38
|
+
Dynamic: classifier
|
|
39
|
+
Dynamic: description
|
|
40
|
+
Dynamic: description-content-type
|
|
41
|
+
Dynamic: home-page
|
|
42
|
+
Dynamic: provides-extra
|
|
43
|
+
Dynamic: requires-dist
|
|
44
|
+
Dynamic: requires-python
|
|
45
|
+
Dynamic: summary
|
|
36
46
|
|
|
37
47
|
<p align="center">
|
|
38
48
|
<img src="https://github.com/InfluxCommunity/influxdb3-python/blob/main/python-logo.png?raw=true" alt="Your Image" width="150px">
|
|
@@ -121,7 +121,7 @@ class InfluxDBClient3:
|
|
|
121
121
|
possible.
|
|
122
122
|
:key str proxy: Set this to configure the http proxy to be used (ex. http://localhost:3128)
|
|
123
123
|
:key str proxy_headers: A dictionary containing headers that will be sent to the proxy. Could be used for proxy
|
|
124
|
-
authentication.
|
|
124
|
+
authentication. (Applies to Write API only)
|
|
125
125
|
:key int connection_pool_maxsize: Number of connections to save that can be reused by urllib3.
|
|
126
126
|
Defaults to "multiprocessing.cpu_count() * 5".
|
|
127
127
|
:key urllib3.util.retry.Retry retries: Set the default retry strategy that is used for all HTTP requests
|
|
@@ -166,7 +166,8 @@ class InfluxDBClient3:
|
|
|
166
166
|
else:
|
|
167
167
|
connection_string = f"grpc+tcp://{hostname}:{port}"
|
|
168
168
|
self._query_api = _QueryApi(connection_string=connection_string, token=token,
|
|
169
|
-
flight_client_options=flight_client_options
|
|
169
|
+
flight_client_options=flight_client_options,
|
|
170
|
+
proxy=kwargs.get("proxy", None))
|
|
170
171
|
|
|
171
172
|
def write(self, record=None, database=None, **kwargs):
|
|
172
173
|
"""
|
|
@@ -25,7 +25,8 @@ class QueryApi(object):
|
|
|
25
25
|
def __init__(self,
|
|
26
26
|
connection_string,
|
|
27
27
|
token,
|
|
28
|
-
flight_client_options
|
|
28
|
+
flight_client_options,
|
|
29
|
+
proxy=None) -> None:
|
|
29
30
|
"""
|
|
30
31
|
Initialize defaults.
|
|
31
32
|
|
|
@@ -35,9 +36,12 @@ class QueryApi(object):
|
|
|
35
36
|
"""
|
|
36
37
|
self._token = token
|
|
37
38
|
self._flight_client_options = flight_client_options or {}
|
|
39
|
+
self._proxy = proxy
|
|
38
40
|
self._flight_client_options["generic_options"] = [
|
|
39
41
|
("grpc.secondary_user_agent", USER_AGENT)
|
|
40
42
|
]
|
|
43
|
+
if self._proxy:
|
|
44
|
+
self._flight_client_options["generic_options"].append(("grpc.http_proxy", self._proxy))
|
|
41
45
|
self._flight_client = FlightClient(connection_string, **self._flight_client_options)
|
|
42
46
|
|
|
43
47
|
def query(self, query: str, language: str, mode: str, database: str, **kwargs):
|
|
@@ -150,3 +150,17 @@ class TestQuery(unittest.TestCase):
|
|
|
150
150
|
)
|
|
151
151
|
|
|
152
152
|
mock_do_get.assert_called_once_with(expected_ticket, ANY)
|
|
153
|
+
|
|
154
|
+
def test_query_proxy_base_client(self):
|
|
155
|
+
test_proxy = "http://testproxy:5432"
|
|
156
|
+
client = InfluxDBClient3(
|
|
157
|
+
host="http://localhost:8443",
|
|
158
|
+
token="my-token",
|
|
159
|
+
org="my-org",
|
|
160
|
+
database="my-database",
|
|
161
|
+
proxy=test_proxy
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
assert client._query_api._proxy == test_proxy
|
|
165
|
+
assert ('grpc.http_proxy', test_proxy) in\
|
|
166
|
+
client._query_api._flight_client_options.get('generic_options')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb3_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/__init__.py
RENAMED
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/_sync/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/_sync/rest.py
RENAMED
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/client/_base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/influxdb_client_3/write_client/extras.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3_python-0.10.0 → influxdb3_python-0.11.0}/tests/test_influxdb_client_3_integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|