ipulse-shared-core-ftredge 2.20__tar.gz → 2.21__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.20/src/ipulse_shared_core_ftredge.egg-info → ipulse_shared_core_ftredge-2.21}/PKG-INFO +1 -1
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/setup.py +1 -1
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/gcp_utils.py +6 -4
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21/src/ipulse_shared_core_ftredge.egg-info}/PKG-INFO +1 -1
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/README.md +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/pyproject.toml +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/setup.cfg +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/__init__.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/__init__.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/audit_log_firestore.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/organisation.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/pulse_enums.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/resource_catalog_item.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/user_auth.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/user_profile.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/user_profile_update.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/models/user_status.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/tests/__init__.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge/tests/test.py +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge.egg-info/SOURCES.txt +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge.egg-info/dependency_links.txt +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/src/ipulse_shared_core_ftredge.egg-info/requires.txt +0 -0
- {ipulse_shared_core_ftredge-2.20 → ipulse_shared_core_ftredge-2.21}/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.21
|
|
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.21',
|
|
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=[
|
|
@@ -116,18 +116,19 @@ def read_csv_from_gcs(bucket_name, file_name, storage_client, logger):
|
|
|
116
116
|
logger.error(f"An unexpected error occurred: {e}", exc_info=True)
|
|
117
117
|
return None
|
|
118
118
|
|
|
119
|
-
def write_json_to_gcs(bucket_name, file_name, data, stor_client, logger):
|
|
119
|
+
def write_json_to_gcs(bucket_name, file_name, data, stor_client, logger, log_info_verbose=True):
|
|
120
120
|
""" Helper function to write a JSON file to Google Cloud Storage """
|
|
121
121
|
try:
|
|
122
122
|
bucket = stor_client.bucket(bucket_name)
|
|
123
123
|
blob = bucket.blob(file_name)
|
|
124
124
|
data_string = json.dumps(data)
|
|
125
125
|
blob.upload_from_string(data_string, content_type='application/json')
|
|
126
|
-
|
|
126
|
+
if log_info_verbose:
|
|
127
|
+
logger.info(f"Successfully wrote JSON to {file_name} in bucket {bucket_name}.")
|
|
127
128
|
except Exception as e:
|
|
128
129
|
logger.error(f"An unexpected error occurred while writing JSON to GCS: {e}", exc_info=True)
|
|
129
130
|
|
|
130
|
-
def write_csv_to_gcs(bucket_name, file_name, data, storage_client, logger):
|
|
131
|
+
def write_csv_to_gcs(bucket_name, file_name, data, storage_client, logger,log_info_verbose=True):
|
|
131
132
|
""" Helper function to write a CSV file to Google Cloud Storage """
|
|
132
133
|
try:
|
|
133
134
|
bucket = storage_client.bucket(bucket_name)
|
|
@@ -141,7 +142,8 @@ def write_csv_to_gcs(bucket_name, file_name, data, storage_client, logger):
|
|
|
141
142
|
else:
|
|
142
143
|
raise ValueError("Data should be a list of dictionaries")
|
|
143
144
|
blob.upload_from_string(data_file.getvalue(), content_type='text/csv')
|
|
144
|
-
|
|
145
|
+
if log_info_verbose:
|
|
146
|
+
logger.info(f"Successfully wrote CSV to {file_name} in bucket {bucket_name}.")
|
|
145
147
|
except ValueError as e:
|
|
146
148
|
logger.error(f"ValueError: {e}")
|
|
147
149
|
except Exception as e:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.21
|
|
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
|