influxdb3-python 0.3.3__tar.gz → 0.3.5__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.
Files changed (44) hide show
  1. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/PKG-INFO +8 -4
  2. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb3_python.egg-info/PKG-INFO +8 -4
  3. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb3_python.egg-info/requires.txt +8 -1
  4. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/read_file.py +5 -7
  5. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/write/dataframe_serializer.py +1 -1
  6. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/setup.py +3 -4
  7. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/LICENSE +0 -0
  8. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/README.md +0 -0
  9. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb3_python.egg-info/SOURCES.txt +0 -0
  10. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb3_python.egg-info/dependency_links.txt +0 -0
  11. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb3_python.egg-info/top_level.txt +0 -0
  12. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/__init__.py +0 -0
  13. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/__init__.py +0 -0
  14. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/_sync/__init__.py +0 -0
  15. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/_sync/api_client.py +0 -0
  16. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/_sync/rest.py +0 -0
  17. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/__init__.py +0 -0
  18. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/_base.py +0 -0
  19. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/exceptions.py +0 -0
  20. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/influxdb_client.py +0 -0
  21. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/logging_handler.py +0 -0
  22. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/util/__init__.py +0 -0
  23. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/util/date_utils.py +0 -0
  24. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/util/date_utils_pandas.py +0 -0
  25. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/util/helpers.py +0 -0
  26. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/util/multiprocessing_helper.py +0 -0
  27. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/warnings.py +0 -0
  28. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/write/__init__.py +0 -0
  29. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/write/point.py +0 -0
  30. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/write/retry.py +0 -0
  31. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/client/write_api.py +0 -0
  32. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/configuration.py +0 -0
  33. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/domain/__init__.py +0 -0
  34. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/domain/write_precision.py +0 -0
  35. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/extras.py +0 -0
  36. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/rest.py +0 -0
  37. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/service/__init__.py +0 -0
  38. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/service/_base_service.py +0 -0
  39. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/service/signin_service.py +0 -0
  40. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/service/signout_service.py +0 -0
  41. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/service/write_service.py +0 -0
  42. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/influxdb_client_3/write_client/version.py +0 -0
  43. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/setup.cfg +0 -0
  44. {influxdb3-python-0.3.3 → influxdb3-python-0.3.5}/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
3
+ Version: 0.3.5
4
4
  Summary: Community Python client for InfluxDB 3.0
5
5
  Home-page: https://github.com/InfluxCommunity/influxdb3-python
6
6
  Author: InfluxData
@@ -8,12 +8,11 @@ Author-email: contact@influxdata.com
8
8
  Classifier: Development Status :: 4 - Beta
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.6
13
11
  Classifier: Programming Language :: Python :: 3.7
14
12
  Classifier: Programming Language :: Python :: 3.8
15
13
  Classifier: Programming Language :: Python :: 3.9
16
14
  Classifier: Programming Language :: Python :: 3.10
15
+ Requires-Python: >=3.7
17
16
  Description-Content-Type: text/markdown
18
17
  License-File: LICENSE
19
18
  Requires-Dist: reactivex>=4.0.4
@@ -21,9 +20,14 @@ Requires-Dist: certifi>=14.05.14
21
20
  Requires-Dist: python_dateutil>=2.5.3
22
21
  Requires-Dist: setuptools>=21.0.0
23
22
  Requires-Dist: urllib3>=1.26.0
24
- Requires-Dist: pyarrow
23
+ Requires-Dist: pyarrow>=8.0.0
25
24
  Provides-Extra: pandas
26
25
  Requires-Dist: pandas; extra == "pandas"
26
+ Provides-Extra: polars
27
+ Requires-Dist: polars; extra == "polars"
28
+ Provides-Extra: dataframe
29
+ Requires-Dist: pandas; extra == "dataframe"
30
+ Requires-Dist: polars; extra == "dataframe"
27
31
 
28
32
  <p align="center">
29
33
  <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
1
  Metadata-Version: 2.1
2
2
  Name: influxdb3-python
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary: Community Python client for InfluxDB 3.0
5
5
  Home-page: https://github.com/InfluxCommunity/influxdb3-python
6
6
  Author: InfluxData
@@ -8,12 +8,11 @@ Author-email: contact@influxdata.com
8
8
  Classifier: Development Status :: 4 - Beta
9
9
  Classifier: Intended Audience :: Developers
10
10
  Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.6
13
11
  Classifier: Programming Language :: Python :: 3.7
14
12
  Classifier: Programming Language :: Python :: 3.8
15
13
  Classifier: Programming Language :: Python :: 3.9
16
14
  Classifier: Programming Language :: Python :: 3.10
15
+ Requires-Python: >=3.7
17
16
  Description-Content-Type: text/markdown
18
17
  License-File: LICENSE
19
18
  Requires-Dist: reactivex>=4.0.4
@@ -21,9 +20,14 @@ Requires-Dist: certifi>=14.05.14
21
20
  Requires-Dist: python_dateutil>=2.5.3
22
21
  Requires-Dist: setuptools>=21.0.0
23
22
  Requires-Dist: urllib3>=1.26.0
24
- Requires-Dist: pyarrow
23
+ Requires-Dist: pyarrow>=8.0.0
25
24
  Provides-Extra: pandas
26
25
  Requires-Dist: pandas; extra == "pandas"
26
+ Provides-Extra: polars
27
+ Requires-Dist: polars; extra == "polars"
28
+ Provides-Extra: dataframe
29
+ Requires-Dist: pandas; extra == "dataframe"
30
+ Requires-Dist: polars; extra == "dataframe"
27
31
 
28
32
  <p align="center">
29
33
  <img src="https://github.com/InfluxCommunity/influxdb3-python/blob/main/python-logo.png?raw=true" alt="Your Image" width="150px">
@@ -3,7 +3,14 @@ certifi>=14.05.14
3
3
  python_dateutil>=2.5.3
4
4
  setuptools>=21.0.0
5
5
  urllib3>=1.26.0
6
- pyarrow
6
+ pyarrow>=8.0.0
7
+
8
+ [dataframe]
9
+ pandas
10
+ polars
7
11
 
8
12
  [pandas]
9
13
  pandas
14
+
15
+ [polars]
16
+ polars
@@ -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,7 +310,7 @@ 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 not None or self.timestamp_column not in self.column_indices:
313
+ if self.timestamp_column is None or self.timestamp_column not in self.column_indices:
314
314
  raise ValueError(f"Timestamp column {self.timestamp_column} not found in DataFrame. Please define a valid timestamp column.")
315
315
 
316
316
  #
@@ -9,7 +9,7 @@ requires = [
9
9
  'python_dateutil >= 2.5.3',
10
10
  'setuptools >= 21.0.0',
11
11
  'urllib3 >= 1.26.0',
12
- 'pyarrow'
12
+ 'pyarrow >= 8.0.0'
13
13
  ]
14
14
 
15
15
  with open("./README.md", "r", encoding="utf-8") as fh:
@@ -45,14 +45,13 @@ setup(
45
45
  author_email='contact@influxdata.com',
46
46
  url='https://github.com/InfluxCommunity/influxdb3-python',
47
47
  packages=find_packages(exclude=['tests', 'tests.*', 'examples', 'examples.*']),
48
- extras_require={'pandas': ['pandas']},
48
+ extras_require={'pandas': ['pandas'], 'polars': ['polars'], 'dataframe': ['pandas', 'polars']},
49
49
  install_requires=requires,
50
+ python_requires='>=3.7',
50
51
  classifiers=[
51
52
  'Development Status :: 4 - Beta',
52
53
  'Intended Audience :: Developers',
53
54
  'License :: OSI Approved :: MIT License',
54
- 'Programming Language :: Python :: 3',
55
- 'Programming Language :: Python :: 3.6',
56
55
  'Programming Language :: Python :: 3.7',
57
56
  'Programming Language :: Python :: 3.8',
58
57
  'Programming Language :: Python :: 3.9',