ominfra 0.0.0.dev220__py3-none-any.whl → 0.0.0.dev221__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.
- ominfra/clouds/aws/models/gen/gen.py +2 -2
- ominfra/scripts/supervisor.py +42 -33
- {ominfra-0.0.0.dev220.dist-info → ominfra-0.0.0.dev221.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev220.dist-info → ominfra-0.0.0.dev221.dist-info}/RECORD +8 -8
- {ominfra-0.0.0.dev220.dist-info → ominfra-0.0.0.dev221.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev220.dist-info → ominfra-0.0.0.dev221.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev220.dist-info → ominfra-0.0.0.dev221.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev220.dist-info → ominfra-0.0.0.dev221.dist-info}/top_level.txt +0 -0
@@ -10,8 +10,8 @@ import keyword
|
|
10
10
|
import typing as ta
|
11
11
|
|
12
12
|
from omlish import check
|
13
|
-
from omlish import collections as col
|
14
13
|
from omlish import lang
|
14
|
+
from omlish.algorithm import all as alg
|
15
15
|
|
16
16
|
|
17
17
|
if ta.TYPE_CHECKING:
|
@@ -134,7 +134,7 @@ class ModelGen:
|
|
134
134
|
dct[shape.name] = deps
|
135
135
|
todo.update(deps - seen)
|
136
136
|
|
137
|
-
return list(lang.flatten(sorted(s - cls.BASE_SHAPE_NAMES) for s in
|
137
|
+
return list(lang.flatten(sorted(s - cls.BASE_SHAPE_NAMES) for s in alg.mut_toposort(dct)))
|
138
138
|
|
139
139
|
#
|
140
140
|
|
ominfra/scripts/supervisor.py
CHANGED
@@ -7607,50 +7607,59 @@ class CoroHttpServer:
|
|
7607
7607
|
#
|
7608
7608
|
|
7609
7609
|
def coro_handle(self) -> ta.Generator[Io, ta.Optional[bytes], None]:
|
7610
|
-
|
7611
|
-
gen = self.coro_handle_one()
|
7610
|
+
return self._coro_run_handler(self._coro_handle_one())
|
7612
7611
|
|
7613
|
-
|
7614
|
-
|
7615
|
-
|
7616
|
-
|
7617
|
-
|
7618
|
-
|
7619
|
-
|
7612
|
+
def _coro_run_handler(
|
7613
|
+
self,
|
7614
|
+
gen: ta.Generator[
|
7615
|
+
ta.Union[AnyLogIo, AnyReadIo, _Response],
|
7616
|
+
ta.Optional[bytes],
|
7617
|
+
None,
|
7618
|
+
],
|
7619
|
+
) -> ta.Generator[Io, ta.Optional[bytes], None]:
|
7620
|
+
i: ta.Optional[bytes]
|
7621
|
+
o: ta.Any = next(gen)
|
7622
|
+
while True:
|
7623
|
+
try:
|
7624
|
+
if isinstance(o, self.AnyLogIo):
|
7625
|
+
i = None
|
7626
|
+
yield o
|
7620
7627
|
|
7621
|
-
|
7622
|
-
|
7628
|
+
elif isinstance(o, self.AnyReadIo):
|
7629
|
+
i = check.isinstance((yield o), bytes)
|
7623
7630
|
|
7624
|
-
|
7625
|
-
|
7631
|
+
elif isinstance(o, self._Response):
|
7632
|
+
i = None
|
7626
7633
|
|
7627
|
-
|
7628
|
-
|
7629
|
-
|
7634
|
+
r = self._preprocess_response(o)
|
7635
|
+
hb = self._build_response_head_bytes(r)
|
7636
|
+
check.none((yield self.WriteIo(hb)))
|
7630
7637
|
|
7631
|
-
|
7632
|
-
|
7638
|
+
for b in self._yield_response_data(r):
|
7639
|
+
yield self.WriteIo(b)
|
7633
7640
|
|
7634
|
-
|
7635
|
-
|
7641
|
+
o.close()
|
7642
|
+
if o.close_connection:
|
7643
|
+
break
|
7644
|
+
o = None
|
7636
7645
|
|
7637
|
-
|
7638
|
-
|
7646
|
+
else:
|
7647
|
+
raise TypeError(o) # noqa
|
7639
7648
|
|
7640
|
-
|
7641
|
-
|
7642
|
-
|
7643
|
-
|
7644
|
-
|
7645
|
-
|
7649
|
+
try:
|
7650
|
+
o = gen.send(i)
|
7651
|
+
except EOFError:
|
7652
|
+
return
|
7653
|
+
except StopIteration:
|
7654
|
+
break
|
7646
7655
|
|
7647
|
-
|
7648
|
-
|
7649
|
-
|
7656
|
+
except Exception: # noqa
|
7657
|
+
if hasattr(o, 'close'):
|
7658
|
+
o.close()
|
7650
7659
|
|
7651
|
-
|
7660
|
+
raise
|
7652
7661
|
|
7653
|
-
def
|
7662
|
+
def _coro_handle_one(self) -> ta.Generator[
|
7654
7663
|
ta.Union[AnyLogIo, AnyReadIo, _Response],
|
7655
7664
|
ta.Optional[bytes],
|
7656
7665
|
None,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev221
|
4
4
|
Summary: ominfra
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,8 +12,8 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Operating System :: POSIX
|
13
13
|
Requires-Python: >=3.12
|
14
14
|
License-File: LICENSE
|
15
|
-
Requires-Dist: omdev==0.0.0.
|
16
|
-
Requires-Dist: omlish==0.0.0.
|
15
|
+
Requires-Dist: omdev==0.0.0.dev221
|
16
|
+
Requires-Dist: omlish==0.0.0.dev221
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.18; extra == "all"
|
@@ -28,7 +28,7 @@ ominfra/clouds/aws/models/base.py,sha256=0VtlcRo4kbjdIOqikTe_cegViBHqb-DoqJSw_8e
|
|
28
28
|
ominfra/clouds/aws/models/gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
ominfra/clouds/aws/models/gen/__main__.py,sha256=Jsrv3P7LX2Cg08W7ByZfZ1JQT4lgLDPW1qNAmShFuMk,75
|
30
30
|
ominfra/clouds/aws/models/gen/cli.py,sha256=-tsjPPqUvXVqD40grn1Of-2-YF53dvCfISrIRI2AX4s,3869
|
31
|
-
ominfra/clouds/aws/models/gen/gen.py,sha256=
|
31
|
+
ominfra/clouds/aws/models/gen/gen.py,sha256=b43N1-fId-yA5wwZFJj152NP9jWNPIwX9jQDAHYZbC0,15191
|
32
32
|
ominfra/clouds/aws/models/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
ominfra/clouds/aws/models/services/ec2.py,sha256=oktq6_-Tcmziq1fF0NQG5NDQ7kS_PUCr6ldpOKlDm28,262371
|
34
34
|
ominfra/clouds/aws/models/services/lambda_.py,sha256=LeAw6TmUwMLjB5VEYH1khWSmlSe6o_YhYjo7l2DXLFY,25766
|
@@ -114,7 +114,7 @@ ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-
|
|
114
114
|
ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
115
|
ominfra/scripts/journald2aws.py,sha256=CM1nZMpecXJpcg7icJUCJ-_DX-7CduQurxZQ7EmhQmA,171450
|
116
116
|
ominfra/scripts/manage.py,sha256=MaUur1_dDdMHt5YnE6Waxa_v70kydHzKCBHXAuTmKd0,362827
|
117
|
-
ominfra/scripts/supervisor.py,sha256=
|
117
|
+
ominfra/scripts/supervisor.py,sha256=qJzm4unCi4SbTWXj-LpLHNp2CHZX4T_vj5vITM5pNT0,296466
|
118
118
|
ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
|
119
119
|
ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
|
120
120
|
ominfra/supervisor/__main__.py,sha256=I0yFw-C08OOiZ3BF6lF1Oiv789EQXu-_j6whDhQUTEA,66
|
@@ -156,9 +156,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
|
|
156
156
|
ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
|
157
157
|
ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
158
158
|
ominfra/tools/listresources.py,sha256=BxFoxtyF2aVEcW67ZD9QujoBkJBtvIxGmKqXvLwnEHo,6180
|
159
|
-
ominfra-0.0.0.
|
160
|
-
ominfra-0.0.0.
|
161
|
-
ominfra-0.0.0.
|
162
|
-
ominfra-0.0.0.
|
163
|
-
ominfra-0.0.0.
|
164
|
-
ominfra-0.0.0.
|
159
|
+
ominfra-0.0.0.dev221.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
160
|
+
ominfra-0.0.0.dev221.dist-info/METADATA,sha256=7YF7KAovoWQlikujbL9o3ZuFXJaexjVTddE87J7Uj4k,731
|
161
|
+
ominfra-0.0.0.dev221.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
162
|
+
ominfra-0.0.0.dev221.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
163
|
+
ominfra-0.0.0.dev221.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
164
|
+
ominfra-0.0.0.dev221.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|