ominfra 0.0.0.dev126__tar.gz → 0.0.0.dev128__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. {ominfra-0.0.0.dev126/ominfra.egg-info → ominfra-0.0.0.dev128}/PKG-INFO +3 -3
  2. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/auth.py +1 -1
  3. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/_executor.py +1 -1
  4. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/_main.py +1 -1
  5. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/pyremote/_runcommands.py +1 -1
  6. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/scripts/journald2aws.py +2 -2
  7. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/scripts/supervisor.py +4736 -4166
  8. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/configs.py +34 -11
  9. ominfra-0.0.0.dev128/ominfra/supervisor/context.py +80 -0
  10. ominfra-0.0.0.dev128/ominfra/supervisor/dispatchers.py +33 -0
  11. ominfra-0.0.0.dev126/ominfra/supervisor/dispatchers.py → ominfra-0.0.0.dev128/ominfra/supervisor/dispatchersimpl.py +21 -14
  12. ominfra-0.0.0.dev128/ominfra/supervisor/groups.py +79 -0
  13. ominfra-0.0.0.dev128/ominfra/supervisor/groupsimpl.py +86 -0
  14. ominfra-0.0.0.dev128/ominfra/supervisor/inject.py +96 -0
  15. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/main.py +3 -3
  16. ominfra-0.0.0.dev128/ominfra/supervisor/pipes.py +85 -0
  17. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/poller.py +42 -38
  18. ominfra-0.0.0.dev128/ominfra/supervisor/privileges.py +65 -0
  19. ominfra-0.0.0.dev128/ominfra/supervisor/process.py +19 -0
  20. ominfra-0.0.0.dev126/ominfra/supervisor/process.py → ominfra-0.0.0.dev128/ominfra/supervisor/processimpl.py +125 -364
  21. ominfra-0.0.0.dev128/ominfra/supervisor/setup.py +38 -0
  22. ominfra-0.0.0.dev128/ominfra/supervisor/setupimpl.py +262 -0
  23. ominfra-0.0.0.dev128/ominfra/supervisor/spawning.py +32 -0
  24. ominfra-0.0.0.dev128/ominfra/supervisor/spawningimpl.py +350 -0
  25. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/supervisor.py +67 -84
  26. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/types.py +101 -47
  27. ominfra-0.0.0.dev128/ominfra/supervisor/utils/collections.py +52 -0
  28. ominfra-0.0.0.dev128/ominfra/supervisor/utils/diag.py +31 -0
  29. ominfra-0.0.0.dev128/ominfra/supervisor/utils/fds.py +46 -0
  30. ominfra-0.0.0.dev128/ominfra/supervisor/utils/fs.py +47 -0
  31. ominfra-0.0.0.dev128/ominfra/supervisor/utils/os.py +45 -0
  32. ominfra-0.0.0.dev128/ominfra/supervisor/utils/ostypes.py +9 -0
  33. ominfra-0.0.0.dev128/ominfra/supervisor/utils/signals.py +60 -0
  34. ominfra-0.0.0.dev128/ominfra/supervisor/utils/strings.py +105 -0
  35. ominfra-0.0.0.dev128/ominfra/supervisor/utils/users.py +67 -0
  36. ominfra-0.0.0.dev128/ominfra/tools/__init__.py +0 -0
  37. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128/ominfra.egg-info}/PKG-INFO +3 -3
  38. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra.egg-info/SOURCES.txt +19 -3
  39. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra.egg-info/requires.txt +2 -2
  40. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/pyproject.toml +3 -3
  41. ominfra-0.0.0.dev126/ominfra/supervisor/context.py +0 -418
  42. ominfra-0.0.0.dev126/ominfra/supervisor/datatypes.py +0 -175
  43. ominfra-0.0.0.dev126/ominfra/supervisor/groups.py +0 -157
  44. ominfra-0.0.0.dev126/ominfra/supervisor/inject.py +0 -71
  45. ominfra-0.0.0.dev126/ominfra/supervisor/signals.py +0 -52
  46. ominfra-0.0.0.dev126/ominfra/supervisor/utils.py +0 -206
  47. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/LICENSE +0 -0
  48. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/MANIFEST.in +0 -0
  49. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/README.rst +0 -0
  50. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/.manifests.json +0 -0
  51. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/__about__.py +0 -0
  52. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/__init__.py +0 -0
  53. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/__init__.py +0 -0
  54. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/__init__.py +0 -0
  55. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/__main__.py +0 -0
  56. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/cli.py +0 -0
  57. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/dataclasses.py +0 -0
  58. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/journald2aws/__init__.py +0 -0
  59. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/journald2aws/__main__.py +0 -0
  60. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/journald2aws/cursor.py +0 -0
  61. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/journald2aws/driver.py +0 -0
  62. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/journald2aws/main.py +0 -0
  63. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/journald2aws/poster.py +0 -0
  64. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/logs.py +0 -0
  65. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/aws/metadata.py +0 -0
  66. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/gcp/__init__.py +0 -0
  67. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/clouds/gcp/auth.py +0 -0
  68. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/cmds.py +0 -0
  69. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/configs.py +0 -0
  70. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/__init__.py +0 -0
  71. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/configs.py +0 -0
  72. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/__init__.py +0 -0
  73. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/base.py +0 -0
  74. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/__init__.py +0 -0
  75. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/dirs.py +0 -0
  76. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/nginx.py +0 -0
  77. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/repo.py +0 -0
  78. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/supervisor.py +0 -0
  79. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/systemd.py +0 -0
  80. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/user.py +0 -0
  81. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/concerns/venv.py +0 -0
  82. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/executor/main.py +0 -0
  83. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/__init__.py +0 -0
  84. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/base.py +0 -0
  85. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/configs.py +0 -0
  86. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/deploy.py +0 -0
  87. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/main.py +0 -0
  88. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/nginx.py +0 -0
  89. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/repo.py +0 -0
  90. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/runtime.py +0 -0
  91. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/site.py +0 -0
  92. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/supervisor.py +0 -0
  93. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/poly/venv.py +0 -0
  94. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/deploy/remote.py +0 -0
  95. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/journald/__init__.py +0 -0
  96. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/journald/fields.py +0 -0
  97. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/journald/genmessages.py +0 -0
  98. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/journald/messages.py +0 -0
  99. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/journald/tailer.py +0 -0
  100. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/manage/__init__.py +0 -0
  101. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/manage/manage.py +0 -0
  102. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/pyremote/__init__.py +0 -0
  103. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/pyremote/bootstrap.py +0 -0
  104. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/pyremote/runcommands.py +0 -0
  105. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/scripts/__init__.py +0 -0
  106. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/ssh.py +0 -0
  107. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/LICENSE.txt +0 -0
  108. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/__init__.py +0 -0
  109. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/__main__.py +0 -0
  110. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/events.py +0 -0
  111. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/exceptions.py +0 -0
  112. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/supervisor/states.py +0 -0
  113. {ominfra-0.0.0.dev126/ominfra/tailscale → ominfra-0.0.0.dev128/ominfra/supervisor/utils}/__init__.py +0 -0
  114. {ominfra-0.0.0.dev126/ominfra/tools → ominfra-0.0.0.dev128/ominfra/tailscale}/__init__.py +0 -0
  115. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/tailscale/api.py +0 -0
  116. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/tailscale/cli.py +0 -0
  117. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/threadworkers.py +0 -0
  118. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra/tools/listresources.py +0 -0
  119. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra.egg-info/dependency_links.txt +0 -0
  120. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra.egg-info/entry_points.txt +0 -0
  121. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/ominfra.egg-info/top_level.txt +0 -0
  122. {ominfra-0.0.0.dev126 → ominfra-0.0.0.dev128}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ominfra
3
- Version: 0.0.0.dev126
3
+ Version: 0.0.0.dev128
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.dev126
16
- Requires-Dist: omlish==0.0.0.dev126
15
+ Requires-Dist: omdev==0.0.0.dev128
16
+ Requires-Dist: omlish==0.0.0.dev128
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.18; extra == "all"
@@ -67,7 +67,7 @@ class AwsSigner:
67
67
  }
68
68
  if url_parts.port is not None:
69
69
  if url_parts.port != default_ports.get(url_parts.scheme):
70
- host = '%s:%d' % (host, url_parts.port)
70
+ host = f'{host}:{int(url_parts.port)}'
71
71
  return host
72
72
 
73
73
  @staticmethod
@@ -368,7 +368,7 @@ class StandardLogFormatter(logging.Formatter):
368
368
  return ct.strftime(datefmt) # noqa
369
369
  else:
370
370
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
371
- return '%s.%03d' % (t, record.msecs)
371
+ return '%s.%03d' % (t, record.msecs) # noqa
372
372
 
373
373
 
374
374
  ##
@@ -388,7 +388,7 @@ class StandardLogFormatter(logging.Formatter):
388
388
  return ct.strftime(datefmt) # noqa
389
389
  else:
390
390
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
391
- return '%s.%03d' % (t, record.msecs)
391
+ return '%s.%03d' % (t, record.msecs) # noqa
392
392
 
393
393
 
394
394
  ##
@@ -451,7 +451,7 @@ class StandardLogFormatter(logging.Formatter):
451
451
  return ct.strftime(datefmt) # noqa
452
452
  else:
453
453
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
454
- return '%s.%03d' % (t, record.msecs)
454
+ return '%s.%03d' % (t, record.msecs) # noqa
455
455
 
456
456
 
457
457
  ##
@@ -1252,7 +1252,7 @@ class AwsSigner:
1252
1252
  }
1253
1253
  if url_parts.port is not None:
1254
1254
  if url_parts.port != default_ports.get(url_parts.scheme):
1255
- host = '%s:%d' % (host, url_parts.port)
1255
+ host = f'{host}:{int(url_parts.port)}'
1256
1256
  return host
1257
1257
 
1258
1258
  @staticmethod
@@ -1818,7 +1818,7 @@ class StandardLogFormatter(logging.Formatter):
1818
1818
  return ct.strftime(datefmt) # noqa
1819
1819
  else:
1820
1820
  t = ct.strftime('%Y-%m-%d %H:%M:%S')
1821
- return '%s.%03d' % (t, record.msecs)
1821
+ return '%s.%03d' % (t, record.msecs) # noqa
1822
1822
 
1823
1823
 
1824
1824
  ##