mm-std 0.3.0__py3-none-any.whl → 0.3.2__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.
mm_std/json_.py
CHANGED
@@ -5,6 +5,7 @@ from datetime import date, datetime
|
|
5
5
|
from decimal import Decimal
|
6
6
|
from enum import Enum
|
7
7
|
from json import JSONEncoder
|
8
|
+
from pathlib import Path
|
8
9
|
|
9
10
|
from pydantic import BaseModel
|
10
11
|
|
@@ -19,6 +20,8 @@ class CustomJSONEncoder(JSONEncoder):
|
|
19
20
|
return {"err": o.err}
|
20
21
|
if isinstance(o, Decimal):
|
21
22
|
return str(o)
|
23
|
+
if isinstance(o, Path):
|
24
|
+
return str(o)
|
22
25
|
if isinstance(o, datetime | date):
|
23
26
|
return o.isoformat()
|
24
27
|
if is_dataclass(o) and not isinstance(o, type):
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mm-std
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.2
|
4
4
|
Requires-Python: >=3.12
|
5
|
-
Requires-Dist: cryptography~=44.0.
|
5
|
+
Requires-Dist: cryptography~=44.0.1
|
6
6
|
Requires-Dist: httpx[http2,socks]~=0.28.1
|
7
7
|
Requires-Dist: pydantic~=2.10.6
|
8
8
|
Requires-Dist: pydash~=8.0.5
|
@@ -8,7 +8,7 @@ mm_std/dict.py,sha256=kJBPVG9vEqHiSgKKoji8gVGL1yEBbxAmFNn0zz17AUg,180
|
|
8
8
|
mm_std/env.py,sha256=5zaR9VeIfObN-4yfgxoFeU5IM1GDeZZj9SuYf7t9sOA,125
|
9
9
|
mm_std/fs.py,sha256=RwarNRJq3tIMG6LVX_g03hasfYpjYFh_O27oVDt5IPQ,291
|
10
10
|
mm_std/http_.py,sha256=QaPPXVb-rOS0BpoKdYQ0ABm_-mcR5dNa7Uqn-SeW_kE,4119
|
11
|
-
mm_std/json_.py,sha256=
|
11
|
+
mm_std/json_.py,sha256=Naa6mBE4D0yiQGkPNRrFvndnUH3R7ovw3FeaejWV60o,1196
|
12
12
|
mm_std/log.py,sha256=6ux6njNKc_ZCQlvWn1FZR6vcSY2Cem-mQzmNXvsg5IE,913
|
13
13
|
mm_std/net.py,sha256=qdRCBIDneip6FaPNe5mx31UtYVmzqam_AoUF7ydEyjA,590
|
14
14
|
mm_std/print_.py,sha256=zB7sVbSSF8RffMxvnOdbKCXjCKtKzKV3R68pBri4NkQ,1638
|
@@ -18,6 +18,6 @@ mm_std/result.py,sha256=KtYZbVJMkwwCPcV-Tnt0TkTNyDgiALvQB1DtIEp1prc,7405
|
|
18
18
|
mm_std/str.py,sha256=jS7VAI7i_a3iqnfaW4Iw2LZRTv0Tml4kmMbP2S2IUF4,3067
|
19
19
|
mm_std/types_.py,sha256=hvZlnvBWyB8CL_MeEWWD0Y0nN677plibYn3yD-5g7xs,99
|
20
20
|
mm_std/zip.py,sha256=axzF1BwcIygtfNNTefZH7hXKaQqwe-ZH3ChuRWr9dnk,396
|
21
|
-
mm_std-0.3.
|
22
|
-
mm_std-0.3.
|
23
|
-
mm_std-0.3.
|
21
|
+
mm_std-0.3.2.dist-info/METADATA,sha256=cuEOHrPdCbXiuZ_2-7Q8hsV2u5S5wxI497_K4UWmYvI,306
|
22
|
+
mm_std-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
23
|
+
mm_std-0.3.2.dist-info/RECORD,,
|
File without changes
|