ipulse-shared-core-ftredge 6.3.1__tar.gz → 6.5.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.
Potentially problematic release.
This version of ipulse-shared-core-ftredge might be problematic. Click here for more details.
- {ipulse_shared_core_ftredge-6.3.1/src/ipulse_shared_core_ftredge.egg-info → ipulse_shared_core_ftredge-6.5.1}/PKG-INFO +2 -1
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/setup.py +2 -1
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/services/fastapiservicemon.py +13 -11
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1/src/ipulse_shared_core_ftredge.egg-info}/PKG-INFO +2 -1
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge.egg-info/requires.txt +1 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/README.md +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/pyproject.toml +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/setup.cfg +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/__init__.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/dependencies/__init__.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/dependencies/auth_router.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/dependencies/authorization_api.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/dependencies/database.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/dependencies/token_validation.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/__init__.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/base_api_response.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/base_data_model.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/organization_profile.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/resource_catalog_item.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/subscription.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/user_auth.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/user_profile.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/user_profile_update.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/models/user_status.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/services/__init__.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/services/base_exceptions.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/services/base_firestore_service.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge/services/servicemon.py +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge.egg-info/SOURCES.txt +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge.egg-info/dependency_links.txt +0 -0
- {ipulse_shared_core_ftredge-6.3.1 → ipulse_shared_core_ftredge-6.5.1}/src/ipulse_shared_core_ftredge.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.5.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
|
|
7
7
|
License-File: LICENCE
|
|
8
8
|
Requires-Dist: pydantic[email]~=2.5
|
|
9
9
|
Requires-Dist: python-dateutil~=2.8
|
|
10
|
+
Requires-Dist: fastapi~=0.115.8
|
|
10
11
|
Requires-Dist: pytest~=7.1
|
|
11
12
|
Requires-Dist: ipulse_shared_base_ftredge>=5.2.1
|
|
12
13
|
Dynamic: author
|
|
@@ -3,13 +3,14 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
|
|
4
4
|
setup(
|
|
5
5
|
name='ipulse_shared_core_ftredge',
|
|
6
|
-
version='6.
|
|
6
|
+
version='6.5.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=[
|
|
10
10
|
# List your dependencies here
|
|
11
11
|
'pydantic[email]~=2.5',
|
|
12
12
|
'python-dateutil~=2.8',
|
|
13
|
+
'fastapi~=0.115.8',
|
|
13
14
|
'pytest~=7.1',
|
|
14
15
|
'ipulse_shared_base_ftredge>=5.2.1',
|
|
15
16
|
],
|
|
@@ -41,7 +41,7 @@ class FastAPIServiceMon(Servicemon):
|
|
|
41
41
|
return await call_next(request)
|
|
42
42
|
|
|
43
43
|
# Initialize ServiceMon
|
|
44
|
-
|
|
44
|
+
servicemon = Servicemon(
|
|
45
45
|
logger=logger,
|
|
46
46
|
base_context=f"API: {path}\nMethod: {method}",
|
|
47
47
|
service_name=f"API_{method}_{path.replace('/', '_')}"
|
|
@@ -50,11 +50,11 @@ class FastAPIServiceMon(Servicemon):
|
|
|
50
50
|
# Start monitoring
|
|
51
51
|
client_ip = request.client.host if request.client else "unknown"
|
|
52
52
|
user_agent = request.headers.get("user-agent", "unknown")
|
|
53
|
-
|
|
53
|
+
servicemon.start(f"API Request {method} {path}")
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
# Add request info
|
|
57
|
-
|
|
57
|
+
servicemon.log(
|
|
58
58
|
level=LogLevel.INFO,
|
|
59
59
|
description=f"Request received for {method} {path}. Client IP: {client_ip}. User Agent: {user_agent}",
|
|
60
60
|
resource=DataResource.API_INTERNAL,
|
|
@@ -65,7 +65,7 @@ class FastAPIServiceMon(Servicemon):
|
|
|
65
65
|
# Process the request and catch any errors
|
|
66
66
|
try:
|
|
67
67
|
# Store ServiceMon in request state for handlers to access
|
|
68
|
-
request.state.svcmon =
|
|
68
|
+
request.state.svcmon = servicemon
|
|
69
69
|
|
|
70
70
|
# Process request
|
|
71
71
|
start_time = time.time()
|
|
@@ -86,7 +86,7 @@ class FastAPIServiceMon(Servicemon):
|
|
|
86
86
|
else LogLevel.INFO
|
|
87
87
|
)
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
servicemon.log(
|
|
90
90
|
level=log_level,
|
|
91
91
|
description=f"Response sent: {status_code} in {process_time}ms for {method} {path}",
|
|
92
92
|
resource=DataResource.API_INTERNAL,
|
|
@@ -96,18 +96,20 @@ class FastAPIServiceMon(Servicemon):
|
|
|
96
96
|
)
|
|
97
97
|
|
|
98
98
|
# Finalize monitoring
|
|
99
|
-
|
|
99
|
+
servicemon.end(status=progress_status)
|
|
100
100
|
return response
|
|
101
101
|
|
|
102
102
|
except Exception as exc:
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
# Log error and re-raise
|
|
104
|
+
servicemon.log(
|
|
105
|
+
level=LogLevel.ERROR,
|
|
106
|
+
description=f"Error processing request: {exc}",
|
|
105
107
|
resource=DataResource.API_INTERNAL,
|
|
106
108
|
action=Action.EXECUTE,
|
|
107
|
-
progress_status=ProgressStatus.FAILED
|
|
108
|
-
e=exc
|
|
109
|
+
progress_status=ProgressStatus.FAILED
|
|
109
110
|
)
|
|
110
|
-
|
|
111
|
+
|
|
112
|
+
servicemon.end(status=ProgressStatus.FAILED)
|
|
111
113
|
raise
|
|
112
114
|
|
|
113
115
|
return ServiceMonMiddleware
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: ipulse_shared_core_ftredge
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.5.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
|
|
7
7
|
License-File: LICENCE
|
|
8
8
|
Requires-Dist: pydantic[email]~=2.5
|
|
9
9
|
Requires-Dist: python-dateutil~=2.8
|
|
10
|
+
Requires-Dist: fastapi~=0.115.8
|
|
10
11
|
Requires-Dist: pytest~=7.1
|
|
11
12
|
Requires-Dist: ipulse_shared_base_ftredge>=5.2.1
|
|
12
13
|
Dynamic: author
|
|
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
|