sharedkernel 1.2.0__tar.gz → 1.3.0__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.
Files changed (31) hide show
  1. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/PKG-INFO +4 -1
  2. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/README.md +2 -0
  3. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/setup.py +3 -2
  4. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/exception/exception_handlers.py +4 -3
  5. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel.egg-info/PKG-INFO +4 -1
  6. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel.egg-info/requires.txt +1 -0
  7. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/setup.cfg +0 -0
  8. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/common.py +0 -0
  9. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/config.py +0 -0
  10. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/__init__.py +0 -0
  11. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/mongo_generic_repository.py +0 -0
  12. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/vector_database_repository/__init__.py +0 -0
  13. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/vector_database_repository/chroma_startegy.py +0 -0
  14. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/vector_database_repository/milvus_strategy.py +0 -0
  15. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/vector_database_repository/vector_database_repository.py +0 -0
  16. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/database/vector_database_repository/vector_database_strategy.py +0 -0
  17. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/enum/__init__.py +0 -0
  18. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/enum/error_code.py +0 -0
  19. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/enum/vector_database_type.py +0 -0
  20. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/exception/__init__.py +0 -0
  21. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/exception/exception.py +0 -0
  22. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/jwt_service.py +0 -0
  23. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/objects/__init__.py +0 -0
  24. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/objects/base_document.py +0 -0
  25. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/objects/jwt_model.py +0 -0
  26. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/objects/result.py +0 -0
  27. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/regex_masking.py +0 -0
  28. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel/string_extentions.py +0 -0
  29. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel.egg-info/SOURCES.txt +0 -0
  30. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel.egg-info/dependency_links.txt +0 -0
  31. {sharedkernel-1.2.0 → sharedkernel-1.3.0}/sharedkernel.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sharedkernel
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: sharekernel is an shared package between all python projects
5
5
  Author: Smilinno
6
6
  Description-Content-Type: text/markdown
@@ -12,11 +12,14 @@ Requires-Dist: PyJWT
12
12
  Requires-Dist: pymilvus
13
13
  Requires-Dist: chromadb
14
14
  Requires-Dist: persian_tools
15
+ Requires-Dist: sentry-sdk
15
16
 
16
17
  # SharedKernel
17
18
  this a shared kernel package
18
19
 
19
20
  # Change Log
21
+ ### Version 1.3.0
22
+ - Implement Sentry For Log Exceptions
20
23
  ### Version 1.2.0
21
24
  - Implement Regex Masking
22
25
  # Create Package
@@ -2,6 +2,8 @@
2
2
  this a shared kernel package
3
3
 
4
4
  # Change Log
5
+ ### Version 1.3.0
6
+ - Implement Sentry For Log Exceptions
5
7
  ### Version 1.2.0
6
8
  - Implement Regex Masking
7
9
  # Create Package
@@ -27,10 +27,11 @@ setup(
27
27
  "PyJWT",
28
28
  "pymilvus",
29
29
  "chromadb",
30
- "persian_tools"
30
+ "persian_tools",
31
+ "sentry-sdk",
31
32
  ],
32
33
  # *strongly* suggested for sharing
33
- version="1.2.0",
34
+ version="1.3.0",
34
35
  description="sharekernel is an shared package between all python projects",
35
36
  long_description=long_description,
36
37
  long_description_content_type="text/markdown",
@@ -1,4 +1,4 @@
1
-
1
+ import sentry_sdk
2
2
  from fastapi import Request,status
3
3
  import requests
4
4
  from fastapi.responses import JSONResponse
@@ -13,8 +13,8 @@ from sharedkernel.objects import Result
13
13
  from sharedkernel.enum.error_code import ErrorCode
14
14
 
15
15
 
16
-
17
16
  async def http_exception_handler(request: Request, exc: HTTPException):
17
+ sentry_sdk.capture_exception(exc)
18
18
  if type(exc)==UnAuthorizedException :
19
19
  return await custom_http_exception_handler(
20
20
  request,
@@ -39,6 +39,7 @@ async def http_exception_handler(request: Request, exc: HTTPException):
39
39
 
40
40
 
41
41
  async def business_http_exception_handler(request: Request, exc: BusinessException):
42
+ sentry_sdk.capture_exception(exc)
42
43
  return await custom_http_exception_handler(
43
44
  request,
44
45
  CustomException
@@ -61,7 +62,7 @@ async def custom_http_exception_handler(request: Request, exc: CustomException):
61
62
 
62
63
 
63
64
  async def exception_handler(request: Request, exc: Exception):
64
-
65
+ sentry_sdk.capture_exception(exc)
65
66
  return await custom_http_exception_handler(
66
67
  request,
67
68
  CustomException(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sharedkernel
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: sharekernel is an shared package between all python projects
5
5
  Author: Smilinno
6
6
  Description-Content-Type: text/markdown
@@ -12,11 +12,14 @@ Requires-Dist: PyJWT
12
12
  Requires-Dist: pymilvus
13
13
  Requires-Dist: chromadb
14
14
  Requires-Dist: persian_tools
15
+ Requires-Dist: sentry-sdk
15
16
 
16
17
  # SharedKernel
17
18
  this a shared kernel package
18
19
 
19
20
  # Change Log
21
+ ### Version 1.3.0
22
+ - Implement Sentry For Log Exceptions
20
23
  ### Version 1.2.0
21
24
  - Implement Regex Masking
22
25
  # Create Package
@@ -6,3 +6,4 @@ PyJWT
6
6
  pymilvus
7
7
  chromadb
8
8
  persian_tools
9
+ sentry-sdk
File without changes