python-databases 1.2.2__tar.gz → 2.0.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.
Files changed (21) hide show
  1. {python_databases-1.2.2/python_databases.egg-info → python_databases-2.0.0}/PKG-INFO +2 -2
  2. {python_databases-1.2.2 → python_databases-2.0.0}/pyproject.toml +3 -3
  3. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/elasticsearch_infrastructure/elasticsearch.py +1 -1
  4. {python_databases-1.2.2 → python_databases-2.0.0/python_databases.egg-info}/PKG-INFO +2 -2
  5. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases.egg-info/requires.txt +1 -1
  6. {python_databases-1.2.2 → python_databases-2.0.0}/tests/test_elasticsearch.py +1 -1
  7. {python_databases-1.2.2 → python_databases-2.0.0}/LICENSE +0 -0
  8. {python_databases-1.2.2 → python_databases-2.0.0}/MANIFEST.in +0 -0
  9. {python_databases-1.2.2 → python_databases-2.0.0}/README.md +0 -0
  10. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/__init__.py +0 -0
  11. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/consts.py +0 -0
  12. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/elasticsearch_infrastructure/__init__.py +0 -0
  13. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/elasticsearch_infrastructure/consts.py +0 -0
  14. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/postgresql_infrastructure/__init__.py +0 -0
  15. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/postgresql_infrastructure/consts.py +0 -0
  16. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases/postgresql_infrastructure/postgresql.py +0 -0
  17. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases.egg-info/SOURCES.txt +0 -0
  18. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases.egg-info/dependency_links.txt +0 -0
  19. {python_databases-1.2.2 → python_databases-2.0.0}/python_databases.egg-info/top_level.txt +0 -0
  20. {python_databases-1.2.2 → python_databases-2.0.0}/setup.cfg +0 -0
  21. {python_databases-1.2.2 → python_databases-2.0.0}/tests/test_postgres.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-databases
3
- Version: 1.2.2
3
+ Version: 2.0.0
4
4
  Summary: A Python library for managing and interacting with multiple databases seamlessly.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -16,7 +16,7 @@ Classifier: Topic :: System :: Logging
16
16
  Requires-Python: >=3.12
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: custom-python-logger>=4.0.0
19
+ Requires-Dist: custom-python-logger>=4.0.2
20
20
  Requires-Dist: elasticsearch<9
21
21
  Requires-Dist: pandas>=2.3.3
22
22
  Requires-Dist: psycopg2-binary>=2.9.11
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "python-databases"
7
- version = "1.2.2"
7
+ version = "2.0.0"
8
8
  description = "A Python library for managing and interacting with multiple databases seamlessly."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -21,7 +21,7 @@ classifiers = [
21
21
  ]
22
22
 
23
23
  dependencies = [
24
- "custom-python-logger>=4.0.0",
24
+ "custom-python-logger>=4.0.2",
25
25
  "elasticsearch<9",
26
26
  "pandas>=2.3.3",
27
27
  "psycopg2-binary>=2.9.11",
@@ -32,7 +32,7 @@ dependencies = [
32
32
  [dependency-groups]
33
33
  dev = [
34
34
  "pre-commit>=4.6.2",
35
- "pytest>=9.1.1",
35
+ "pytest>=9.0.2",
36
36
  "setuptools>=84.0.0",
37
37
  "wheel>=0.48.0",
38
38
  ]
@@ -107,7 +107,7 @@ class ElasticSearch(ABC):
107
107
  doc.update(
108
108
  {
109
109
  "doc_id": timestamp.strftime("%Y%m%dT%H%M%S%f"),
110
- "timestamp": timestamp,
110
+ "upload_timestamp": timestamp,
111
111
  "date_and_time_str": date_and_time_str,
112
112
  "date_str": date,
113
113
  "time_str": time_part,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-databases
3
- Version: 1.2.2
3
+ Version: 2.0.0
4
4
  Summary: A Python library for managing and interacting with multiple databases seamlessly.
5
5
  Author: Avi Zaguri
6
6
  License: MIT
@@ -16,7 +16,7 @@ Classifier: Topic :: System :: Logging
16
16
  Requires-Python: >=3.12
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: custom-python-logger>=4.0.0
19
+ Requires-Dist: custom-python-logger>=4.0.2
20
20
  Requires-Dist: elasticsearch<9
21
21
  Requires-Dist: pandas>=2.3.3
22
22
  Requires-Dist: psycopg2-binary>=2.9.11
@@ -1,4 +1,4 @@
1
- custom-python-logger>=4.0.0
1
+ custom-python-logger>=4.0.2
2
2
  elasticsearch<9
3
3
  pandas>=2.3.3
4
4
  psycopg2-binary>=2.9.11
@@ -138,7 +138,7 @@ def test_doc_id_is_derived_from_the_timestamp(
138
138
  es.fill_elk_index_as_bulk(data=[{"n": 1}], doc_index_name="idx", chunk_size=100)
139
139
 
140
140
  src = _sent_docs(mock_helpers)[0]["_source"]
141
- ts = src["timestamp"]
141
+ ts = src["upload_timestamp"]
142
142
  assert isinstance(ts, datetime), f"timestamp must be a datetime, got {type(ts)}"
143
143
  assert src["doc_id"] == ts.strftime("%Y%m%dT%H%M%S%f"), "doc_id/timestamp derivation broken"
144
144
  assert src["date_and_time_str"].startswith(src["date_str"]), "date_str is not the date half"