omlish 0.0.0.dev145__py3-none-any.whl → 0.0.0.dev147__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/__about__.py +2 -2
- omlish/lite/pycharm.py +0 -1
- omlish/lite/resources.py +8 -0
- omlish/manifests/load.py +6 -0
- {omlish-0.0.0.dev145.dist-info → omlish-0.0.0.dev147.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev145.dist-info → omlish-0.0.0.dev147.dist-info}/RECORD +10 -9
- {omlish-0.0.0.dev145.dist-info → omlish-0.0.0.dev147.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev145.dist-info → omlish-0.0.0.dev147.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev145.dist-info → omlish-0.0.0.dev147.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev145.dist-info → omlish-0.0.0.dev147.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/lite/pycharm.py
CHANGED
omlish/lite/resources.py
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
def read_package_resource_binary(package: str, resource: str) -> bytes:
|
2
|
+
import importlib.resources
|
3
|
+
return importlib.resources.read_binary(package, resource)
|
4
|
+
|
5
|
+
|
6
|
+
def read_package_resource_text(package: str, resource: str) -> str:
|
7
|
+
import importlib.resources
|
8
|
+
return importlib.resources.read_text(package, resource)
|
omlish/manifests/load.py
CHANGED
@@ -31,6 +31,8 @@ class ManifestLoader:
|
|
31
31
|
self._cls_cache: ta.Dict[str, type] = {}
|
32
32
|
self._raw_cache: ta.Dict[str, ta.Optional[ta.Sequence[Manifest]]] = {}
|
33
33
|
|
34
|
+
#
|
35
|
+
|
34
36
|
@classmethod
|
35
37
|
def from_entry_point(
|
36
38
|
cls,
|
@@ -52,6 +54,8 @@ class ManifestLoader:
|
|
52
54
|
|
53
55
|
return cls(module_remap=rm, **kwargs)
|
54
56
|
|
57
|
+
#
|
58
|
+
|
55
59
|
def load_cls(self, key: str) -> type:
|
56
60
|
try:
|
57
61
|
return self._cls_cache[key]
|
@@ -153,6 +157,8 @@ class ManifestLoader:
|
|
153
157
|
|
154
158
|
return lst
|
155
159
|
|
160
|
+
#
|
161
|
+
|
156
162
|
ENTRY_POINT_GROUP = 'omlish.manifests'
|
157
163
|
|
158
164
|
def discover(self) -> ta.Sequence[str]:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=RX24SRc6DCEg77PUVnaXOKCWa5TF_c9RQJdGIf7gl9c,1135
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=cjS87eUIaMvfyFbRNKoCGNxC70RIFRVnspSCKl5DPLA,3409
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/argparse.py,sha256=cqKGAqcxuxv_s62z0gq29L9KAvg_3-_rFvXKjVpRJjo,8126
|
5
5
|
omlish/c3.py,sha256=ubu7lHwss5V4UznbejAI0qXhXahrU01MysuHOZI9C4U,8116
|
@@ -323,8 +323,9 @@ omlish/lite/logs.py,sha256=1pcGu0ekhVCcLUckLSP16VccnAoprjtl5Vkdfm7y1Wg,6184
|
|
323
323
|
omlish/lite/marshal.py,sha256=1wqZWKapZ5rFgDxSkb447Xv2ce2SFEpiB1EMg1nh2BI,13530
|
324
324
|
omlish/lite/maybes.py,sha256=7OlHJ8Q2r4wQ-aRbZSlJY7x0e8gDvufFdlohGEIJ3P4,833
|
325
325
|
omlish/lite/pidfile.py,sha256=PRSDOAXmNkNwxh-Vwif0Nrs8RAmWroiNhLKIbdjwzBc,1723
|
326
|
-
omlish/lite/pycharm.py,sha256=
|
326
|
+
omlish/lite/pycharm.py,sha256=pUOJevrPClSqTCEOkQBO11LKX2003tfDcp18a03QFrc,1163
|
327
327
|
omlish/lite/reflect.py,sha256=ad_ya_zZJOQB8HoNjs9yc66R54zgflwJVPJqiBXMzqA,1681
|
328
|
+
omlish/lite/resources.py,sha256=YNSmX1Ohck1aoWRs55a-o5ChVbFJIQhtbqE-XwF55Oc,326
|
328
329
|
omlish/lite/runtime.py,sha256=lVw5_yuQNHXZLwGf_l59u8IrAtBLZWPTml6owQ55uro,439
|
329
330
|
omlish/lite/secrets.py,sha256=3Mz3V2jf__XU9qNHcH56sBSw95L3U2UPL24bjvobG0c,816
|
330
331
|
omlish/lite/socket.py,sha256=7OYgkXTcQv0wq7TQuLnl9y6dJA1ZT6Vbc1JH59QlxgY,1792
|
@@ -351,7 +352,7 @@ omlish/logs/handlers.py,sha256=UpzUf3kWBBzWOnrtljoZsLjISw3Ix-ePz3Nsmp6lRgE,255
|
|
351
352
|
omlish/logs/noisy.py,sha256=Ubc-eTH6ZbGYsLfUUi69JAotwuUwzb-SJBeGo_0dIZI,348
|
352
353
|
omlish/logs/utils.py,sha256=MgGovbP0zUrZ3FGD3qYNQWn-l0jy0Y0bStcQvv5BOmQ,391
|
353
354
|
omlish/manifests/__init__.py,sha256=P2B0dpT8D7l5lJwRGPA92IcQj6oeXfd90X5-q9BJrKg,51
|
354
|
-
omlish/manifests/load.py,sha256=
|
355
|
+
omlish/manifests/load.py,sha256=8R-S5CyQpAbxDHt5wcNF6mAYri8bGndn6R2uEVOh52Y,4809
|
355
356
|
omlish/manifests/types.py,sha256=d8bv5tknCJqclRfxCpao_8XxHo2yofhLpVHQTB-MfNw,260
|
356
357
|
omlish/marshal/__init__.py,sha256=iVA7n31L08Bdub6HKPvYOXVvDhk2CMA6rPeKDL_u1to,2298
|
357
358
|
omlish/marshal/any.py,sha256=e82OyYK3Emm1P1ClnsnxP7fIWC2iNVyW0H5nK4mLmWM,779
|
@@ -503,9 +504,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
503
504
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
504
505
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
505
506
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
506
|
-
omlish-0.0.0.
|
507
|
-
omlish-0.0.0.
|
508
|
-
omlish-0.0.0.
|
509
|
-
omlish-0.0.0.
|
510
|
-
omlish-0.0.0.
|
511
|
-
omlish-0.0.0.
|
507
|
+
omlish-0.0.0.dev147.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
508
|
+
omlish-0.0.0.dev147.dist-info/METADATA,sha256=nS6HmxhGs_7YPKXtA-OutWPomt4JOFvPmLAFwYYT7nk,4264
|
509
|
+
omlish-0.0.0.dev147.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
510
|
+
omlish-0.0.0.dev147.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
511
|
+
omlish-0.0.0.dev147.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
512
|
+
omlish-0.0.0.dev147.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|