ecodev-core 0.0.31__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.

@@ -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())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ecodev-core
3
- Version: 0.0.31
3
+ Version: 0.0.33
4
4
  Summary: Low level sqlmodel/fastapi/pydantic building blocks
5
5
  License: MIT
6
6
  Author: Thomas Epelbaum
@@ -37,6 +37,7 @@ Requires-Dist: fastapi (>=0,<1)
37
37
  Requires-Dist: httpx (>=0,<1)
38
38
  Requires-Dist: numpy (>=1,<2)
39
39
  Requires-Dist: openpyxl (>=3,<4)
40
+ Requires-Dist: orjson (>=3.10.5,<4.0.0)
40
41
  Requires-Dist: pandas (>=2,<3)
41
42
  Requires-Dist: passlib[bcyrypt] (>=1,<2)
42
43
  Requires-Dist: psycopg2-binary (>=2,<3)
@@ -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-0.0.31.dist-info/LICENSE.md,sha256=jebQDe1ib9LAODuNvcSoo2CoqS6P0_q8--mMTICh_kI,1074
24
- ecodev_core-0.0.31.dist-info/METADATA,sha256=V9Oak_F0Rg8ye05DUTvxu0zFv4VMABvWNAVXLpZmL38,3345
25
- ecodev_core-0.0.31.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
26
- ecodev_core-0.0.31.dist-info/RECORD,,
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,,