galileo-core 3.82.1__py3-none-any.whl → 3.84.0__py3-none-any.whl
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.
- galileo_core/__init__.py +1 -1
- galileo_core/exceptions/base.py +15 -2
- galileo_core/schemas/shared/default_ids.py +5 -0
- {galileo_core-3.82.1.dist-info → galileo_core-3.84.0.dist-info}/METADATA +1 -1
- {galileo_core-3.82.1.dist-info → galileo_core-3.84.0.dist-info}/RECORD +8 -8
- {galileo_core-3.82.1.dist-info → galileo_core-3.84.0.dist-info}/LICENSE +0 -0
- {galileo_core-3.82.1.dist-info → galileo_core-3.84.0.dist-info}/WHEEL +0 -0
- {galileo_core-3.82.1.dist-info → galileo_core-3.84.0.dist-info}/entry_points.txt +0 -0
galileo_core/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "3.
|
|
1
|
+
__version__ = "3.84.0"
|
galileo_core/exceptions/base.py
CHANGED
|
@@ -6,11 +6,24 @@ from galileo_core.helpers.logger import logger
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class BaseGalileoException(Exception, ABC):
|
|
9
|
-
"""Base exception for all exceptions in galileo.
|
|
9
|
+
"""Base exception for all exceptions in galileo.
|
|
10
|
+
|
|
11
|
+
Attributes:
|
|
12
|
+
message: Human-readable error message
|
|
13
|
+
error_code: Optional EMS catalog lookup key for standardized error handling
|
|
14
|
+
LOG_LEVEL: Logging level for this exception type
|
|
15
|
+
"""
|
|
10
16
|
|
|
11
17
|
LOG_LEVEL: int = WARNING
|
|
12
18
|
|
|
13
|
-
def __init__(
|
|
19
|
+
def __init__(
|
|
20
|
+
self,
|
|
21
|
+
message: str,
|
|
22
|
+
logging_extra: Optional[Dict[str, Any]] = None,
|
|
23
|
+
*,
|
|
24
|
+
error_code: Optional[int] = None,
|
|
25
|
+
) -> None:
|
|
14
26
|
logger.log(self.LOG_LEVEL, message, extra=logging_extra)
|
|
15
27
|
self.message: str = message
|
|
28
|
+
self.error_code: Optional[int] = error_code
|
|
16
29
|
super().__init__(self.message)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from typing import List
|
|
1
2
|
from uuid import UUID
|
|
2
3
|
|
|
3
4
|
from pydantic import UUID4
|
|
@@ -5,5 +6,9 @@ from pydantic import UUID4
|
|
|
5
6
|
NULL_UUID_LITERAL = "00000000-0000-0000-0000-000000000000"
|
|
6
7
|
NULL_UUID_V4_LITERAL = "00000000-0000-4000-8000-000000000000"
|
|
7
8
|
|
|
9
|
+
NULL_UUID_LITERALS: List[str] = [NULL_UUID_LITERAL, NULL_UUID_V4_LITERAL]
|
|
10
|
+
|
|
8
11
|
NULL_UUID: UUID = UUID(NULL_UUID_LITERAL)
|
|
9
12
|
NULL_UUID_V4: UUID4 = UUID(NULL_UUID_V4_LITERAL)
|
|
13
|
+
|
|
14
|
+
NULL_UUIDS: List[UUID] = [NULL_UUID, NULL_UUID_V4]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
galileo_core/__init__.py,sha256=
|
|
1
|
+
galileo_core/__init__.py,sha256=gilVe3_q6HRRQcszo9BF8N_XxfZKHRJZOBs8OtpxHhM,23
|
|
2
2
|
galileo_core/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
galileo_core/constants/config.py,sha256=MYvixj3X3CoiC38QVMdidApURKFOAaPaYoHhFESOJlU,329
|
|
4
4
|
galileo_core/constants/dataset_format.py,sha256=H6ZigDd2QMpRcRhLC38e0hRoMh0kKbvdhbmS5yK1gZU,116
|
|
@@ -9,7 +9,7 @@ galileo_core/constants/request_method.py,sha256=szwggZ9BPQwY7qVFdOJRREfFfp-wT_LO
|
|
|
9
9
|
galileo_core/constants/routes.py,sha256=q0EJ6oidfkUAlRAF7UUXw2_fYO5L5ejGzqbN7Ut0JOI,1577
|
|
10
10
|
galileo_core/constants/scorers.py,sha256=5Mojtg2arv03o7fxuUI64x9L36OGButJvwWVeM8LQrE,1229
|
|
11
11
|
galileo_core/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
galileo_core/exceptions/base.py,sha256=
|
|
12
|
+
galileo_core/exceptions/base.py,sha256=9eZQ0ak_fcvt8ywJWJg9wmkgKVCxcZ2U1BDvclNQGFw,847
|
|
13
13
|
galileo_core/exceptions/execution.py,sha256=oR7h-aw1qgBfxKRiB6re2IrTavkrygC8ybE-AWiRTKM,2754
|
|
14
14
|
galileo_core/exceptions/http.py,sha256=lW3oIcxb3U5l9ZfsiPZmKHxQiqG-ASK3CJtD4WK8n5w,343
|
|
15
15
|
galileo_core/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -91,7 +91,7 @@ galileo_core/schemas/protect/stage.py,sha256=cv_v3uKNCNJ5a6CPUyUn5BCycPLG_GfABBL
|
|
|
91
91
|
galileo_core/schemas/protect/subscription_config.py,sha256=vCqCyvzfRPAxFzMfL19AMJEmZFHRDgpnNoMbo_xPY1w,1591
|
|
92
92
|
galileo_core/schemas/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
93
93
|
galileo_core/schemas/shared/customized_scorer.py,sha256=XluPBmzlTCcwVuMBO5fvyHXk4l5eysadT1aAc-y8qHA,1557
|
|
94
|
-
galileo_core/schemas/shared/default_ids.py,sha256=
|
|
94
|
+
galileo_core/schemas/shared/default_ids.py,sha256=CMQALyVqa_cpysW_5wMiX0hLDo3kWO0YHE5HqqPIzaE,415
|
|
95
95
|
galileo_core/schemas/shared/document.py,sha256=WKksr36ANUDXdPRzXCjxb2aEtbMRz8SdW1DmhaHnTeM,851
|
|
96
96
|
galileo_core/schemas/shared/feedback.py,sha256=ZrrqmBO8sSn-TbjsVVoGBmcLoz79rRtQJCj6D1z29nY,559
|
|
97
97
|
galileo_core/schemas/shared/filtered_collection.py,sha256=hbg2CD8XZ3rczBrzUw4yhJ3xynlVpeIRKmebHE2zBPw,3846
|
|
@@ -122,8 +122,8 @@ galileo_core/utils/dataset.py,sha256=wjm3NdNRuxj5mK7GqQUdA-Map_EB0SpFfM1QKapd6-A
|
|
|
122
122
|
galileo_core/utils/json.py,sha256=ug5P-iozgmqXRhLZS3Dm_JPViTICboKukg1mqqBq2i4,327
|
|
123
123
|
galileo_core/utils/name.py,sha256=kaDeZJ1K3-SSazYrUeSbUsQrnZlnOBYU42t-QvX-coE,204
|
|
124
124
|
galileo_core/utils/scorer_validation.py,sha256=bjNmDZhNsmmb8qHBfndXVAL60W5nCvoDdKrAoAegxJg,11259
|
|
125
|
-
galileo_core-3.
|
|
126
|
-
galileo_core-3.
|
|
127
|
-
galileo_core-3.
|
|
128
|
-
galileo_core-3.
|
|
129
|
-
galileo_core-3.
|
|
125
|
+
galileo_core-3.84.0.dist-info/LICENSE,sha256=4D_6tarPnIYkAqF-0LzrodE9wFtSulO3V4RZf__MriE,10946
|
|
126
|
+
galileo_core-3.84.0.dist-info/METADATA,sha256=CgOzMT6Ezl6GsboAvyL9q52yceOEe0v0yIZdu742cWs,2731
|
|
127
|
+
galileo_core-3.84.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
128
|
+
galileo_core-3.84.0.dist-info/entry_points.txt,sha256=epOvdlN6_7ua8stNHURhJhXDIIrheccwYv0Z-QFmHJU,61
|
|
129
|
+
galileo_core-3.84.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|