ecodev-core 0.0.39__py3-none-any.whl → 0.0.41__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/list_utils.py CHANGED
@@ -125,3 +125,10 @@ def dict_to_class(data: dict):
125
125
  Convert a (possibly nested) dictionary to a class.
126
126
  """
127
127
  return {k: type(k, (), dict_to_class(v)) if isinstance(v, dict) else v for k, v in data.items()}
128
+
129
+
130
+ def list_tuple_to_dict(data: list[tuple]) -> list[dict[str, Any]] | None:
131
+ """
132
+ Transforms the result of a sqlmodel query into a list of Dict
133
+ """
134
+ return [x._asdict() for x in data] if data else None # type: ignore[attr-defined]
ecodev_core/settings.py CHANGED
@@ -3,7 +3,7 @@ Module defining a dynamic setting class
3
3
  """
4
4
  from pathlib import Path
5
5
 
6
- from pydantic.utils import deep_update
6
+ from pydantic.v1.utils import deep_update
7
7
  from pydantic_settings import BaseSettings
8
8
  from pydantic_settings import SettingsConfigDict
9
9
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ecodev-core
3
- Version: 0.0.39
3
+ Version: 0.0.41
4
4
  Summary: Low level sqlmodel/fastapi/pydantic building blocks
5
5
  License: MIT
6
6
  Author: Thomas Epelbaum
@@ -15,16 +15,16 @@ ecodev_core/deployment.py,sha256=z8ACI00EtKknXOB8xyPwYIXTvPjIDOH9z9cBGEU0YrA,281
15
15
  ecodev_core/email_sender.py,sha256=XD7jAVXhGzvbiHqMhK9_aTEIS70Lw_CmPeAxRZGji-Y,1610
16
16
  ecodev_core/enum_utils.py,sha256=BkQ4YQ97tXBYmMcQiSIi0mbioD5CgVU79myg1BBAXuA,556
17
17
  ecodev_core/es_connection.py,sha256=3z8KWF9yUzCW4xC9nhLlIcoW3Gw6m19MvH4Z6nxy7R4,1967
18
- ecodev_core/list_utils.py,sha256=OltBlhp0COYPD8tc5eruqQq5nlVA7vp7fPYhTwXu6Ww,4632
18
+ ecodev_core/list_utils.py,sha256=QFchUnD9CvMiBFBUaxkZTyDyEqpIJBwCNPubNUSl8TA,4877
19
19
  ecodev_core/logger.py,sha256=_v63vq7jh72RRkzajHB9QkRfEPcwCMNcLh7maLeKwRg,3596
20
20
  ecodev_core/pandas_utils.py,sha256=Juc6gvPnoBiSVF2SR6_vfMi5W-QEkY3fnpo5ROB1L9s,2191
21
21
  ecodev_core/permissions.py,sha256=WAx-ilMu8LlQp2sjJVdkhNQieytEaEm8577ZF1HWeTY,502
22
22
  ecodev_core/pydantic_utils.py,sha256=e3GH50JmcpTmd2UgrB94QSwWOlOCW3WIlVdyX9C4T-U,741
23
23
  ecodev_core/read_write.py,sha256=YIGRERvFHU7vy-JIaCWAza4CPMysLRUHKJxN-ZgFmu0,1208
24
24
  ecodev_core/safe_utils.py,sha256=8Hxi8gaev3HRVeDjOBhPjSl44CA2Wem58BwkkJC_PtI,6279
25
- ecodev_core/settings.py,sha256=lgC0GFi3nH9FxUlf2azzzKNT9-i2thl4UMKLxQHL9Xg,1559
25
+ ecodev_core/settings.py,sha256=ARAPkXxggVUsYqSQIAgCK8C2DKSMPia1CekULn428bA,1562
26
26
  ecodev_core/sqlmodel_utils.py,sha256=t57H3QPtKRy4ujic1clMK_2L4p0yjGJLZbDjHPZ8M94,453
27
- ecodev_core-0.0.39.dist-info/LICENSE.md,sha256=8dqVJEbwXjPWjjRKjdLMym5k9Gi8hwtrHh84sti6KIs,1068
28
- ecodev_core-0.0.39.dist-info/METADATA,sha256=iK4Pvu5t2lt2tHGuaDZt6T1o2ujeO5oksXQpMUmJmsk,3509
29
- ecodev_core-0.0.39.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
- ecodev_core-0.0.39.dist-info/RECORD,,
27
+ ecodev_core-0.0.41.dist-info/LICENSE.md,sha256=8dqVJEbwXjPWjjRKjdLMym5k9Gi8hwtrHh84sti6KIs,1068
28
+ ecodev_core-0.0.41.dist-info/METADATA,sha256=gn1Hoz8ECeuQFtA_ZIBHWgfkXNy0uKIl1imiB6eywbo,3509
29
+ ecodev_core-0.0.41.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ ecodev_core-0.0.41.dist-info/RECORD,,