ipulse-shared-core-ftredge 2.25__tar.gz → 2.26__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.
Potentially problematic release.
This version of ipulse-shared-core-ftredge might be problematic. Click here for more details.
- {ipulse_shared_core_ftredge-2.25/src/ipulse_shared_core_ftredge.egg-info → ipulse_shared_core_ftredge-2.26}/PKG-INFO +1 -1
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/setup.py +1 -1
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/utils_templates_and_schemas.py +8 -3
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26/src/ipulse_shared_core_ftredge.egg-info}/PKG-INFO +1 -1
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/README.md +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/pyproject.toml +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/setup.cfg +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/__init__.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/__init__.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/audit_log_firestore.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/organisation.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/pulse_enums.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/resource_catalog_item.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/user_auth.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/user_profile.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/user_profile_update.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/models/user_status.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/tests/__init__.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/tests/test.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge/utils_gcp.py +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge.egg-info/SOURCES.txt +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge.egg-info/dependency_links.txt +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge.egg-info/requires.txt +0 -0
- {ipulse_shared_core_ftredge-2.25 → ipulse_shared_core_ftredge-2.26}/src/ipulse_shared_core_ftredge.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.26
|
|
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
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='ipulse_shared_core_ftredge',
|
|
5
|
-
version='2.
|
|
5
|
+
version='2.26',
|
|
6
6
|
package_dir={'': 'src'}, # Specify the source directory
|
|
7
7
|
packages=find_packages(where='src'), # Look for packages in 'src'
|
|
8
8
|
install_requires=[
|
|
@@ -22,7 +22,7 @@ def update_check_with_dict_template(template, updates, logger):
|
|
|
22
22
|
|
|
23
23
|
def update_check_with_schema_template(updates, schema, logger, dt_ts_to_str=True, check_max_length=True):
|
|
24
24
|
"""Ensure Update dict corresponds to the config schema, ensuring proper formats and lengths."""
|
|
25
|
-
|
|
25
|
+
valid_updates = {}
|
|
26
26
|
schema_dict = {field["name"]: field for field in schema}
|
|
27
27
|
|
|
28
28
|
for field_name, value in updates.items():
|
|
@@ -60,12 +60,17 @@ def update_check_with_schema_template(updates, schema, logger, dt_ts_to_str=True
|
|
|
60
60
|
logger.warning(f"Field {field_name} expected to be a bool but got {type(value).__name__}.")
|
|
61
61
|
value = bool(value)
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
valid_updates[field_name] = value
|
|
64
64
|
else:
|
|
65
65
|
logger.warning(f"Field {field_name} not in schema template, it will be ignored.You probably forgot to update the Schema Config. Do so now. "
|
|
66
66
|
"And assess the manual work required to fix missed data.")
|
|
67
|
+
|
|
68
|
+
# Check for missing REQUIRED fields
|
|
69
|
+
for field in schema:
|
|
70
|
+
if field["mode"] == "REQUIRED" and field["name"] not in valid_updates:
|
|
71
|
+
logger.warning(f"Required field '{field['name']}' is missing in the updates.")
|
|
67
72
|
|
|
68
|
-
return
|
|
73
|
+
return valid_updates
|
|
69
74
|
|
|
70
75
|
|
|
71
76
|
def check_updates_formatting(updates, schema, logger, dt_ts_to_str, check_max_length):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.26
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|