omlish 0.0.0.dev171__py3-none-any.whl → 0.0.0.dev172__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/.manifests.json +14 -0
- omlish/__about__.py +2 -2
- omlish/formats/repr.py +25 -0
- {omlish-0.0.0.dev171.dist-info → omlish-0.0.0.dev172.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev171.dist-info → omlish-0.0.0.dev172.dist-info}/RECORD +9 -8
- {omlish-0.0.0.dev171.dist-info → omlish-0.0.0.dev172.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev171.dist-info → omlish-0.0.0.dev172.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev171.dist-info → omlish-0.0.0.dev172.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev171.dist-info → omlish-0.0.0.dev172.dist-info}/top_level.txt +0 -0
omlish/.manifests.json
CHANGED
@@ -121,6 +121,20 @@
|
|
121
121
|
}
|
122
122
|
}
|
123
123
|
},
|
124
|
+
{
|
125
|
+
"module": ".formats.repr",
|
126
|
+
"attr": "_REPR_LAZY_CODEC",
|
127
|
+
"file": "omlish/formats/repr.py",
|
128
|
+
"line": 24,
|
129
|
+
"value": {
|
130
|
+
"$.codecs.base.LazyLoadedCodec": {
|
131
|
+
"mod_name": "omlish.formats.repr",
|
132
|
+
"attr_name": "REPR_CODEC",
|
133
|
+
"name": "repr",
|
134
|
+
"aliases": null
|
135
|
+
}
|
136
|
+
}
|
137
|
+
},
|
124
138
|
{
|
125
139
|
"module": ".formats.toml",
|
126
140
|
"attr": "_TOML_LAZY_CODEC",
|
omlish/__about__.py
CHANGED
omlish/formats/repr.py
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
import ast
|
2
|
+
import typing as ta
|
3
|
+
|
4
|
+
from .codecs import make_object_lazy_loaded_codec
|
5
|
+
from .codecs import make_str_object_codec
|
6
|
+
|
7
|
+
|
8
|
+
##
|
9
|
+
|
10
|
+
|
11
|
+
def dumps(obj: ta.Any) -> str:
|
12
|
+
return repr(obj)
|
13
|
+
|
14
|
+
|
15
|
+
def loads(s: str) -> ta.Any:
|
16
|
+
return ast.literal_eval(s)
|
17
|
+
|
18
|
+
|
19
|
+
##
|
20
|
+
|
21
|
+
|
22
|
+
REPR_CODEC = make_str_object_codec('repr', dumps, loads)
|
23
|
+
|
24
|
+
# @omlish-manifest
|
25
|
+
_REPR_LAZY_CODEC = make_object_lazy_loaded_codec(__name__, 'REPR_CODEC', REPR_CODEC)
|
@@ -1,5 +1,5 @@
|
|
1
|
-
omlish/.manifests.json,sha256=
|
2
|
-
omlish/__about__.py,sha256=
|
1
|
+
omlish/.manifests.json,sha256=lRkBDFxlAbf6lN5upo3WSf-owW8YG1T21dfpbQL-XHM,7598
|
2
|
+
omlish/__about__.py,sha256=FhrhH5_-1RC_koxri7HpjROhO4wDd-xo-r03wYYQwpU,3409
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/c3.py,sha256=ubu7lHwss5V4UznbejAI0qXhXahrU01MysuHOZI9C4U,8116
|
5
5
|
omlish/cached.py,sha256=UI-XTFBwA6YXWJJJeBn-WkwBkfzDjLBBaZf4nIJA9y0,510
|
@@ -217,6 +217,7 @@ omlish/formats/dotenv.py,sha256=qoDG4Ayu7B-8LjBBhcmNiLZW0_9LgCi3Ri2aPo9DEQ8,1931
|
|
217
217
|
omlish/formats/json5.py,sha256=odpZIShlUpv19aACWe58SoMPcv0AHKIa6zSMjlKgaMI,515
|
218
218
|
omlish/formats/pickle.py,sha256=jdp4E9WH9qVPBE3sSqbqDtUo18RbTSIiSpSzJ-IEVZw,529
|
219
219
|
omlish/formats/props.py,sha256=cek3JLFLIrpE76gvs8rs_B8yF4SpY8ooDH8apWsquwE,18953
|
220
|
+
omlish/formats/repr.py,sha256=kYrNs4o-ji8nOdp6u_L3aMgBMWN1ZAZJSAWgQQfStSQ,414
|
220
221
|
omlish/formats/toml.py,sha256=AhpVNAy87eBohBCsvIvwH2ucASWxnWXMEsMH8zB7rpI,340
|
221
222
|
omlish/formats/xml.py,sha256=ggiOwSERt4d9XmZwLZiDIh5qnFJS4jdmow9m9_9USps,1491
|
222
223
|
omlish/formats/yaml.py,sha256=ffOwGnLA6chdiFyaS7X0TBMGmHG9AoGudzKVWfQ1UOs,7389
|
@@ -568,9 +569,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
568
569
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
569
570
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
570
571
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
571
|
-
omlish-0.0.0.
|
572
|
-
omlish-0.0.0.
|
573
|
-
omlish-0.0.0.
|
574
|
-
omlish-0.0.0.
|
575
|
-
omlish-0.0.0.
|
576
|
-
omlish-0.0.0.
|
572
|
+
omlish-0.0.0.dev172.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
573
|
+
omlish-0.0.0.dev172.dist-info/METADATA,sha256=NmaRtipxdQVzOJ-RKJly49mHX61rTwtiJ5tjgdWs3QA,4264
|
574
|
+
omlish-0.0.0.dev172.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
575
|
+
omlish-0.0.0.dev172.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
576
|
+
omlish-0.0.0.dev172.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
577
|
+
omlish-0.0.0.dev172.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|