ipulse-shared-core-ftredge 2.35__py3-none-any.whl → 2.37__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.

Potentially problematic release.


This version of ipulse-shared-core-ftredge might be problematic. Click here for more details.

@@ -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, logger, dt_ts_to_str=True, check_max_length=True):
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,11 +78,10 @@ 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
- return value
84
+ return value, None
86
85
  except ValueError:
87
86
  return None, create_data_check_notice(NoticeSeverity.WARNING_ACTION_REQUIRED,
88
87
  field_name,
@@ -97,11 +96,10 @@ 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
- return value
102
+ return value, None
105
103
  except ValueError:
106
104
  return None, create_data_check_notice(NoticeSeverity.WARNING_ACTION_REQUIRED,
107
105
  field_name,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipulse_shared_core_ftredge
3
- Version: 2.35
3
+ Version: 2.37
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
@@ -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=VjwZb5Dhe5Yww6loesaETsN4dI3t17_KZ91JC0UcYaQ,6519
3
+ ipulse_shared_core_ftredge/utils_templates_and_schemas.py,sha256=m5h8oWzmQhfFLjDNIg0-BAdxguR8Y-yqkBt91dXdLGw,6525
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.35.dist-info/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
21
- ipulse_shared_core_ftredge-2.35.dist-info/METADATA,sha256=ccTBc5Ut5az1JaepXI6ldPCZfdP8IA8Wq9XDyhWciq8,561
22
- ipulse_shared_core_ftredge-2.35.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
23
- ipulse_shared_core_ftredge-2.35.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
24
- ipulse_shared_core_ftredge-2.35.dist-info/RECORD,,
20
+ ipulse_shared_core_ftredge-2.37.dist-info/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
21
+ ipulse_shared_core_ftredge-2.37.dist-info/METADATA,sha256=oG6P3XWAjyNWhGxICc7AAMYd4iYop4oK48JDmkkdGCI,561
22
+ ipulse_shared_core_ftredge-2.37.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
23
+ ipulse_shared_core_ftredge-2.37.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
24
+ ipulse_shared_core_ftredge-2.37.dist-info/RECORD,,