python-databases 2.1.0__py3-none-any.whl → 2.2.0__py3-none-any.whl

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.
@@ -6,7 +6,6 @@ from datetime import UTC, datetime
6
6
  from enum import Enum
7
7
  from typing import Any
8
8
 
9
- import pandas as pd
10
9
  from custom_python_logger import get_logger
11
10
  from elasticsearch import Elasticsearch, helpers
12
11
  from retrying import retry
@@ -212,19 +211,6 @@ class ElasticSearch(ABC):
212
211
  except Exception as e:
213
212
  raise Exception(f"Failed to get documents from index '{index}': {str(e)}") from e
214
213
 
215
- def convert_dataframes_to_list_of_docs(
216
- self,
217
- dataframe: pd.DataFrame,
218
- log_progress: bool = False,
219
- ) -> list:
220
- data = []
221
- dataframe_values = dataframe.values.tolist()
222
- for index, value in enumerate(dataframe_values):
223
- if log_progress:
224
- self.logger.debug(f"index: {index}/{len(dataframe_values)}")
225
- data.append(value)
226
- return data
227
-
228
214
 
229
215
  class ElasticSearchOnPrem(ElasticSearch):
230
216
  def __init__(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-databases
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: A Python library for managing and interacting with multiple databases seamlessly.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -18,7 +18,6 @@ Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: custom-python-logger>=4.2.0
20
20
  Requires-Dist: elasticsearch<9,>=8.19.3
21
- Requires-Dist: pandas>=3.1.1
22
21
  Requires-Dist: psycopg2-binary>=2.9.13
23
22
  Requires-Dist: python-dotenv>=1.2.4
24
23
  Requires-Dist: retrying>=1.4.2
@@ -2,12 +2,12 @@ python_databases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
2
2
  python_databases/consts.py,sha256=ADn3PmhTXKBobtiVgDR4Tqq2Ncn_FTK0WjgREOLdBPs,33
3
3
  python_databases/elasticsearch_infrastructure/__init__.py,sha256=U1orkPi0Pg-1rtY1CPSF4-eVRfrMr36qpT9VNKjBUw4,297
4
4
  python_databases/elasticsearch_infrastructure/consts.py,sha256=MBZL90yjYUmipayzj65-XEBS-4qTRhClGatnEwy7OfA,98
5
- python_databases/elasticsearch_infrastructure/elasticsearch.py,sha256=Hcqj7SPN4Ct7coUBTAcKnXikiu9fDuzrqPy0-RIg3vE,10961
5
+ python_databases/elasticsearch_infrastructure/elasticsearch.py,sha256=qApNFrB5U2NlEcHHE-ePiAWBckiG0cD2IA9bMYcvx-s,10513
6
6
  python_databases/postgresql_infrastructure/__init__.py,sha256=yBjq7SLnNgnxW0DCQHEwCi_FrCNtjsJGJXIq7XtkUZg,150
7
7
  python_databases/postgresql_infrastructure/consts.py,sha256=1GPwiyRMyQJOgdz2np0H12cr9GrP9p3aR6APCli2Hs8,102
8
8
  python_databases/postgresql_infrastructure/postgresql.py,sha256=tFdQr5IOPYbuqKE3r9oqSoNoGMbED5NSEy1anrUNEyY,3105
9
- python_databases-2.1.0.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
10
- python_databases-2.1.0.dist-info/METADATA,sha256=Tx_1RHTwmi9jXihiJYEn0e-vcKD2YwNbs6-78TYApns,2347
11
- python_databases-2.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
12
- python_databases-2.1.0.dist-info/top_level.txt,sha256=fXcMUntaYJfKeFS7FjQ6DY4WVXYBsgdrDmhOudYs-vg,17
13
- python_databases-2.1.0.dist-info/RECORD,,
9
+ python_databases-2.2.0.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
10
+ python_databases-2.2.0.dist-info/METADATA,sha256=ZuO-_JRrq1qMpW6VT8G0ll2AFm026IVkDUEu8Wf6L94,2318
11
+ python_databases-2.2.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
12
+ python_databases-2.2.0.dist-info/top_level.txt,sha256=fXcMUntaYJfKeFS7FjQ6DY4WVXYBsgdrDmhOudYs-vg,17
13
+ python_databases-2.2.0.dist-info/RECORD,,