agi-med-common 4.2.15__py3-none-any.whl → 4.2.16__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.
- agi_med_common/__init__.py +1 -1
- agi_med_common/utils.py +7 -1
- {agi_med_common-4.2.15.dist-info → agi_med_common-4.2.16.dist-info}/METADATA +1 -1
- {agi_med_common-4.2.15.dist-info → agi_med_common-4.2.16.dist-info}/RECORD +6 -6
- {agi_med_common-4.2.15.dist-info → agi_med_common-4.2.16.dist-info}/WHEEL +0 -0
- {agi_med_common-4.2.15.dist-info → agi_med_common-4.2.16.dist-info}/top_level.txt +0 -0
agi_med_common/__init__.py
CHANGED
agi_med_common/utils.py
CHANGED
@@ -33,7 +33,13 @@ def try_parse_json(text: str | None) -> str | None:
|
|
33
33
|
def try_parse_int(text: str) -> int | None:
|
34
34
|
try:
|
35
35
|
return int(text)
|
36
|
-
except ValueError:
|
36
|
+
except (ValueError, TypeError):
|
37
|
+
return None
|
38
|
+
|
39
|
+
def try_parse_float(text: str) -> float | None:
|
40
|
+
try:
|
41
|
+
return float(text)
|
42
|
+
except (ValueError, TypeError):
|
37
43
|
return None
|
38
44
|
|
39
45
|
def pretty_line(text: str, cut_count: int = 100) -> str:
|
@@ -1,7 +1,7 @@
|
|
1
|
-
agi_med_common/__init__.py,sha256=
|
1
|
+
agi_med_common/__init__.py,sha256=cO7vW1DFmPf3Mzsqo-ghwfNaK4eD3Lr6sMjbLfMqHqU,708
|
2
2
|
agi_med_common/file_storage.py,sha256=yAP65qT0NbkaasFLhwnNzXOpd5vAetF3wP6Sbf_tbak,1766
|
3
3
|
agi_med_common/parallel_map.py,sha256=Qx6xe7DqlEUDpSucp5Hm8r9y9Iquwh9JvX7lOqHhnOw,921
|
4
|
-
agi_med_common/utils.py,sha256=
|
4
|
+
agi_med_common/utils.py,sha256=rBNAECUrvvyf-UZ650IpTfHvx5I8lYSnsB8QPBKti48,1276
|
5
5
|
agi_med_common/validators.py,sha256=vMoPN42XzC8re-zdjekk5_lNQYHuTiAWD56YLvj2Z2w,2824
|
6
6
|
agi_med_common/xml_parser.py,sha256=VvLIX_XCZao9i0qqpTVx8nx0vbFXSe8pEbdJdXnj97g,568
|
7
7
|
agi_med_common/logger/__init__.py,sha256=RW_0VZtbeJ4RsLqUXZUQWl5CtV9g840rU7qRlf5u49E,96
|
@@ -14,7 +14,7 @@ agi_med_common/models/enums.py,sha256=zv8BwaloRMp6TFEzdGsdcxnz97a4jKZ9zOSzWdG2Qc
|
|
14
14
|
agi_med_common/models/widget.py,sha256=g7Bobyk_gANghGEhjDjvi4i-YRoHo5Bm1Pr4eF-zf0U,661
|
15
15
|
agi_med_common/models/base_config_models/__init__.py,sha256=KjS_bSCka8BOMsigwcIML-e6eNB2ouMU6gxlhRmzeuY,44
|
16
16
|
agi_med_common/models/base_config_models/gigachat_config.py,sha256=WNSCTO8Fjpxc1v2LRUHfKqo9aeMDpXltTHYBFgTD2N0,422
|
17
|
-
agi_med_common-4.2.
|
18
|
-
agi_med_common-4.2.
|
19
|
-
agi_med_common-4.2.
|
20
|
-
agi_med_common-4.2.
|
17
|
+
agi_med_common-4.2.16.dist-info/METADATA,sha256=n37XcDppvuo9nW7uyrBphwnbyMleAHR6g17kAf3Worc,547
|
18
|
+
agi_med_common-4.2.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
19
|
+
agi_med_common-4.2.16.dist-info/top_level.txt,sha256=26o565jF_7wYQj7-YJfTedtT9yDxDcf8RNikOYuPq78,15
|
20
|
+
agi_med_common-4.2.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|