omlish 0.0.0.dev435__py3-none-any.whl → 0.0.0.dev437__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 +2 -2
- omlish/iterators/__init__.py +26 -20
- omlish/sql/__init__.py +15 -20
- omlish/subprocesses/all.py +135 -0
- {omlish-0.0.0.dev435.dist-info → omlish-0.0.0.dev437.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev435.dist-info → omlish-0.0.0.dev437.dist-info}/RECORD +10 -9
- {omlish-0.0.0.dev435.dist-info → omlish-0.0.0.dev437.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev435.dist-info → omlish-0.0.0.dev437.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev435.dist-info → omlish-0.0.0.dev437.dist-info}/licenses/LICENSE +0 -0
- {omlish-0.0.0.dev435.dist-info → omlish-0.0.0.dev437.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/iterators/__init__.py
CHANGED
@@ -1,23 +1,29 @@
|
|
1
|
-
from
|
2
|
-
PeekIterator,
|
3
|
-
PrefetchIterator,
|
4
|
-
ProxyIterator,
|
5
|
-
RetainIterator,
|
6
|
-
)
|
1
|
+
from .. import lang as _lang # noqa
|
7
2
|
|
8
|
-
from .recipes import ( # noqa
|
9
|
-
sliding_window,
|
10
|
-
)
|
11
3
|
|
12
|
-
|
13
|
-
|
14
|
-
merge_on,
|
15
|
-
take,
|
16
|
-
unzip,
|
17
|
-
)
|
4
|
+
with _lang.auto_proxy_init(globals()):
|
5
|
+
##
|
18
6
|
|
19
|
-
from .
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
7
|
+
from .iterators import ( # noqa
|
8
|
+
PeekIterator,
|
9
|
+
PrefetchIterator,
|
10
|
+
ProxyIterator,
|
11
|
+
RetainIterator,
|
12
|
+
)
|
13
|
+
|
14
|
+
from .recipes import ( # noqa
|
15
|
+
sliding_window,
|
16
|
+
)
|
17
|
+
|
18
|
+
from .tools import ( # noqa
|
19
|
+
expand_indexed_pairs,
|
20
|
+
merge_on,
|
21
|
+
take,
|
22
|
+
unzip,
|
23
|
+
)
|
24
|
+
|
25
|
+
from .unique import ( # noqa
|
26
|
+
UniqueItem,
|
27
|
+
UniqueIterator,
|
28
|
+
UniqueStats,
|
29
|
+
)
|
omlish/sql/__init__.py
CHANGED
@@ -1,29 +1,24 @@
|
|
1
1
|
# ruff: noqa: I001
|
2
|
-
import typing as _ta
|
3
|
-
|
4
2
|
from .. import lang as _lang
|
5
3
|
|
6
4
|
|
7
|
-
|
5
|
+
with _lang.auto_proxy_init(globals()):
|
6
|
+
##
|
7
|
+
|
8
8
|
from . import api # noqa
|
9
|
-
else:
|
10
|
-
globals()['api'] = _lang.proxy_import('.api', __package__)
|
11
9
|
|
12
|
-
from .dbs import ( # noqa
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
)
|
10
|
+
from .dbs import ( # noqa
|
11
|
+
DbLoc,
|
12
|
+
DbSpec,
|
13
|
+
DbType,
|
14
|
+
DbTypes,
|
15
|
+
HostDbLoc,
|
16
|
+
UrlDbLoc,
|
17
|
+
)
|
20
18
|
|
21
|
-
from .qualifiedname import ( # noqa
|
22
|
-
|
23
|
-
|
24
|
-
)
|
19
|
+
from .qualifiedname import ( # noqa
|
20
|
+
QualifiedName,
|
21
|
+
qn,
|
22
|
+
)
|
25
23
|
|
26
|
-
if _ta.TYPE_CHECKING:
|
27
24
|
from . import queries # noqa
|
28
|
-
else:
|
29
|
-
globals()['queries'] = _lang.proxy_import('.queries', __package__)
|
@@ -0,0 +1,135 @@
|
|
1
|
+
import sys as _sys
|
2
|
+
import typing as _ta
|
3
|
+
|
4
|
+
from .. import lang as _lang # noqa
|
5
|
+
|
6
|
+
|
7
|
+
with _lang.auto_proxy_init(globals()):
|
8
|
+
##
|
9
|
+
|
10
|
+
from .asyncs import ( # noqa
|
11
|
+
AbstractAsyncSubprocesses,
|
12
|
+
)
|
13
|
+
|
14
|
+
from .base import ( # noqa
|
15
|
+
SubprocessChannelOption,
|
16
|
+
|
17
|
+
VerboseCalledProcessError,
|
18
|
+
BaseSubprocesses,
|
19
|
+
)
|
20
|
+
|
21
|
+
from .maysync import ( # noqa
|
22
|
+
MaysyncSubprocesses,
|
23
|
+
)
|
24
|
+
|
25
|
+
from .run import ( # noqa
|
26
|
+
SubprocessRunOutput,
|
27
|
+
SubprocessRun,
|
28
|
+
SubprocessRunnable,
|
29
|
+
)
|
30
|
+
|
31
|
+
from .sync import ( # noqa
|
32
|
+
AbstractSubprocesses,
|
33
|
+
|
34
|
+
Subprocesses,
|
35
|
+
|
36
|
+
subprocesses,
|
37
|
+
)
|
38
|
+
|
39
|
+
from .utils import ( # noqa
|
40
|
+
subprocess_close as close,
|
41
|
+
)
|
42
|
+
|
43
|
+
from .wrap import ( # noqa
|
44
|
+
subprocess_shell_wrap_exec as shell_wrap_exec,
|
45
|
+
subprocess_maybe_shell_wrap_exec as maybe_shell_wrap_exec,
|
46
|
+
)
|
47
|
+
|
48
|
+
|
49
|
+
##
|
50
|
+
|
51
|
+
|
52
|
+
if _ta.TYPE_CHECKING:
|
53
|
+
from . import sync as _sync # noqa
|
54
|
+
else:
|
55
|
+
_sync = _lang.proxy_import('.sync', __package__)
|
56
|
+
|
57
|
+
|
58
|
+
def run(
|
59
|
+
*cmd: str,
|
60
|
+
input: _ta.Any = None, # noqa
|
61
|
+
timeout: '_lang.TimeoutLike' = None,
|
62
|
+
check: bool = False,
|
63
|
+
capture_output: bool | None = None,
|
64
|
+
**kwargs: _ta.Any,
|
65
|
+
) -> 'SubprocessRunOutput':
|
66
|
+
return _sync.subprocesses.run(
|
67
|
+
*cmd,
|
68
|
+
input=input,
|
69
|
+
timeout=timeout,
|
70
|
+
check=check,
|
71
|
+
capture_output=capture_output,
|
72
|
+
**kwargs,
|
73
|
+
)
|
74
|
+
|
75
|
+
|
76
|
+
def check_call(
|
77
|
+
*cmd: str,
|
78
|
+
stdout: _ta.Any = _sys.stderr,
|
79
|
+
**kwargs: _ta.Any,
|
80
|
+
) -> None:
|
81
|
+
return _sync.subprocesses.check_call(
|
82
|
+
*cmd,
|
83
|
+
stdout=stdout,
|
84
|
+
**kwargs,
|
85
|
+
)
|
86
|
+
|
87
|
+
|
88
|
+
def check_output(
|
89
|
+
*cmd: str,
|
90
|
+
**kwargs: _ta.Any,
|
91
|
+
) -> bytes:
|
92
|
+
return _sync.subprocesses.check_output(
|
93
|
+
*cmd,
|
94
|
+
**kwargs,
|
95
|
+
)
|
96
|
+
|
97
|
+
|
98
|
+
def check_output_str(
|
99
|
+
*cmd: str,
|
100
|
+
**kwargs: _ta.Any,
|
101
|
+
) -> str:
|
102
|
+
return _sync.subprocesses.check_output_str(
|
103
|
+
*cmd,
|
104
|
+
**kwargs,
|
105
|
+
)
|
106
|
+
|
107
|
+
|
108
|
+
def try_call(
|
109
|
+
*cmd: str,
|
110
|
+
**kwargs: _ta.Any,
|
111
|
+
) -> bool:
|
112
|
+
return _sync.subprocesses.try_call(
|
113
|
+
*cmd,
|
114
|
+
**kwargs,
|
115
|
+
)
|
116
|
+
|
117
|
+
|
118
|
+
def try_output(
|
119
|
+
*cmd: str,
|
120
|
+
**kwargs: _ta.Any,
|
121
|
+
) -> bytes | None:
|
122
|
+
return _sync.subprocesses.try_output(
|
123
|
+
*cmd,
|
124
|
+
**kwargs,
|
125
|
+
)
|
126
|
+
|
127
|
+
|
128
|
+
def try_output_str(
|
129
|
+
*cmd: str,
|
130
|
+
**kwargs: _ta.Any,
|
131
|
+
) -> str | None:
|
132
|
+
return _sync.subprocesses.try_output_str(
|
133
|
+
*cmd,
|
134
|
+
**kwargs,
|
135
|
+
)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.omlish-manifests.json,sha256=FLw7xkPiSXuImZgqSP8BwrEib2R1doSzUPLUkc-QUIA,8410
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=PkT-Y5AG9OGh2-3gygGqcUYqDp5dICnXCJzUbc9As6g,3575
|
3
3
|
omlish/__init__.py,sha256=SsyiITTuK0v74XpKV8dqNaCmjOlan1JZKrHQv5rWKPA,253
|
4
4
|
omlish/c3.py,sha256=ZNIMl1kwg3qdei4DiUrJPQe5M81S1e76N-GuNSwLBAE,8683
|
5
5
|
omlish/cached.py,sha256=MLap_p0rdGoDIMVhXVHm1tsbcWobJF0OanoodV03Ju8,542
|
@@ -414,7 +414,7 @@ omlish/io/fdio/handlers.py,sha256=fJDNZz_MBBMU5C1HClFOHi-G9bCzL1v8KiSswb0BvE4,14
|
|
414
414
|
omlish/io/fdio/kqueue.py,sha256=xRxDPKcOw5_bMDS0buF5xi12WHok4reNnnaYTX4kkCk,3843
|
415
415
|
omlish/io/fdio/manager.py,sha256=I4KDZGo8fkBe0LAhpN0rmP9KJHyXRynypcCYsTzEjS4,1261
|
416
416
|
omlish/io/fdio/pollers.py,sha256=5buOA47raq2PRwDuQ9pNwsahX0rP7nBm30CMcleiL08,5553
|
417
|
-
omlish/iterators/__init__.py,sha256=
|
417
|
+
omlish/iterators/__init__.py,sha256=Q35IkvmooW1WX2SlCm5nVGydHUCBXvT-l4fXpMu_o3k,513
|
418
418
|
omlish/iterators/iterators.py,sha256=RxW35yQ5ed8vBQ22IqpDXFx-i5JiLQdp7-pkMZXhJJ8,3159
|
419
419
|
omlish/iterators/recipes.py,sha256=wOwOZg-zWG9Zc3wcAxJFSe2rtavVBYwZOfG09qYEx_4,472
|
420
420
|
omlish/iterators/tools.py,sha256=M16LXrJhMdsz5ea2qH0vws30ZvhQuQSCVFSLpRf_gTg,2096
|
@@ -701,7 +701,7 @@ omlish/specs/jsonschema/schemas/draft202012/vocabularies/validation.json,sha256=
|
|
701
701
|
omlish/specs/openapi/__init__.py,sha256=KS7OHPBlXwBeTvmsUQy0VMzKYdz2RyH3qLF3bU0NXUw,147
|
702
702
|
omlish/specs/openapi/_marshal.py,sha256=6CB2LCwFfU5rstqkgN_j4Z5rbnba2glzOxcSd01uffI,4451
|
703
703
|
omlish/specs/openapi/openapi.py,sha256=6KGY_d8HOyG7ssHIWM40MCXgIMzNLiLKHYNggTSpAYM,12027
|
704
|
-
omlish/sql/__init__.py,sha256=
|
704
|
+
omlish/sql/__init__.py,sha256=JjgIiP2YfiHHIANP7qgkJUG0IMIRzzvKntyhdDKeNdY,384
|
705
705
|
omlish/sql/abc.py,sha256=3hrCjB4jnPVMef_YXClCblzYUZ9l9yaxJJdd5_Nu9GM,4043
|
706
706
|
omlish/sql/dbapi.py,sha256=DfMxCyltpMj6hUiLti1omUvJyMGbrkGxcz2ywolOpPA,2979
|
707
707
|
omlish/sql/dbs.py,sha256=65e388987upJpsFX8bNL7uhiYv2sCsmk9Y04V0MXdsI,1873
|
@@ -751,6 +751,7 @@ omlish/sql/tabledefs/elements.py,sha256=lP_Ch19hKmiGYPQVeC8HpFaKdTYnXi2FfpfwKMxZ
|
|
751
751
|
omlish/sql/tabledefs/lower.py,sha256=i4_QkVlVH5U99O6pqokrB661AudNVJ9Q-OwtkKOBleU,1410
|
752
752
|
omlish/sql/tabledefs/tabledefs.py,sha256=lIhvlt0pk6G7RZAtDFsFXm5j0l9BvRfnP7vNGeydHtE,816
|
753
753
|
omlish/subprocesses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
754
|
+
omlish/subprocesses/all.py,sha256=D6K8_LlxXBURL3kREqyqBc-mwMytV9aHnJyvywjHo24,2451
|
754
755
|
omlish/subprocesses/asyncs.py,sha256=G0KeH53yRsLJrLjYCrtQgDS3RKA0QRaSgdGDMiNGXI8,2710
|
755
756
|
omlish/subprocesses/base.py,sha256=wFewm8m5D6Qln6N9WjsIHxF5nqmQ8xGaBYfG1BSNdFk,6186
|
756
757
|
omlish/subprocesses/editor.py,sha256=xBrd7gY0akhRfDIBK5YIBrYMHECtl_8r499iKViyfpQ,2634
|
@@ -898,9 +899,9 @@ omlish/typedvalues/marshal.py,sha256=AtBz7Jq-BfW8vwM7HSxSpR85JAXmxK2T0xDblmm1HI0
|
|
898
899
|
omlish/typedvalues/of_.py,sha256=UXkxSj504WI2UrFlqdZJbu2hyDwBhL7XVrc2qdR02GQ,1309
|
899
900
|
omlish/typedvalues/reflect.py,sha256=PAvKW6T4cW7u--iX80w3HWwZUS3SmIZ2_lQjT65uAyk,1026
|
900
901
|
omlish/typedvalues/values.py,sha256=ym46I-q2QJ_6l4UlERqv3yj87R-kp8nCKMRph0xQ3UA,1307
|
901
|
-
omlish-0.0.0.
|
902
|
-
omlish-0.0.0.
|
903
|
-
omlish-0.0.0.
|
904
|
-
omlish-0.0.0.
|
905
|
-
omlish-0.0.0.
|
906
|
-
omlish-0.0.0.
|
902
|
+
omlish-0.0.0.dev437.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
903
|
+
omlish-0.0.0.dev437.dist-info/METADATA,sha256=2_Z3T_A2_h4ZPbJLqWYJyqEE-sYaVCp0-cNlmzIJ6M4,19005
|
904
|
+
omlish-0.0.0.dev437.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
905
|
+
omlish-0.0.0.dev437.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
906
|
+
omlish-0.0.0.dev437.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
907
|
+
omlish-0.0.0.dev437.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|