superb-ai-onprem 0.1.4__py3-none-any.whl → 0.1.5__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.
Potentially problematic release.
This version of superb-ai-onprem might be problematic. Click here for more details.
- spb_onprem/_version.py +2 -2
- spb_onprem/base_model.py +13 -0
- {superb_ai_onprem-0.1.4.dist-info → superb_ai_onprem-0.1.5.dist-info}/METADATA +1 -1
- {superb_ai_onprem-0.1.4.dist-info → superb_ai_onprem-0.1.5.dist-info}/RECORD +7 -7
- {superb_ai_onprem-0.1.4.dist-info → superb_ai_onprem-0.1.5.dist-info}/WHEEL +0 -0
- {superb_ai_onprem-0.1.4.dist-info → superb_ai_onprem-0.1.5.dist-info}/licenses/LICENSE +0 -0
- {superb_ai_onprem-0.1.4.dist-info → superb_ai_onprem-0.1.5.dist-info}/top_level.txt +0 -0
spb_onprem/_version.py
CHANGED
spb_onprem/base_model.py
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
1
3
|
from pydantic import BaseModel, Field
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
class CustomBaseModel(BaseModel):
|
|
5
7
|
class Config:
|
|
6
8
|
populate_by_name = True
|
|
9
|
+
|
|
10
|
+
def __json__(self):
|
|
11
|
+
return self.model_dump()
|
|
12
|
+
|
|
13
|
+
@classmethod
|
|
14
|
+
def __from_json__(cls, json_str):
|
|
15
|
+
if isinstance(json_str, str):
|
|
16
|
+
data = json.loads(json_str)
|
|
17
|
+
else:
|
|
18
|
+
data = json_str
|
|
19
|
+
return cls.model_validate(data)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
spb_onprem/__init__.py,sha256=D9PTLlvRk_aB9DWXMfGrb06dmy5wPYTrxKmNjyfWq1w,1225
|
|
2
|
-
spb_onprem/_version.py,sha256=
|
|
3
|
-
spb_onprem/base_model.py,sha256=
|
|
2
|
+
spb_onprem/_version.py,sha256=Y4jy4bEMmwl_qNPCmiMFnlQ2ofMoqyG37hp8uwI3m10,511
|
|
3
|
+
spb_onprem/base_model.py,sha256=vhev20joDx4VhDJzPodHlwnM2Ecx3L_N8vIWrKaI61w,427
|
|
4
4
|
spb_onprem/base_service.py,sha256=dPfr3mGXYlqadOXycu6RBFX1HcZ1qzEsskLoOxERLOU,5737
|
|
5
5
|
spb_onprem/base_types.py,sha256=5HO6uy6qf08b4KSElwIaGy7UkoQG2KqVO6gcHbsqqSo,269
|
|
6
6
|
spb_onprem/entities.py,sha256=4XSE-odWBpbm_ghu36Eo2Q9ki0acpZ41vOmRyd1QT_E,547
|
|
@@ -67,8 +67,8 @@ spb_onprem/slices/params/update_slice.py,sha256=kryOmCnRTQ_OU0qDKgugppLrpeUpuLwm
|
|
|
67
67
|
spb_onprem/users/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
68
|
spb_onprem/users/entities/__init__.py,sha256=X8HZsCTlQnuPszok3AwI-i7bsQi0Ehul5L_2jZaol5E,57
|
|
69
69
|
spb_onprem/users/entities/auth.py,sha256=_KP-7yUErBxhJMm-dE3ObprPEG6e0JI2qNg6g8aK1qM,3371
|
|
70
|
-
superb_ai_onprem-0.1.
|
|
71
|
-
superb_ai_onprem-0.1.
|
|
72
|
-
superb_ai_onprem-0.1.
|
|
73
|
-
superb_ai_onprem-0.1.
|
|
74
|
-
superb_ai_onprem-0.1.
|
|
70
|
+
superb_ai_onprem-0.1.5.dist-info/licenses/LICENSE,sha256=CdinbFiHKGkGl6cPde6WgXhMuzyUXEG6tzy2-7udZ8o,1066
|
|
71
|
+
superb_ai_onprem-0.1.5.dist-info/METADATA,sha256=BzSgmm3shJ49NlCzHRsOoIHnkU9Pn3nK5lVETKWO-ro,5817
|
|
72
|
+
superb_ai_onprem-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
73
|
+
superb_ai_onprem-0.1.5.dist-info/top_level.txt,sha256=AZIJi8aIRJ8vxBL6vvODXVPadF4oetwn0ji2NiAndpM,11
|
|
74
|
+
superb_ai_onprem-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|