ominfra 0.0.0.dev257__py3-none-any.whl → 0.0.0.dev258__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/scripts/journald2aws.py +11 -5
- ominfra/scripts/supervisor.py +11 -5
- {ominfra-0.0.0.dev257.dist-info → ominfra-0.0.0.dev258.dist-info}/METADATA +5 -4
- {ominfra-0.0.0.dev257.dist-info → ominfra-0.0.0.dev258.dist-info}/RECORD +8 -8
- {ominfra-0.0.0.dev257.dist-info → ominfra-0.0.0.dev258.dist-info}/WHEEL +1 -1
- {ominfra-0.0.0.dev257.dist-info → ominfra-0.0.0.dev258.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev257.dist-info → ominfra-0.0.0.dev258.dist-info/licenses}/LICENSE +0 -0
- {ominfra-0.0.0.dev257.dist-info → ominfra-0.0.0.dev258.dist-info}/top_level.txt +0 -0
ominfra/scripts/journald2aws.py
CHANGED
@@ -2980,15 +2980,21 @@ class ReadableListBuffer:
|
|
2980
2980
|
raise EOFError(f'ReadableListBuffer got {"no" if d is None else len(d)}, expected {sz}')
|
2981
2981
|
return d
|
2982
2982
|
|
2983
|
-
def
|
2983
|
+
def read_until_(self, delim: bytes = b'\n', start_buffer: int = 0) -> ta.Union[bytes, int]:
|
2984
2984
|
if not (lst := self._lst):
|
2985
|
-
return
|
2985
|
+
return 0
|
2986
2986
|
|
2987
|
-
|
2988
|
-
|
2987
|
+
i = start_buffer
|
2988
|
+
while i < len(lst):
|
2989
|
+
if (p := lst[i].find(delim)) >= 0:
|
2989
2990
|
return self._chop(i, p + len(delim))
|
2991
|
+
i += 1
|
2990
2992
|
|
2991
|
-
return
|
2993
|
+
return i
|
2994
|
+
|
2995
|
+
def read_until(self, delim: bytes = b'\n') -> ta.Optional[bytes]:
|
2996
|
+
r = self.read_until_(delim)
|
2997
|
+
return r if isinstance(r, bytes) else None
|
2992
2998
|
|
2993
2999
|
|
2994
3000
|
class IncrementalWriteBuffer:
|
ominfra/scripts/supervisor.py
CHANGED
@@ -4217,15 +4217,21 @@ class ReadableListBuffer:
|
|
4217
4217
|
raise EOFError(f'ReadableListBuffer got {"no" if d is None else len(d)}, expected {sz}')
|
4218
4218
|
return d
|
4219
4219
|
|
4220
|
-
def
|
4220
|
+
def read_until_(self, delim: bytes = b'\n', start_buffer: int = 0) -> ta.Union[bytes, int]:
|
4221
4221
|
if not (lst := self._lst):
|
4222
|
-
return
|
4222
|
+
return 0
|
4223
4223
|
|
4224
|
-
|
4225
|
-
|
4224
|
+
i = start_buffer
|
4225
|
+
while i < len(lst):
|
4226
|
+
if (p := lst[i].find(delim)) >= 0:
|
4226
4227
|
return self._chop(i, p + len(delim))
|
4228
|
+
i += 1
|
4227
4229
|
|
4228
|
-
return
|
4230
|
+
return i
|
4231
|
+
|
4232
|
+
def read_until(self, delim: bytes = b'\n') -> ta.Optional[bytes]:
|
4233
|
+
r = self.read_until_(delim)
|
4234
|
+
return r if isinstance(r, bytes) else None
|
4229
4235
|
|
4230
4236
|
|
4231
4237
|
class IncrementalWriteBuffer:
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev258
|
4
4
|
Summary: ominfra
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,11 +12,12 @@ 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.dev258
|
16
|
+
Requires-Dist: omlish==0.0.0.dev258
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.18; extra == "all"
|
20
20
|
Provides-Extra: ssh
|
21
21
|
Requires-Dist: paramiko~=3.5; extra == "ssh"
|
22
22
|
Requires-Dist: asyncssh~=2.18; extra == "ssh"
|
23
|
+
Dynamic: license-file
|
@@ -112,9 +112,9 @@ ominfra/manage/targets/connection.py,sha256=rVI1YJxFClcF-sdttqWyIz9_XjPI01GUdwxY
|
|
112
112
|
ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhhMcE,1561
|
113
113
|
ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
|
114
114
|
ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
115
|
-
ominfra/scripts/journald2aws.py,sha256=
|
115
|
+
ominfra/scripts/journald2aws.py,sha256=ZX6qEsLVJSnRm22Mm8-euNG4zCqdMdFPz31pb9RsBOg,168504
|
116
116
|
ominfra/scripts/manage.py,sha256=Jpsbj9DUB852agbxWS2wOBWOJUZ1wK-WlRfyDvbhiVs,379523
|
117
|
-
ominfra/scripts/supervisor.py,sha256=
|
117
|
+
ominfra/scripts/supervisor.py,sha256=lv_bv0d15GUsrUN44KaN0n4_NJHhrN66BSsO2swcY7U,297117
|
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=auGP1LlbBJSFKUWNvQo_UzA8IsBNZBTMwEkFFRJ4FX4,6185
|
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.dev258.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
160
|
+
ominfra-0.0.0.dev258.dist-info/METADATA,sha256=QqNrCwQmV4Clb9qpP4z3PeUnTAeQ4z7-fuqBHWoHuwQ,753
|
161
|
+
ominfra-0.0.0.dev258.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
|
162
|
+
ominfra-0.0.0.dev258.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
|
163
|
+
ominfra-0.0.0.dev258.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
|
164
|
+
ominfra-0.0.0.dev258.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|