omlish 0.0.0.dev31__py3-none-any.whl → 0.0.0.dev33__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.
- omlish/__about__.py +8 -2
- omlish/diag/procstats.py +20 -0
- omlish/fnpairs.py +11 -0
- {omlish-0.0.0.dev31.dist-info → omlish-0.0.0.dev33.dist-info}/METADATA +3 -1
- {omlish-0.0.0.dev31.dist-info → omlish-0.0.0.dev33.dist-info}/RECORD +9 -8
- omlish-0.0.0.dev33.dist-info/entry_points.txt +2 -0
- {omlish-0.0.0.dev31.dist-info → omlish-0.0.0.dev33.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev31.dist-info → omlish-0.0.0.dev33.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev31.dist-info → omlish-0.0.0.dev33.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
__version__ = '0.0.0.
|
2
|
-
__revision__ = '
|
1
|
+
__version__ = '0.0.0.dev33'
|
2
|
+
__revision__ = 'd7a0b08ef5d46a2402c157972b3b25f71ed628ca-dirty'
|
3
3
|
|
4
4
|
|
5
5
|
#
|
@@ -62,6 +62,8 @@ class Project(ProjectBase):
|
|
62
62
|
|
63
63
|
'pyyaml ~= 5.0',
|
64
64
|
|
65
|
+
'cbor2 ~= 5.6',
|
66
|
+
|
65
67
|
'cloudpickle ~= 3.0',
|
66
68
|
],
|
67
69
|
|
@@ -104,6 +106,10 @@ class Project(ProjectBase):
|
|
104
106
|
],
|
105
107
|
}
|
106
108
|
|
109
|
+
entry_points = {
|
110
|
+
'omlish.manifests': {name: name},
|
111
|
+
}
|
112
|
+
|
107
113
|
|
108
114
|
#
|
109
115
|
|
omlish/diag/procstats.py
CHANGED
@@ -11,6 +11,26 @@ else:
|
|
11
11
|
_psutil = lang.proxy_import('psutil')
|
12
12
|
|
13
13
|
|
14
|
+
##
|
15
|
+
|
16
|
+
|
17
|
+
@dc.dataclass(frozen=True)
|
18
|
+
class Times:
|
19
|
+
user: float
|
20
|
+
system: float
|
21
|
+
children_user: float
|
22
|
+
children_system: float
|
23
|
+
elapsed: float
|
24
|
+
|
25
|
+
|
26
|
+
def times() -> Times:
|
27
|
+
t = os.times()
|
28
|
+
return Times(**{f.name: getattr(t, f.name) for f in dc.fields(Times)})
|
29
|
+
|
30
|
+
|
31
|
+
##
|
32
|
+
|
33
|
+
|
14
34
|
@dc.dataclass(frozen=True, kw_only=True)
|
15
35
|
class ProcStats:
|
16
36
|
pid: int
|
omlish/fnpairs.py
CHANGED
@@ -33,6 +33,7 @@ if ta.TYPE_CHECKING:
|
|
33
33
|
import struct as _struct
|
34
34
|
import tomllib as _tomllib
|
35
35
|
|
36
|
+
import cbor2 as _cbor2
|
36
37
|
import cloudpickle as _cloudpickle
|
37
38
|
import json5 as _json5
|
38
39
|
import lz4.frame as _lz4_frame
|
@@ -49,6 +50,7 @@ else:
|
|
49
50
|
_struct = lang.proxy_import('struct')
|
50
51
|
_tomllib = lang.proxy_import('tomllib')
|
51
52
|
|
53
|
+
_cbor2 = lang.proxy_import('cbor2')
|
52
54
|
_cloudpickle = lang.proxy_import('cloudpickle')
|
53
55
|
_json5 = lang.proxy_import('json5')
|
54
56
|
_lz4_frame = lang.proxy_import('lz4.frame')
|
@@ -449,6 +451,15 @@ class Toml(ObjectStr_):
|
|
449
451
|
#
|
450
452
|
|
451
453
|
|
454
|
+
@_register_extension('cbor')
|
455
|
+
class Cbor(ObjectBytes_):
|
456
|
+
def forward(self, f: ta.Any) -> bytes:
|
457
|
+
return _cbor2.dumps(f)
|
458
|
+
|
459
|
+
def backward(self, t: bytes) -> ta.Any:
|
460
|
+
return _cbor2.loads(t)
|
461
|
+
|
462
|
+
|
452
463
|
@_register_extension('clpkl')
|
453
464
|
@dc.dataclass(frozen=True)
|
454
465
|
class Cloudpickle(ObjectBytes_):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: omlish
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev33
|
4
4
|
Summary: omlish
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -27,6 +27,7 @@ Requires-Dist: orjson ~=3.10 ; extra == 'all'
|
|
27
27
|
Requires-Dist: ujson ~=5.10 ; extra == 'all'
|
28
28
|
Requires-Dist: json5 ~=0.9 ; extra == 'all'
|
29
29
|
Requires-Dist: pyyaml ~=5.0 ; extra == 'all'
|
30
|
+
Requires-Dist: cbor2 ~=5.6 ; extra == 'all'
|
30
31
|
Requires-Dist: cloudpickle ~=3.0 ; extra == 'all'
|
31
32
|
Requires-Dist: httpx[http2] ~=0.27 ; extra == 'all'
|
32
33
|
Requires-Dist: wrapt ~=1.14 ; extra == 'all'
|
@@ -60,6 +61,7 @@ Requires-Dist: orjson ~=3.10 ; extra == 'formats'
|
|
60
61
|
Requires-Dist: ujson ~=5.10 ; extra == 'formats'
|
61
62
|
Requires-Dist: json5 ~=0.9 ; extra == 'formats'
|
62
63
|
Requires-Dist: pyyaml ~=5.0 ; extra == 'formats'
|
64
|
+
Requires-Dist: cbor2 ~=5.6 ; extra == 'formats'
|
63
65
|
Requires-Dist: cloudpickle ~=3.0 ; extra == 'formats'
|
64
66
|
Provides-Extra: http
|
65
67
|
Requires-Dist: httpx[http2] ~=0.27 ; extra == 'http'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=N1F-Xz3GaBn2H1p7uKzhkhKCQV8QVR0t76XD6wmFtXA,3
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=xjoa7npUSeDkmPugKOKRKNOqhE4mtmDjEvagP_tejho,2814
|
3
3
|
omlish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
omlish/argparse.py,sha256=QRQmX9G0-L_nATkFtGHvpd4qrpYzKATdjuFLbBqzJPM,6224
|
5
5
|
omlish/c3.py,sha256=W5EwYx9Por3rWYLkKUitJ6OoRMLLgVTfLTyroOz41Y0,8047
|
@@ -9,7 +9,7 @@ omlish/datetimes.py,sha256=HajeM1kBvwlTa-uR1TTZHmZ3zTPnnUr1uGGQhiO1XQ0,2152
|
|
9
9
|
omlish/defs.py,sha256=T3bq_7h_tO3nDB5RAFBn7DkdeQgqheXzkFColbOHZko,4890
|
10
10
|
omlish/docker.py,sha256=uRVJUJwGtTFYhm4XeztrVEYk93f0NI5VpjEKQaN_5uY,6453
|
11
11
|
omlish/dynamic.py,sha256=35C_cCX_Vq2HrHzGk5T-zbrMvmUdiIiwDzDNixczoDo,6541
|
12
|
-
omlish/fnpairs.py,sha256=
|
12
|
+
omlish/fnpairs.py,sha256=Sl8CMFNyDS-1JYAjSWqnT5FmUm9Lj6o7FxSRo7g4jww,10875
|
13
13
|
omlish/fnpipes.py,sha256=AJkgz9nvRRm7oqw7ZgYyz21klu276LWi54oYCLg-vOg,2196
|
14
14
|
omlish/genmachine.py,sha256=LCMiqvK32dAWtrlB6lKw9tXdQFiXC8rRdk4TMQYIroU,1603
|
15
15
|
omlish/iterators.py,sha256=GGLC7RIT86uXMjhIIIqnff_Iu5SI_b9rXYywYGFyzmo,7292
|
@@ -94,7 +94,7 @@ omlish/dataclasses/impl/utils.py,sha256=aER2iL3UAtgS1BdLuEvTr9Tr2wC28wk1kiOeO-jI
|
|
94
94
|
omlish/diag/__init__.py,sha256=BYQoq12W2qU0O7m2Z-RLCX6YLIYEW9MmfN7_i9--Yk0,132
|
95
95
|
omlish/diag/asts.py,sha256=BveUUNUcaAm4Hg55f4ZxGSI313E4L8cCZ5XjHpEkKVI,3325
|
96
96
|
omlish/diag/procfs.py,sha256=ggIeFoaNZ4j6HvKTiXD6Q3b9apgto7j55pwswCrIHXE,9581
|
97
|
-
omlish/diag/procstats.py,sha256=
|
97
|
+
omlish/diag/procstats.py,sha256=UkqxREqfd-38xPYZ9T1SIJISz5ARQCEhTtOZrxtm2dE,777
|
98
98
|
omlish/diag/ps.py,sha256=1JWxZen3fVG-20R6ZZ8BtO_gpzw_5bhHZiKdoHkgxoU,1004
|
99
99
|
omlish/diag/pycharm.py,sha256=V-gPbKUcGqgynCy8N4bYORmXr7Jl92uQyOPtjko-NqY,3066
|
100
100
|
omlish/diag/pydevd.py,sha256=Fsx9rfCOnwLD6RLBqH0uAdtq75rbNeBAQfiDvIBd3e0,7295
|
@@ -315,8 +315,9 @@ omlish/text/delimit.py,sha256=ubPXcXQmtbOVrUsNh5gH1mDq5H-n1y2R4cPL5_DQf68,4928
|
|
315
315
|
omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,3296
|
316
316
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
317
317
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
318
|
-
omlish-0.0.0.
|
319
|
-
omlish-0.0.0.
|
320
|
-
omlish-0.0.0.
|
321
|
-
omlish-0.0.0.
|
322
|
-
omlish-0.0.0.
|
318
|
+
omlish-0.0.0.dev33.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
319
|
+
omlish-0.0.0.dev33.dist-info/METADATA,sha256=tyPFW8BHYR66Ly8cxO-HkEqJAcDbHGFsnUpkr0NKlEo,3786
|
320
|
+
omlish-0.0.0.dev33.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
321
|
+
omlish-0.0.0.dev33.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
322
|
+
omlish-0.0.0.dev33.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
323
|
+
omlish-0.0.0.dev33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|