influxdb3-python 0.3.2__tar.gz → 0.3.4__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.3.2 → influxdb3-python-0.3.4}/PKG-INFO +11 -1
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/README.md +10 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb3_python.egg-info/PKG-INFO +11 -1
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/read_file.py +5 -7
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/write/dataframe_serializer.py +3 -1
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/LICENSE +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb3_python.egg-info/SOURCES.txt +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb3_python.egg-info/dependency_links.txt +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb3_python.egg-info/requires.txt +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb3_python.egg-info/top_level.txt +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/_sync/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/_sync/api_client.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/_sync/rest.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/_base.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/exceptions.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/influxdb_client.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/logging_handler.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/util/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/util/date_utils.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/util/date_utils_pandas.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/util/helpers.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/util/multiprocessing_helper.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/warnings.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/write/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/write/point.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/write/retry.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/write_api.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/configuration.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/domain/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/domain/write_precision.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/extras.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/rest.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/service/__init__.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/service/_base_service.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/service/signin_service.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/service/signout_service.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/service/write_service.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/version.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/setup.cfg +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/setup.py +0 -0
- {influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/tests/test_influxdb_client_3.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: influxdb3-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Community Python client for InfluxDB 3.0
|
|
5
5
|
Home-page: https://github.com/InfluxCommunity/influxdb3-python
|
|
6
6
|
Author: InfluxData
|
|
@@ -158,6 +158,16 @@ with InfluxDBClient3.InfluxDBClient3(
|
|
|
158
158
|
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
+
### Pandas DF
|
|
162
|
+
```python
|
|
163
|
+
client._write_api.write(bucket="pokemon-codex", record=pd_df, data_frame_measurement_name='caught', data_frame_tag_columns=['trainer', 'id', 'num'], data_frame_timestamp_column='timestamp')
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Polars DF
|
|
167
|
+
```python
|
|
168
|
+
client._write_api.write(bucket="pokemon-codex", record=pl_df, data_frame_measurement_name='caught', data_frame_tag_columns=['trainer', 'id', 'num'], data_frame_timestamp_column='timestamp')
|
|
169
|
+
```
|
|
170
|
+
|
|
161
171
|
## Querying
|
|
162
172
|
|
|
163
173
|
### Querying with SQL
|
|
@@ -131,6 +131,16 @@ with InfluxDBClient3.InfluxDBClient3(
|
|
|
131
131
|
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
+
### Pandas DF
|
|
135
|
+
```python
|
|
136
|
+
client._write_api.write(bucket="pokemon-codex", record=pd_df, data_frame_measurement_name='caught', data_frame_tag_columns=['trainer', 'id', 'num'], data_frame_timestamp_column='timestamp')
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Polars DF
|
|
140
|
+
```python
|
|
141
|
+
client._write_api.write(bucket="pokemon-codex", record=pl_df, data_frame_measurement_name='caught', data_frame_tag_columns=['trainer', 'id', 'num'], data_frame_timestamp_column='timestamp')
|
|
142
|
+
```
|
|
143
|
+
|
|
134
144
|
## Querying
|
|
135
145
|
|
|
136
146
|
### Querying with SQL
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: influxdb3-python
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Community Python client for InfluxDB 3.0
|
|
5
5
|
Home-page: https://github.com/InfluxCommunity/influxdb3-python
|
|
6
6
|
Author: InfluxData
|
|
@@ -158,6 +158,16 @@ with InfluxDBClient3.InfluxDBClient3(
|
|
|
158
158
|
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
+
### Pandas DF
|
|
162
|
+
```python
|
|
163
|
+
client._write_api.write(bucket="pokemon-codex", record=pd_df, data_frame_measurement_name='caught', data_frame_tag_columns=['trainer', 'id', 'num'], data_frame_timestamp_column='timestamp')
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Polars DF
|
|
167
|
+
```python
|
|
168
|
+
client._write_api.write(bucket="pokemon-codex", record=pl_df, data_frame_measurement_name='caught', data_frame_tag_columns=['trainer', 'id', 'num'], data_frame_timestamp_column='timestamp')
|
|
169
|
+
```
|
|
170
|
+
|
|
161
171
|
## Querying
|
|
162
172
|
|
|
163
173
|
### Querying with SQL
|
|
@@ -3,13 +3,6 @@ import pyarrow.csv as csv
|
|
|
3
3
|
import pyarrow.feather as feather
|
|
4
4
|
import pyarrow.parquet as parquet
|
|
5
5
|
|
|
6
|
-
try:
|
|
7
|
-
import pandas as pd
|
|
8
|
-
except ImportError:
|
|
9
|
-
raise ImportError("Pandas is required for write_file(). Please install it using 'pip install pandas' or 'pip install influxdb3-python[pandas]'")
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
6
|
# Check if the OS is not Windows
|
|
14
7
|
if os.name != 'nt':
|
|
15
8
|
import pyarrow.orc as orc
|
|
@@ -103,4 +96,9 @@ class UploadFile:
|
|
|
103
96
|
:type file: str
|
|
104
97
|
:return: The loaded JSON file.
|
|
105
98
|
"""
|
|
99
|
+
try:
|
|
100
|
+
import pandas as pd
|
|
101
|
+
except ImportError:
|
|
102
|
+
raise ImportError("Pandas is required for write_file(). Please install it using 'pip install pandas' or 'pip install influxdb3-python[pandas]'")
|
|
103
|
+
|
|
106
104
|
return pd.read_json(file, **self._kwargs)
|
|
@@ -310,6 +310,9 @@ class PolarsDataframeSerializer:
|
|
|
310
310
|
|
|
311
311
|
self.column_indices = {name: index for index, name in enumerate(data_frame.columns)}
|
|
312
312
|
|
|
313
|
+
if self.timestamp_column is None or self.timestamp_column not in self.column_indices:
|
|
314
|
+
raise ValueError(f"Timestamp column {self.timestamp_column} not found in DataFrame. Please define a valid timestamp column.")
|
|
315
|
+
|
|
313
316
|
#
|
|
314
317
|
# prepare chunks
|
|
315
318
|
#
|
|
@@ -373,7 +376,6 @@ class PolarsDataframeSerializer:
|
|
|
373
376
|
df = self.data_frame
|
|
374
377
|
|
|
375
378
|
# Convert timestamp to unix timestamp
|
|
376
|
-
print(self.precision)
|
|
377
379
|
if self.precision is None:
|
|
378
380
|
df = df.with_columns(pl.col(self.timestamp_column).dt.epoch(time_unit="ns").alias(self.timestamp_column))
|
|
379
381
|
elif self.precision == 'ns':
|
|
File without changes
|
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb3_python.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/__init__.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/_sync/__init__.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/_sync/api_client.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/_sync/rest.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/__init__.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/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
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/warnings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/client/write_api.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/configuration.py
RENAMED
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/domain/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{influxdb3-python-0.3.2 → influxdb3-python-0.3.4}/influxdb_client_3/write_client/service/__init__.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
|