omlish 0.0.0.dev139__py3-none-any.whl → 0.0.0.dev141__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/__about__.py +3 -3
- omlish/lite/cached.py +8 -0
- {omlish-0.0.0.dev139.dist-info → omlish-0.0.0.dev141.dist-info}/METADATA +5 -5
- {omlish-0.0.0.dev139.dist-info → omlish-0.0.0.dev141.dist-info}/RECORD +8 -8
- {omlish-0.0.0.dev139.dist-info → omlish-0.0.0.dev141.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev139.dist-info → omlish-0.0.0.dev141.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev139.dist-info → omlish-0.0.0.dev141.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev139.dist-info → omlish-0.0.0.dev141.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.dev141'
|
2
|
+
__revision__ = '3c5f18d26cf70e5f7c52546521cac21f20063258'
|
3
3
|
|
4
4
|
|
5
5
|
#
|
@@ -32,7 +32,7 @@ class Project(ProjectBase):
|
|
32
32
|
|
33
33
|
optional_dependencies = {
|
34
34
|
'async': [
|
35
|
-
'anyio ~= 4.
|
35
|
+
'anyio ~= 4.7',
|
36
36
|
'sniffio ~= 1.3',
|
37
37
|
|
38
38
|
'greenlet ~= 3.1',
|
omlish/lite/cached.py
CHANGED
@@ -4,6 +4,8 @@ import typing as ta
|
|
4
4
|
|
5
5
|
T = ta.TypeVar('T')
|
6
6
|
|
7
|
+
CallableT = ta.TypeVar('CallableT', bound=ta.Callable)
|
8
|
+
|
7
9
|
|
8
10
|
class _cached_nullary: # noqa
|
9
11
|
def __init__(self, fn):
|
@@ -24,3 +26,9 @@ class _cached_nullary: # noqa
|
|
24
26
|
|
25
27
|
def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
26
28
|
return _cached_nullary(fn)
|
29
|
+
|
30
|
+
|
31
|
+
def static_init(fn: CallableT) -> CallableT:
|
32
|
+
fn = cached_nullary(fn)
|
33
|
+
fn()
|
34
|
+
return fn
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: omlish
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev141
|
4
4
|
Summary: omlish
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -13,7 +13,7 @@ Classifier: Operating System :: POSIX
|
|
13
13
|
Requires-Python: >=3.12
|
14
14
|
License-File: LICENSE
|
15
15
|
Provides-Extra: all
|
16
|
-
Requires-Dist: anyio~=4.
|
16
|
+
Requires-Dist: anyio~=4.7; extra == "all"
|
17
17
|
Requires-Dist: sniffio~=1.3; extra == "all"
|
18
18
|
Requires-Dist: greenlet~=3.1; extra == "all"
|
19
19
|
Requires-Dist: trio~=0.27; extra == "all"
|
@@ -43,7 +43,7 @@ Requires-Dist: apsw~=3.47; extra == "all"
|
|
43
43
|
Requires-Dist: sqlean.py~=3.45; extra == "all"
|
44
44
|
Requires-Dist: duckdb~=1.1; extra == "all"
|
45
45
|
Requires-Dist: pytest~=8.0; extra == "all"
|
46
|
-
Requires-Dist: anyio~=4.
|
46
|
+
Requires-Dist: anyio~=4.7; extra == "all"
|
47
47
|
Requires-Dist: sniffio~=1.3; extra == "all"
|
48
48
|
Requires-Dist: asttokens~=3.0; extra == "all"
|
49
49
|
Requires-Dist: executing~=2.1; extra == "all"
|
@@ -51,7 +51,7 @@ Requires-Dist: orjson~=3.10; extra == "all"
|
|
51
51
|
Requires-Dist: pyyaml~=6.0; extra == "all"
|
52
52
|
Requires-Dist: wrapt~=1.14; extra == "all"
|
53
53
|
Provides-Extra: async
|
54
|
-
Requires-Dist: anyio~=4.
|
54
|
+
Requires-Dist: anyio~=4.7; extra == "async"
|
55
55
|
Requires-Dist: sniffio~=1.3; extra == "async"
|
56
56
|
Requires-Dist: greenlet~=3.1; extra == "async"
|
57
57
|
Requires-Dist: trio~=0.27; extra == "async"
|
@@ -91,7 +91,7 @@ Requires-Dist: duckdb~=1.1; extra == "sqldrivers"
|
|
91
91
|
Provides-Extra: testing
|
92
92
|
Requires-Dist: pytest~=8.0; extra == "testing"
|
93
93
|
Provides-Extra: plus
|
94
|
-
Requires-Dist: anyio~=4.
|
94
|
+
Requires-Dist: anyio~=4.7; extra == "plus"
|
95
95
|
Requires-Dist: sniffio~=1.3; extra == "plus"
|
96
96
|
Requires-Dist: asttokens~=3.0; extra == "plus"
|
97
97
|
Requires-Dist: executing~=2.1; extra == "plus"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=RX24SRc6DCEg77PUVnaXOKCWa5TF_c9RQJdGIf7gl9c,1135
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=lbVQBvHVP51DAurv_jhwnnJOdXwcEhuyj1x0bt806w4,3379
|
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
|
@@ -304,7 +304,7 @@ omlish/lifecycles/manager.py,sha256=Au66KaO-fI-SEJALaPUJsCHYW2GE20xextk1wKn2BEU,
|
|
304
304
|
omlish/lifecycles/states.py,sha256=zqMOU2ZU-MDNnWuwauM3_anIAiXM8LoBDElDEraptFg,1292
|
305
305
|
omlish/lifecycles/transitions.py,sha256=qQtFby-h4VzbvgaUqT2NnbNumlcOx9FVVADP9t83xj4,1939
|
306
306
|
omlish/lite/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
307
|
-
omlish/lite/cached.py,sha256=
|
307
|
+
omlish/lite/cached.py,sha256=rrc_JEv3sKJIEmCBB6g7DwPvkb1hNFmhg0mxkvuXDJw,848
|
308
308
|
omlish/lite/check.py,sha256=pQC412ffe_Zh7eHa4C1UYn6fA71Ls1vpVM0ZIOroPAY,1765
|
309
309
|
omlish/lite/contextmanagers.py,sha256=DRarS2gx15tbse1YzyI8ZLdBmWYjFgmKPe-i4CSNDYg,1458
|
310
310
|
omlish/lite/docker.py,sha256=3IVZZtIm7-UdB2SwArmN_MosTva1_KifyYp3YWjODbE,337
|
@@ -492,9 +492,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
492
492
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
493
493
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
494
494
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
495
|
-
omlish-0.0.0.
|
496
|
-
omlish-0.0.0.
|
497
|
-
omlish-0.0.0.
|
498
|
-
omlish-0.0.0.
|
499
|
-
omlish-0.0.0.
|
500
|
-
omlish-0.0.0.
|
495
|
+
omlish-0.0.0.dev141.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
496
|
+
omlish-0.0.0.dev141.dist-info/METADATA,sha256=cfycau9o86ROFODWH24zAHvvIDUhWNiw_mcG5w-KJyU,4173
|
497
|
+
omlish-0.0.0.dev141.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
498
|
+
omlish-0.0.0.dev141.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
499
|
+
omlish-0.0.0.dev141.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
500
|
+
omlish-0.0.0.dev141.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|