ecodev-core 0.0.32__py3-none-any.whl → 0.0.33__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 ecodev-core might be problematic. Click here for more details.
- ecodev_core/sqlmodel_utils.py +16 -0
- {ecodev_core-0.0.32.dist-info → ecodev_core-0.0.33.dist-info}/METADATA +1 -1
- {ecodev_core-0.0.32.dist-info → ecodev_core-0.0.33.dist-info}/RECORD +5 -4
- {ecodev_core-0.0.32.dist-info → ecodev_core-0.0.33.dist-info}/LICENSE.md +0 -0
- {ecodev_core-0.0.32.dist-info → ecodev_core-0.0.33.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
module implementing SQLModel related helper methods. Related to validation
|
|
3
|
+
"""
|
|
4
|
+
from sqlmodel import SQLModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class SQLModelWithVal(SQLModel):
|
|
8
|
+
"""
|
|
9
|
+
Helper class to ease validation in SQLModel classes with table=True
|
|
10
|
+
"""
|
|
11
|
+
@classmethod
|
|
12
|
+
def create(cls, **kwargs):
|
|
13
|
+
"""
|
|
14
|
+
Forces validation to take place, even for SQLModel classes with table=True
|
|
15
|
+
"""
|
|
16
|
+
return cls(**cls.__bases__[0](**kwargs).model_dump())
|
|
@@ -20,7 +20,8 @@ ecodev_core/permissions.py,sha256=WAx-ilMu8LlQp2sjJVdkhNQieytEaEm8577ZF1HWeTY,50
|
|
|
20
20
|
ecodev_core/pydantic_utils.py,sha256=e3GH50JmcpTmd2UgrB94QSwWOlOCW3WIlVdyX9C4T-U,741
|
|
21
21
|
ecodev_core/read_write.py,sha256=auJ5bBJTVGkLRkiP_vZxVCX64B0Y-9qpsaDhovHmbas,996
|
|
22
22
|
ecodev_core/safe_utils.py,sha256=JCfxo6fcznjsL-XHNJ1TKo1UvfJB83WT5jpTFmtJwsE,6160
|
|
23
|
-
ecodev_core
|
|
24
|
-
ecodev_core-0.0.
|
|
25
|
-
ecodev_core-0.0.
|
|
26
|
-
ecodev_core-0.0.
|
|
23
|
+
ecodev_core/sqlmodel_utils.py,sha256=t57H3QPtKRy4ujic1clMK_2L4p0yjGJLZbDjHPZ8M94,453
|
|
24
|
+
ecodev_core-0.0.33.dist-info/LICENSE.md,sha256=jebQDe1ib9LAODuNvcSoo2CoqS6P0_q8--mMTICh_kI,1074
|
|
25
|
+
ecodev_core-0.0.33.dist-info/METADATA,sha256=AmD_AAKdjSjlQm0fBu-Ow3jdf2GA-sPksFwsjl9UApY,3385
|
|
26
|
+
ecodev_core-0.0.33.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
27
|
+
ecodev_core-0.0.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|