ipulse-shared-core-ftredge 27.4.0__tar.gz → 27.4.1__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.
- {ipulse_shared_core_ftredge-27.4.0/src/ipulse_shared_core_ftredge.egg-info → ipulse_shared_core_ftredge-27.4.1}/PKG-INFO +1 -1
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/setup.py +1 -1
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/base/cache_aware_firestore_service.py +1 -2
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/charging_processors.py +2 -2
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1/src/ipulse_shared_core_ftredge.egg-info}/PKG-INFO +1 -1
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/README.md +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/pyproject.toml +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/setup.cfg +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/cache/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/cache/shared_cache.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/dependencies/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/dependencies/auth_firebase_token_validation.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/dependencies/auth_protected_router.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/dependencies/authz_credit_extraction.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/dependencies/authz_for_apis.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/dependencies/firestore_client.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/exceptions/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/exceptions/base_exceptions.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/exceptions/user_exceptions.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/base_api_response.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/base_data_model.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/catalog/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/catalog/subscriptionplan.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/catalog/usertype.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/credit_api_response.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/custom_json_response.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/time_series_packaged_dataset_model.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/user/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/user/user_permissions.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/user/user_subscription.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/user/userauth.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/user/userprofile.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/models/user/userstatus.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/monitoring/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/monitoring/tracemon.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/base/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/base/base_firestore_service.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/base/multi_collection_cache_aware_firestore_service.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/catalog/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/catalog/catalog_subscriptionplan_service.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/catalog/catalog_usertype_service.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/user_charging_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/user_core_service.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/user_multistep_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/user_permissions_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/user_subscription_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/userauth_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/userprofile_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user/userstatus_operations.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/services/user_charging_service.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/utils/__init__.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/utils/custom_json_encoder.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge/utils/json_encoder.py +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge.egg-info/SOURCES.txt +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge.egg-info/dependency_links.txt +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge.egg-info/requires.txt +0 -0
- {ipulse_shared_core_ftredge-27.4.0 → ipulse_shared_core_ftredge-27.4.1}/src/ipulse_shared_core_ftredge.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 27.4.
|
|
3
|
+
Version: 27.4.1
|
|
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
|
|
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
|
|
4
4
|
setup(
|
|
5
5
|
name='ipulse_shared_core_ftredge',
|
|
6
|
-
version='27.4.
|
|
6
|
+
version='27.4.1',
|
|
7
7
|
package_dir={'': 'src'}, # Specify the source directory
|
|
8
8
|
packages=find_packages(where='src'), # Look for packages in 'src'
|
|
9
9
|
install_requires=[
|
|
@@ -7,8 +7,7 @@ from ...exceptions import ResourceNotFoundError, ServiceError
|
|
|
7
7
|
from ...cache.shared_cache import SharedCache
|
|
8
8
|
from ...models import BaseDataModel
|
|
9
9
|
|
|
10
|
-
T = TypeVar('T', bound=BaseDataModel)
|
|
11
|
-
0
|
|
10
|
+
T = TypeVar('T', bound=BaseDataModel)
|
|
12
11
|
|
|
13
12
|
class CacheAwareFirestoreService(BaseFirestoreService[T], Generic[T]):
|
|
14
13
|
"""
|
|
@@ -56,7 +56,7 @@ class ChargingProcessor:
|
|
|
56
56
|
updated_user_credits = pre_fetched_credits
|
|
57
57
|
elif self.user_charging_service: # Attempt to get current credits if not pre-fetched
|
|
58
58
|
try:
|
|
59
|
-
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid, 0, None)
|
|
59
|
+
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid=user_uid, required_credits_for_resource=0, pre_fetched_user_credits=None)
|
|
60
60
|
updated_user_credits = current_user_credits_from_verify
|
|
61
61
|
except Exception: # pylint: disable=broad-except
|
|
62
62
|
self.logger.warning(f"Could not fetch current credits for user {user_uid} for free item.")
|
|
@@ -77,7 +77,7 @@ class ChargingProcessor:
|
|
|
77
77
|
updated_user_credits = pre_fetched_credits
|
|
78
78
|
elif self.user_charging_service:
|
|
79
79
|
try:
|
|
80
|
-
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid, 0, None)
|
|
80
|
+
_, current_user_credits_from_verify = await self.user_charging_service.verify_enough_credits(user_uid=user_uid, required_credits_for_resource=0, pre_fetched_user_credits=None)
|
|
81
81
|
updated_user_credits = current_user_credits_from_verify
|
|
82
82
|
except Exception: # pylint: disable=broad-except
|
|
83
83
|
self.logger.warning(f"Could not fetch current credits for user {user_uid} during debug bypass.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 27.4.
|
|
3
|
+
Version: 27.4.1
|
|
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
|
|
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
|
|
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
|