ul-api-utils 7.11.4__py3-none-any.whl → 7.11.6__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 ul-api-utils might be problematic. Click here for more details.
- ul_api_utils/utils/json_encoder.py +3 -1
- {ul_api_utils-7.11.4.dist-info → ul_api_utils-7.11.6.dist-info}/METADATA +2 -1
- {ul_api_utils-7.11.4.dist-info → ul_api_utils-7.11.6.dist-info}/RECORD +7 -7
- {ul_api_utils-7.11.4.dist-info → ul_api_utils-7.11.6.dist-info}/LICENSE +0 -0
- {ul_api_utils-7.11.4.dist-info → ul_api_utils-7.11.6.dist-info}/WHEEL +0 -0
- {ul_api_utils-7.11.4.dist-info → ul_api_utils-7.11.6.dist-info}/entry_points.txt +0 -0
- {ul_api_utils-7.11.4.dist-info → ul_api_utils-7.11.6.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ from enum import Enum
|
|
|
7
7
|
from json import JSONEncoder
|
|
8
8
|
from typing import Dict, Any, Union, List, Optional, TYPE_CHECKING
|
|
9
9
|
from uuid import UUID
|
|
10
|
-
|
|
10
|
+
from frozendict import frozendict
|
|
11
11
|
from pydantic import BaseModel
|
|
12
12
|
|
|
13
13
|
from ul_api_utils.utils.imports import has_already_imported_db
|
|
@@ -68,6 +68,8 @@ class CustomJSONEncoder(JSONEncoder):
|
|
|
68
68
|
return str(obj.value)
|
|
69
69
|
if isinstance(obj, set):
|
|
70
70
|
return list(obj)
|
|
71
|
+
if isinstance(obj, frozendict):
|
|
72
|
+
return dict(obj)
|
|
71
73
|
if dataclasses.is_dataclass(obj):
|
|
72
74
|
return dataclasses.asdict(obj)
|
|
73
75
|
if hasattr(obj, "__html__"): # it needs for Flask ?
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ul-api-utils
|
|
3
|
-
Version: 7.11.
|
|
3
|
+
Version: 7.11.6
|
|
4
4
|
Summary: Python api utils
|
|
5
5
|
Author: Unic-lab
|
|
6
6
|
Author-email:
|
|
@@ -47,6 +47,7 @@ Requires-Dist: types-requests (==2.28.8)
|
|
|
47
47
|
Requires-Dist: types-jinja2 (==2.11.9)
|
|
48
48
|
Requires-Dist: XlsxWriter (==3.2.0)
|
|
49
49
|
Requires-Dist: werkzeug (==2.3.7)
|
|
50
|
+
Requires-Dist: frozendict (==2.4.4)
|
|
50
51
|
Requires-Dist: wtforms (==3.0.1)
|
|
51
52
|
Requires-Dist: wtforms-alchemy (==0.18.0)
|
|
52
53
|
|
|
@@ -110,7 +110,7 @@ ul_api_utils/utils/deprecated.py,sha256=xR3ELgoDj7vJEY4CAYeEhdbtSJTfkukbjxcULtpM
|
|
|
110
110
|
ul_api_utils/utils/flags.py,sha256=AYN5nKWp4-uu6PSlPptL7ZiLqr3Pu-x5dffF6SBsqfg,957
|
|
111
111
|
ul_api_utils/utils/imports.py,sha256=i8PhoD0c_jnWTeXt_VxW_FihynwXSL_dHRT7jQiFyXE,376
|
|
112
112
|
ul_api_utils/utils/instance_checks.py,sha256=9punTfY5uabuJhmSGLfTgBqRderoFysCXBSI8rvbPco,467
|
|
113
|
-
ul_api_utils/utils/json_encoder.py,sha256=
|
|
113
|
+
ul_api_utils/utils/json_encoder.py,sha256=3ReY76A79Wg5yjNam8qTKyHAMb9uxyM1EV9Jberwcqo,4582
|
|
114
114
|
ul_api_utils/utils/load_modules.py,sha256=_CPmQuB6o_33FE6zFl_GyO5xS5gmjfNffB6k-cglKAA,685
|
|
115
115
|
ul_api_utils/utils/token_check.py,sha256=-Quuh8gOs9fNE1shYhdiMpQedafsLN7MB2ilSxG_F8E,489
|
|
116
116
|
ul_api_utils/utils/token_check_through_request.py,sha256=OyyObu6Btk9br7auIYvWcMULhNznNSD5T0mWOwZX7Uk,663
|
|
@@ -147,9 +147,9 @@ ul_api_utils/validators/validate_empty_object.py,sha256=3Ck_iwyJE_M5e7l6s1i88aqb
|
|
|
147
147
|
ul_api_utils/validators/validate_uuid.py,sha256=EfvlRirv2EW0Z6w3s8E8rUa9GaI8qXZkBWhnPs8NFrA,257
|
|
148
148
|
ul_api_utils/validators/__tests__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
149
149
|
ul_api_utils/validators/__tests__/test_custom_fields.py,sha256=QLZ7DFta01Z7DOK9Z5Iq4uf_CmvDkVReis-GAl_QN48,1447
|
|
150
|
-
ul_api_utils-7.11.
|
|
151
|
-
ul_api_utils-7.11.
|
|
152
|
-
ul_api_utils-7.11.
|
|
153
|
-
ul_api_utils-7.11.
|
|
154
|
-
ul_api_utils-7.11.
|
|
155
|
-
ul_api_utils-7.11.
|
|
150
|
+
ul_api_utils-7.11.6.dist-info/LICENSE,sha256=6Qo8OdcqI8aGrswJKJYhST-bYqxVQBQ3ujKdTSdq-80,1062
|
|
151
|
+
ul_api_utils-7.11.6.dist-info/METADATA,sha256=7MnAp-yMLgMQxy2W8StpSEBp_mddH-C-It3NRT5ots8,14787
|
|
152
|
+
ul_api_utils-7.11.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
153
|
+
ul_api_utils-7.11.6.dist-info/entry_points.txt,sha256=8tL3ySHWTyJMuV1hx1fHfN8zumDVOCOm63w3StphkXg,53
|
|
154
|
+
ul_api_utils-7.11.6.dist-info/top_level.txt,sha256=1XsW8iOSFaH4LOzDcnNyxHpHrbKU3fSn-aIAxe04jmw,21
|
|
155
|
+
ul_api_utils-7.11.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|