ipulse-shared-core-ftredge 2.35__py3-none-any.whl → 2.36__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.
- ipulse_shared_core_ftredge/utils_templates_and_schemas.py +3 -5
- {ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/METADATA +1 -1
- {ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/RECORD +6 -6
- {ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/WHEEL +0 -0
- {ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/top_level.txt +0 -0
|
@@ -25,7 +25,7 @@ def create_bigquery_schema_from_json(json_schema):
|
|
|
25
25
|
return schema
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
def update_check_with_schema_template(updates, schema,
|
|
28
|
+
def update_check_with_schema_template(updates, schema, dt_ts_to_str=True, check_max_length=True):
|
|
29
29
|
|
|
30
30
|
"""Ensure Update dict corresponds to the config schema, ensuring proper formats and lengths."""
|
|
31
31
|
valid_updates = {}
|
|
@@ -78,8 +78,7 @@ def handle_date_fields(field_name, value):
|
|
|
78
78
|
Return is a tuple of the formatted date and a notice."""
|
|
79
79
|
if isinstance(value, datetime.date):
|
|
80
80
|
return value.strftime("%Y-%m-%d"), None
|
|
81
|
-
|
|
82
|
-
if isinstance(value, str):
|
|
81
|
+
elif isinstance(value, str):
|
|
83
82
|
try:
|
|
84
83
|
datetime.datetime.strptime(value, "%Y-%m-%d")
|
|
85
84
|
return value
|
|
@@ -97,8 +96,7 @@ def handle_timestamp_fields(field_name, value):
|
|
|
97
96
|
"""Handles timestamp fields, ensuring they are in the correct format."""
|
|
98
97
|
if isinstance(value, datetime.datetime):
|
|
99
98
|
return value.isoformat(), None
|
|
100
|
-
|
|
101
|
-
if isinstance(value, str):
|
|
99
|
+
elif isinstance(value, str):
|
|
102
100
|
try:
|
|
103
101
|
datetime.datetime.fromisoformat(value)
|
|
104
102
|
return value
|
{ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.36
|
|
4
4
|
Summary: Shared Core models and Logger util for the Pulse platform project. Using AI for financial advisory and investment management.
|
|
5
5
|
Home-page: https://github.com/TheFutureEdge/ipulse_shared_core
|
|
6
6
|
Author: Russlan Ramdowar
|
{ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ipulse_shared_core_ftredge/__init__.py,sha256=snLFrVzGmYy6TmXM6-D7Yq4dkcJDRP3g9DeuJQDFPMc,895
|
|
2
2
|
ipulse_shared_core_ftredge/utils_gcp.py,sha256=E8TvZ05fTjNr-VQXxSZNCiqT9PwPhtqeKOifIGhb2sg,6289
|
|
3
|
-
ipulse_shared_core_ftredge/utils_templates_and_schemas.py,sha256=
|
|
3
|
+
ipulse_shared_core_ftredge/utils_templates_and_schemas.py,sha256=UxRZnTOmV0VfjtrA-0YrTcKgJOMpa6kFiuLSdSUD_XA,6513
|
|
4
4
|
ipulse_shared_core_ftredge/enums/__init__.py,sha256=PjxJiUConI2TuaG_Ushe2BaFVjBDw1rbq1E9Vt9nXvE,801
|
|
5
5
|
ipulse_shared_core_ftredge/enums/enums_common_utils.py,sha256=ukChcm8R2QwlK4NAfM291mWryCAZvfg7bMpdScQQfok,4360
|
|
6
6
|
ipulse_shared_core_ftredge/enums/enums_data_eng.py,sha256=A8_uiGGacd-_AZP09Zft-DX3rF8aVqqFzFak8s4MsfY,1801
|
|
@@ -17,8 +17,8 @@ ipulse_shared_core_ftredge/models/user_profile_update.py,sha256=oKK0XsQDKkgDvjFP
|
|
|
17
17
|
ipulse_shared_core_ftredge/models/user_status.py,sha256=8TyRd8tBK9_xb0MPKbI5pn9-lX7ovKbeiuWYYPtIOiw,3202
|
|
18
18
|
ipulse_shared_core_ftredge/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
ipulse_shared_core_ftredge/tests/test.py,sha256=0lS8HP5Quo_BqNoscU40qOH9aJRaa1Pfam5VUBmdld8,682
|
|
20
|
-
ipulse_shared_core_ftredge-2.
|
|
21
|
-
ipulse_shared_core_ftredge-2.
|
|
22
|
-
ipulse_shared_core_ftredge-2.
|
|
23
|
-
ipulse_shared_core_ftredge-2.
|
|
24
|
-
ipulse_shared_core_ftredge-2.
|
|
20
|
+
ipulse_shared_core_ftredge-2.36.dist-info/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
|
|
21
|
+
ipulse_shared_core_ftredge-2.36.dist-info/METADATA,sha256=vYm8146CUjDdbz9XOZGikiH2wfd29iIthI6zq608ShI,561
|
|
22
|
+
ipulse_shared_core_ftredge-2.36.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
23
|
+
ipulse_shared_core_ftredge-2.36.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
|
|
24
|
+
ipulse_shared_core_ftredge-2.36.dist-info/RECORD,,
|
{ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/LICENCE
RENAMED
|
File without changes
|
{ipulse_shared_core_ftredge-2.35.dist-info → ipulse_shared_core_ftredge-2.36.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|