ominfra 0.0.0.dev301__py3-none-any.whl → 0.0.0.dev303__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.
@@ -12,6 +12,7 @@ import typing as ta
12
12
  from omlish import check
13
13
  from omlish import lang
14
14
  from omlish.algorithm import all as alg
15
+ from omlish.lite.strings import snake_case
15
16
 
16
17
 
17
18
  if ta.TYPE_CHECKING:
@@ -271,7 +272,7 @@ class ModelGen:
271
272
 
272
273
  n = r
273
274
 
274
- return '_'.join(lang.snake_case(p) for p in ps)
275
+ return '_'.join(snake_case(p) for p in ps)
275
276
 
276
277
  #
277
278
 
@@ -4,7 +4,7 @@ bx=""
4
4
  for v in "" 3 3.{8..13}; do
5
5
  x="python$v"
6
6
  v=$($x -c "import sys; print((\"%02d\" * 3) % sys.version_info[:3])" 2>/dev/null)
7
- if [ $? -eq 0 ] && ([ -z "$bv" ] || [ "$v" \> "$bv" ]); then
7
+ if [ $? -eq 0 ] && [ "$v" \> 030799 ] && ([ -z "$bv" ] || [ "$v" \> "$bv" ]); then
8
8
  bv=$v
9
9
  bx=$x
10
10
  fi
@@ -1268,7 +1268,15 @@ class Checks:
1268
1268
  spec = (object,)
1269
1269
  return spec
1270
1270
 
1271
- def isinstance(self, v: ta.Any, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> T: # noqa
1271
+ @ta.overload
1272
+ def isinstance(self, v: ta.Any, spec: ta.Type[T], msg: CheckMessage = None) -> T:
1273
+ ...
1274
+
1275
+ @ta.overload
1276
+ def isinstance(self, v: ta.Any, spec: ta.Any, msg: CheckMessage = None) -> ta.Any:
1277
+ ...
1278
+
1279
+ def isinstance(self, v, spec, msg=None):
1272
1280
  if not isinstance(v, self._unpack_isinstance_spec(spec)):
1273
1281
  self._raise(
1274
1282
  TypeError,
@@ -1280,7 +1288,15 @@ class Checks:
1280
1288
 
1281
1289
  return v
1282
1290
 
1283
- def of_isinstance(self, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
1291
+ @ta.overload
1292
+ def of_isinstance(self, spec: ta.Type[T], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
1293
+ ...
1294
+
1295
+ @ta.overload
1296
+ def of_isinstance(self, spec: ta.Any, msg: CheckMessage = None) -> ta.Callable[[ta.Any], ta.Any]:
1297
+ ...
1298
+
1299
+ def of_isinstance(self, spec, msg=None):
1284
1300
  def inner(v):
1285
1301
  return self.isinstance(v, self._unpack_isinstance_spec(spec), msg)
1286
1302
 
ominfra/scripts/manage.py CHANGED
@@ -2507,7 +2507,15 @@ class Checks:
2507
2507
  spec = (object,)
2508
2508
  return spec
2509
2509
 
2510
- def isinstance(self, v: ta.Any, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> T: # noqa
2510
+ @ta.overload
2511
+ def isinstance(self, v: ta.Any, spec: ta.Type[T], msg: CheckMessage = None) -> T:
2512
+ ...
2513
+
2514
+ @ta.overload
2515
+ def isinstance(self, v: ta.Any, spec: ta.Any, msg: CheckMessage = None) -> ta.Any:
2516
+ ...
2517
+
2518
+ def isinstance(self, v, spec, msg=None):
2511
2519
  if not isinstance(v, self._unpack_isinstance_spec(spec)):
2512
2520
  self._raise(
2513
2521
  TypeError,
@@ -2519,7 +2527,15 @@ class Checks:
2519
2527
 
2520
2528
  return v
2521
2529
 
2522
- def of_isinstance(self, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2530
+ @ta.overload
2531
+ def of_isinstance(self, spec: ta.Type[T], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2532
+ ...
2533
+
2534
+ @ta.overload
2535
+ def of_isinstance(self, spec: ta.Any, msg: CheckMessage = None) -> ta.Callable[[ta.Any], ta.Any]:
2536
+ ...
2537
+
2538
+ def of_isinstance(self, spec, msg=None):
2523
2539
  def inner(v):
2524
2540
  return self.isinstance(v, self._unpack_isinstance_spec(spec), msg)
2525
2541
 
@@ -4937,7 +4953,7 @@ bx=""
4937
4953
  for v in "" 3 3.{8..13}; do
4938
4954
  x="python$v"
4939
4955
  v=$($x -c "import sys; print((\\"%02d\\" * 3) % sys.version_info[:3])" 2>/dev/null)
4940
- if [ $? -eq 0 ] && ([ -z "$bv" ] || [ "$v" \\> "$bv" ]); then
4956
+ if [ $? -eq 0 ] && [ "$v" \\> 030799 ] && ([ -z "$bv" ] || [ "$v" \\> "$bv" ]); then
4941
4957
  bv=$v
4942
4958
  bx=$x
4943
4959
  fi
@@ -2037,7 +2037,15 @@ class Checks:
2037
2037
  spec = (object,)
2038
2038
  return spec
2039
2039
 
2040
- def isinstance(self, v: ta.Any, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> T: # noqa
2040
+ @ta.overload
2041
+ def isinstance(self, v: ta.Any, spec: ta.Type[T], msg: CheckMessage = None) -> T:
2042
+ ...
2043
+
2044
+ @ta.overload
2045
+ def isinstance(self, v: ta.Any, spec: ta.Any, msg: CheckMessage = None) -> ta.Any:
2046
+ ...
2047
+
2048
+ def isinstance(self, v, spec, msg=None):
2041
2049
  if not isinstance(v, self._unpack_isinstance_spec(spec)):
2042
2050
  self._raise(
2043
2051
  TypeError,
@@ -2049,7 +2057,15 @@ class Checks:
2049
2057
 
2050
2058
  return v
2051
2059
 
2052
- def of_isinstance(self, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2060
+ @ta.overload
2061
+ def of_isinstance(self, spec: ta.Type[T], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2062
+ ...
2063
+
2064
+ @ta.overload
2065
+ def of_isinstance(self, spec: ta.Any, msg: CheckMessage = None) -> ta.Callable[[ta.Any], ta.Any]:
2066
+ ...
2067
+
2068
+ def of_isinstance(self, spec, msg=None):
2053
2069
  def inner(v):
2054
2070
  return self.isinstance(v, self._unpack_isinstance_spec(spec), msg)
2055
2071
 
@@ -4347,6 +4363,9 @@ class IncrementalWriteBuffer:
4347
4363
  # ../../../omlish/io/fdio/handlers.py
4348
4364
 
4349
4365
 
4366
+ ##
4367
+
4368
+
4350
4369
  class FdioHandler(abc.ABC):
4351
4370
  @abc.abstractmethod
4352
4371
  def fd(self) -> int:
@@ -4411,6 +4430,9 @@ class SocketFdioHandler(FdioHandler, abc.ABC):
4411
4430
  # ../../../omlish/io/fdio/kqueue.py
4412
4431
 
4413
4432
 
4433
+ ##
4434
+
4435
+
4414
4436
  KqueueFdioPoller: ta.Optional[ta.Type[FdioPoller]]
4415
4437
  if sys.platform == 'darwin' or sys.platform.startswith('freebsd'):
4416
4438
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ominfra
3
- Version: 0.0.0.dev301
3
+ Version: 0.0.0.dev303
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.dev301
16
- Requires-Dist: omlish==0.0.0.dev301
15
+ Requires-Dist: omdev==0.0.0.dev303
16
+ Requires-Dist: omlish==0.0.0.dev303
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.20; 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=vcI8_-BOv4f-s_TFAqvnyzvBexZ_9y5akiUEGfioCqA,3857
31
- ominfra/clouds/aws/models/gen/gen.py,sha256=NtgQfUNBs2-SRlmELiI20fW8mcSp_j_23EHtl_ZTSgc,15834
31
+ ominfra/clouds/aws/models/gen/gen.py,sha256=--CAg8rf5ipWCI__vFvxLOCqhQm6ojY0Lgt4bnY9A5I,15872
32
32
  ominfra/clouds/aws/models/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  ominfra/clouds/aws/models/services/ec2.py,sha256=IkY3d4b24nSSymjGFc4OOd_VI2cEHE7ekeYOZS9cruY,267664
34
34
  ominfra/clouds/aws/models/services/lambda_.py,sha256=HgowsHzDFf6NJrYY92TM0fmApNt5qlz8uf9j524SdbU,25803
@@ -107,14 +107,14 @@ ominfra/manage/system/packages.py,sha256=HImCsgzXxcfzAoD2PjrstaSE_qgBWtTFUVb0lTE
107
107
  ominfra/manage/system/platforms.py,sha256=F0bgYzUzCjZ2LbWVvnEq2ya_X_LfRW406LQYFL7bG44,1202
108
108
  ominfra/manage/targets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  ominfra/manage/targets/bestpython.py,sha256=6_CH_Vm9Am5aD5UV3m8uC-B8bvMNSjVIWicPmFw0aLI,631
110
- ominfra/manage/targets/bestpython.sh,sha256=Hz-8h9ITCoaG8wlfgrY-LCT7xT-UubZKFvQGxI46X9w,328
110
+ ominfra/manage/targets/bestpython.sh,sha256=RTvImgsRv-67D9Ugg5bo7NfpV2MD8zTsLt6aipdLQiQ,350
111
111
  ominfra/manage/targets/connection.py,sha256=rVI1YJxFClcF-sdttqWyIz9_XjPI01GUdwxYck0P1PA,5016
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=1P-0semXj4MFHN-kM42OSL-3ueyvLUBVmcbLiuA6mfs,171279
116
- ominfra/scripts/manage.py,sha256=M91FAkM49tY3PlQj4C-M5MA8VGKpv7Apb87NuwbQ92U,381718
117
- ominfra/scripts/supervisor.py,sha256=Ddp_5socH9n7R7kBrlrV7w5-Ud0cqHEBjDnW1pDwdx0,299908
115
+ ominfra/scripts/journald2aws.py,sha256=pX5hD_O_oteVS4JdQP4n8NATQcVkGCQ1eyxio35ZjBw,171636
116
+ ominfra/scripts/manage.py,sha256=__X7O5I6UHAQDmxYQFR1sPGHGWSmRSdfcYxFKVyakmY,382098
117
+ ominfra/scripts/supervisor.py,sha256=exHXaTr8YApCuDldgCXwttMd8CGsqqf8eUb2Qn-K3sE,300275
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.dev301.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
- ominfra-0.0.0.dev301.dist-info/METADATA,sha256=9IcF66nQ6FPhekEafqxdiHTdpEYMll7SgDch54e4X-Y,753
161
- ominfra-0.0.0.dev301.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
162
- ominfra-0.0.0.dev301.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
- ominfra-0.0.0.dev301.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
- ominfra-0.0.0.dev301.dist-info/RECORD,,
159
+ ominfra-0.0.0.dev303.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
+ ominfra-0.0.0.dev303.dist-info/METADATA,sha256=e_dHhMdXnDqynpS7gYHAVYofv_oOFFWBgfrLxXuHn3M,753
161
+ ominfra-0.0.0.dev303.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
162
+ ominfra-0.0.0.dev303.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
+ ominfra-0.0.0.dev303.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
+ ominfra-0.0.0.dev303.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.1)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5