ominfra 0.0.0.dev438__py3-none-any.whl → 0.0.0.dev440__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.

Potentially problematic release.


This version of ominfra might be problematic. Click here for more details.

@@ -1368,6 +1368,7 @@ class AttrOps(ta.Generic[T]):
1368
1368
  o: ta.Union[
1369
1369
  str,
1370
1370
  ta.Tuple[str, str],
1371
+ ta.Mapping[str, ta.Any],
1371
1372
  'AttrOps.Attr',
1372
1373
  ],
1373
1374
  ) -> 'AttrOps.Attr':
@@ -1375,12 +1376,16 @@ class AttrOps(ta.Generic[T]):
1375
1376
  return o
1376
1377
  elif isinstance(o, str):
1377
1378
  return cls(o)
1378
- else:
1379
+ elif isinstance(o, tuple):
1379
1380
  name, disp = o
1380
1381
  return cls(
1381
1382
  name,
1382
1383
  display=disp,
1383
1384
  )
1385
+ elif isinstance(o, ta.Mapping):
1386
+ return cls(**o)
1387
+ else:
1388
+ raise TypeError(o)
1384
1389
 
1385
1390
  @property
1386
1391
  def name(self) -> str:
@@ -1404,6 +1409,7 @@ class AttrOps(ta.Generic[T]):
1404
1409
  *attrs: ta.Sequence[ta.Union[
1405
1410
  str,
1406
1411
  ta.Tuple[str, str],
1412
+ ta.Mapping[str, ta.Any],
1407
1413
  Attr,
1408
1414
  ]],
1409
1415
  with_module: bool = False,
@@ -1488,8 +1494,8 @@ class AttrOps(ta.Generic[T]):
1488
1494
 
1489
1495
  attrs: ta.List[AttrOps.Attr] = []
1490
1496
  for o in raw:
1491
- if isinstance(o, AttrOps.Attr):
1492
- attrs.append(o)
1497
+ if isinstance(o, (AttrOps.Attr, ta.Mapping)):
1498
+ attrs.append(AttrOps.Attr.of(o))
1493
1499
  continue
1494
1500
 
1495
1501
  if isinstance(o, tuple):
ominfra/scripts/manage.py CHANGED
@@ -2547,6 +2547,7 @@ class AttrOps(ta.Generic[T]):
2547
2547
  o: ta.Union[
2548
2548
  str,
2549
2549
  ta.Tuple[str, str],
2550
+ ta.Mapping[str, ta.Any],
2550
2551
  'AttrOps.Attr',
2551
2552
  ],
2552
2553
  ) -> 'AttrOps.Attr':
@@ -2554,12 +2555,16 @@ class AttrOps(ta.Generic[T]):
2554
2555
  return o
2555
2556
  elif isinstance(o, str):
2556
2557
  return cls(o)
2557
- else:
2558
+ elif isinstance(o, tuple):
2558
2559
  name, disp = o
2559
2560
  return cls(
2560
2561
  name,
2561
2562
  display=disp,
2562
2563
  )
2564
+ elif isinstance(o, ta.Mapping):
2565
+ return cls(**o)
2566
+ else:
2567
+ raise TypeError(o)
2563
2568
 
2564
2569
  @property
2565
2570
  def name(self) -> str:
@@ -2583,6 +2588,7 @@ class AttrOps(ta.Generic[T]):
2583
2588
  *attrs: ta.Sequence[ta.Union[
2584
2589
  str,
2585
2590
  ta.Tuple[str, str],
2591
+ ta.Mapping[str, ta.Any],
2586
2592
  Attr,
2587
2593
  ]],
2588
2594
  with_module: bool = False,
@@ -2667,8 +2673,8 @@ class AttrOps(ta.Generic[T]):
2667
2673
 
2668
2674
  attrs: ta.List[AttrOps.Attr] = []
2669
2675
  for o in raw:
2670
- if isinstance(o, AttrOps.Attr):
2671
- attrs.append(o)
2676
+ if isinstance(o, (AttrOps.Attr, ta.Mapping)):
2677
+ attrs.append(AttrOps.Attr.of(o))
2672
2678
  continue
2673
2679
 
2674
2680
  if isinstance(o, tuple):
@@ -1893,6 +1893,7 @@ class AttrOps(ta.Generic[T]):
1893
1893
  o: ta.Union[
1894
1894
  str,
1895
1895
  ta.Tuple[str, str],
1896
+ ta.Mapping[str, ta.Any],
1896
1897
  'AttrOps.Attr',
1897
1898
  ],
1898
1899
  ) -> 'AttrOps.Attr':
@@ -1900,12 +1901,16 @@ class AttrOps(ta.Generic[T]):
1900
1901
  return o
1901
1902
  elif isinstance(o, str):
1902
1903
  return cls(o)
1903
- else:
1904
+ elif isinstance(o, tuple):
1904
1905
  name, disp = o
1905
1906
  return cls(
1906
1907
  name,
1907
1908
  display=disp,
1908
1909
  )
1910
+ elif isinstance(o, ta.Mapping):
1911
+ return cls(**o)
1912
+ else:
1913
+ raise TypeError(o)
1909
1914
 
1910
1915
  @property
1911
1916
  def name(self) -> str:
@@ -1929,6 +1934,7 @@ class AttrOps(ta.Generic[T]):
1929
1934
  *attrs: ta.Sequence[ta.Union[
1930
1935
  str,
1931
1936
  ta.Tuple[str, str],
1937
+ ta.Mapping[str, ta.Any],
1932
1938
  Attr,
1933
1939
  ]],
1934
1940
  with_module: bool = False,
@@ -2013,8 +2019,8 @@ class AttrOps(ta.Generic[T]):
2013
2019
 
2014
2020
  attrs: ta.List[AttrOps.Attr] = []
2015
2021
  for o in raw:
2016
- if isinstance(o, AttrOps.Attr):
2017
- attrs.append(o)
2022
+ if isinstance(o, (AttrOps.Attr, ta.Mapping)):
2023
+ attrs.append(AttrOps.Attr.of(o))
2018
2024
  continue
2019
2025
 
2020
2026
  if isinstance(o, tuple):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ominfra
3
- Version: 0.0.0.dev438
3
+ Version: 0.0.0.dev440
4
4
  Summary: ominfra
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Python: >=3.13
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omdev==0.0.0.dev438
18
- Requires-Dist: omlish==0.0.0.dev438
17
+ Requires-Dist: omdev==0.0.0.dev440
18
+ Requires-Dist: omlish==0.0.0.dev440
19
19
  Provides-Extra: all
20
20
  Requires-Dist: paramiko~=4.0; extra == "all"
21
21
  Requires-Dist: asyncssh~=2.21; extra == "all"
@@ -112,9 +112,9 @@ ominfra/manage/targets/connection.py,sha256=mOHCsDVG-DZBhl3Mb7TTr1vhPb0gxDOOMW1x
112
112
  ominfra/manage/targets/inject.py,sha256=3M4wBkxtvymq_yhiotHlTN8iydELMjVCndyp9Bq-4eo,1572
113
113
  ominfra/manage/targets/targets.py,sha256=LjSQrDsHEjEQMDHcxtNKmLjy0YGLXJRGPFdUjazzFIM,1918
114
114
  ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
- ominfra/scripts/journald2aws.py,sha256=liuYP9LafxEtdpTNwmg0NNud3jvREALZinjOm185x6c,242365
116
- ominfra/scripts/manage.py,sha256=z15lbtJDoDWCOwdyxstghnE311b5SMiE9r9Zdru6Kus,466302
117
- ominfra/scripts/supervisor.py,sha256=hnvhbeCLrvEzyavM6NjVS5s0ohetXXiGrFVyfOe2FXs,375921
115
+ ominfra/scripts/journald2aws.py,sha256=9DWt-aBq8D247C80cgp6xzDPujHAi4iRtpC0Sj2_5xs,242632
116
+ ominfra/scripts/manage.py,sha256=xYZht72US3brB1xJI6XonccohRFIfflNR1OjlMvZh4I,466569
117
+ ominfra/scripts/supervisor.py,sha256=KodoaDPmIqOLXGoVdh0t-lqA3dKSUVIXqPgirA4yn38,376188
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=XASv9C_CWI-u-yX5jVzhJrkJhlwQRkYQWQQG1uJwAd8,1375
156
156
  ominfra/tailscale/cli.py,sha256=zRV7-tKB7kBah1oTVZlol-vwx1FBlnfzYAPGkeU5jX4,3543
157
157
  ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
158
  ominfra/tools/listresources.py,sha256=ePmo7cUAiBZARkM_3K4GKYZXxV73An_aioS1m-AAJis,6181
159
- ominfra-0.0.0.dev438.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
- ominfra-0.0.0.dev438.dist-info/METADATA,sha256=7e0HRxeduJRQEC70T8XovUdOfx14ilWenwbtqAIHGak,2377
161
- ominfra-0.0.0.dev438.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- ominfra-0.0.0.dev438.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
- ominfra-0.0.0.dev438.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
- ominfra-0.0.0.dev438.dist-info/RECORD,,
159
+ ominfra-0.0.0.dev440.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
+ ominfra-0.0.0.dev440.dist-info/METADATA,sha256=gA2kUkRYpjv71ka0JLc_GgMy6b5ADK8gcbTrsmHi-k4,2377
161
+ ominfra-0.0.0.dev440.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ ominfra-0.0.0.dev440.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
+ ominfra-0.0.0.dev440.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
+ ominfra-0.0.0.dev440.dist-info/RECORD,,