ominfra 0.0.0.dev122__tar.gz → 0.0.0.dev123__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {ominfra-0.0.0.dev122/ominfra.egg-info → ominfra-0.0.0.dev123}/PKG-INFO +3 -3
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/_executor.py +1 -1
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/journald/messages.py +1 -1
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/pyremote/_runcommands.py +1 -1
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/scripts/journald2aws.py +2 -2
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/scripts/supervisor.py +2216 -2044
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/context.py +16 -41
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/dispatchers.py +88 -58
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/events.py +59 -70
- ominfra-0.0.0.dev123/ominfra/supervisor/groups.py +162 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/main.py +27 -11
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/poller.py +51 -53
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/process.py +267 -352
- ominfra-0.0.0.dev123/ominfra/supervisor/signals.py +52 -0
- ominfra-0.0.0.dev123/ominfra/supervisor/states.py +57 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/supervisor.py +105 -81
- ominfra-0.0.0.dev123/ominfra/supervisor/types.py +105 -0
- ominfra-0.0.0.dev122/ominfra/supervisor/compat.py → ominfra-0.0.0.dev123/ominfra/supervisor/utils.py +34 -53
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123/ominfra.egg-info}/PKG-INFO +3 -3
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra.egg-info/SOURCES.txt +3 -1
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra.egg-info/requires.txt +2 -2
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/pyproject.toml +3 -3
- ominfra-0.0.0.dev122/ominfra/supervisor/states.py +0 -78
- ominfra-0.0.0.dev122/ominfra/supervisor/types.py +0 -54
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/LICENSE +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/MANIFEST.in +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/README.rst +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/.manifests.json +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/__about__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/__main__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/auth.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/cli.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/dataclasses.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/journald2aws/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/journald2aws/__main__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/journald2aws/cursor.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/journald2aws/driver.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/journald2aws/main.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/journald2aws/poster.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/logs.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/aws/metadata.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/gcp/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/clouds/gcp/auth.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/cmds.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/configs.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/configs.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/base.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/dirs.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/nginx.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/repo.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/supervisor.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/systemd.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/user.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/concerns/venv.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/executor/main.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/_main.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/base.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/configs.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/deploy.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/main.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/nginx.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/repo.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/runtime.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/site.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/supervisor.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/poly/venv.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/deploy/remote.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/journald/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/journald/fields.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/journald/genmessages.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/journald/tailer.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/manage/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/manage/manage.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/pyremote/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/pyremote/bootstrap.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/pyremote/runcommands.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/scripts/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/ssh.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/__main__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/configs.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/datatypes.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/supervisor/exceptions.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/tailscale/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/tailscale/api.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/tailscale/cli.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/threadworkers.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/tools/__init__.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra/tools/listresources.py +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra.egg-info/dependency_links.txt +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra.egg-info/entry_points.txt +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/ominfra.egg-info/top_level.txt +0 -0
- {ominfra-0.0.0.dev122 → ominfra-0.0.0.dev123}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ominfra
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev123
|
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.dev123
|
16
|
+
Requires-Dist: omlish==0.0.0.dev123
|
17
17
|
Provides-Extra: all
|
18
18
|
Requires-Dist: paramiko~=3.5; extra == "all"
|
19
19
|
Requires-Dist: asyncssh~=2.18; extra == "all"
|
@@ -138,7 +138,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
|
138
138
|
# ../../../../omlish/lite/check.py
|
139
139
|
|
140
140
|
|
141
|
-
def check_isinstance(v:
|
141
|
+
def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
|
142
142
|
if not isinstance(v, spec):
|
143
143
|
raise TypeError(v)
|
144
144
|
return v
|
@@ -74,5 +74,5 @@ class JournalctlMessageBuilder:
|
|
74
74
|
def feed(self, data: bytes) -> ta.Sequence[JournalctlMessage]:
|
75
75
|
ret: ta.List[JournalctlMessage] = []
|
76
76
|
for line in self._buf.feed(data):
|
77
|
-
ret.append(self._make_message(check_isinstance(line, bytes)))
|
77
|
+
ret.append(self._make_message(check_isinstance(line, bytes)))
|
78
78
|
return ret
|
@@ -221,7 +221,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
|
221
221
|
# ../../../omlish/lite/check.py
|
222
222
|
|
223
223
|
|
224
|
-
def check_isinstance(v:
|
224
|
+
def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
|
225
225
|
if not isinstance(v, spec):
|
226
226
|
raise TypeError(v)
|
227
227
|
return v
|
@@ -917,7 +917,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
|
|
917
917
|
# ../../../../../omlish/lite/check.py
|
918
918
|
|
919
919
|
|
920
|
-
def check_isinstance(v:
|
920
|
+
def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
|
921
921
|
if not isinstance(v, spec):
|
922
922
|
raise TypeError(v)
|
923
923
|
return v
|
@@ -2704,7 +2704,7 @@ class JournalctlMessageBuilder:
|
|
2704
2704
|
def feed(self, data: bytes) -> ta.Sequence[JournalctlMessage]:
|
2705
2705
|
ret: ta.List[JournalctlMessage] = []
|
2706
2706
|
for line in self._buf.feed(data):
|
2707
|
-
ret.append(self._make_message(check_isinstance(line, bytes)))
|
2707
|
+
ret.append(self._make_message(check_isinstance(line, bytes)))
|
2708
2708
|
return ret
|
2709
2709
|
|
2710
2710
|
|