ominfra 0.0.0.dev452__py3-none-any.whl → 0.0.0.dev454__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.

@@ -1328,6 +1328,8 @@ TODO:
1328
1328
  - per-attr repr transform / filter
1329
1329
  - __ne__ ? cases where it still matters
1330
1330
  - ordering ?
1331
+ - repr_filter: ta.Union[ta.Callable[[ta.Any], ta.Optional[str]], ta.Literal['not_none', 'truthy']]] ?
1332
+ - unify repr/repr_fn/repr_filter
1331
1333
  """
1332
1334
 
1333
1335
 
ominfra/scripts/manage.py CHANGED
@@ -34,6 +34,7 @@ import io
34
34
  import itertools
35
35
  import json
36
36
  import logging
37
+ import operator
37
38
  import os
38
39
  import os.path
39
40
  import platform
@@ -2507,6 +2508,8 @@ TODO:
2507
2508
  - per-attr repr transform / filter
2508
2509
  - __ne__ ? cases where it still matters
2509
2510
  - ordering ?
2511
+ - repr_filter: ta.Union[ta.Callable[[ta.Any], ta.Optional[str]], ta.Literal['not_none', 'truthy']]] ?
2512
+ - unify repr/repr_fn/repr_filter
2510
2513
  """
2511
2514
 
2512
2515
 
@@ -7417,6 +7420,13 @@ class _EmptyMaybe(_Maybe[T]):
7417
7420
  Maybe._empty = _EmptyMaybe() # noqa
7418
7421
 
7419
7422
 
7423
+ ##
7424
+
7425
+
7426
+ setattr(Maybe, 'just', _JustMaybe) # noqa
7427
+ setattr(Maybe, 'empty', functools.partial(operator.attrgetter('_empty'), Maybe))
7428
+
7429
+
7420
7430
  ########################################
7421
7431
  # ../../../omlish/lite/runtime.py
7422
7432
 
@@ -65,6 +65,7 @@ import io
65
65
  import itertools
66
66
  import json
67
67
  import logging
68
+ import operator
68
69
  import os
69
70
  import os.path
70
71
  import pwd
@@ -1853,6 +1854,8 @@ TODO:
1853
1854
  - per-attr repr transform / filter
1854
1855
  - __ne__ ? cases where it still matters
1855
1856
  - ordering ?
1857
+ - repr_filter: ta.Union[ta.Callable[[ta.Any], ta.Optional[str]], ta.Literal['not_none', 'truthy']]] ?
1858
+ - unify repr/repr_fn/repr_filter
1856
1859
  """
1857
1860
 
1858
1861
 
@@ -6267,6 +6270,13 @@ class _EmptyMaybe(_Maybe[T]):
6267
6270
  Maybe._empty = _EmptyMaybe() # noqa
6268
6271
 
6269
6272
 
6273
+ ##
6274
+
6275
+
6276
+ setattr(Maybe, 'just', _JustMaybe) # noqa
6277
+ setattr(Maybe, 'empty', functools.partial(operator.attrgetter('_empty'), Maybe))
6278
+
6279
+
6270
6280
  ########################################
6271
6281
  # ../../../omlish/lite/runtime.py
6272
6282
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ominfra
3
- Version: 0.0.0.dev452
3
+ Version: 0.0.0.dev454
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.dev452
18
- Requires-Dist: omlish==0.0.0.dev452
17
+ Requires-Dist: omdev==0.0.0.dev454
18
+ Requires-Dist: omlish==0.0.0.dev454
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=qLfqpuWE7xU7lyfctgU5Wbz3HmhXWjqlEpxDr3ZQkx4,246638
116
- ominfra/scripts/manage.py,sha256=6kRBeGVbp_FvgSujEBPwnMQg6b74t4EYn9sky07Yc-g,470547
117
- ominfra/scripts/supervisor.py,sha256=52lSprHBuOgRZ2Z2pWued2k6nEMDzRMrogHbrh3ZDEA,380857
115
+ ominfra/scripts/journald2aws.py,sha256=VL11O_X1eDOdZNJStp8Ck0s6nEDZDPM1pSDvZKe4KzI,246776
116
+ ominfra/scripts/manage.py,sha256=wk-bu3GKaDuYltTDuhDo2hDUjzl6Q2kRejtYB-fcSec,470832
117
+ ominfra/scripts/supervisor.py,sha256=1IkjsoVhdFZ_9O2fkBlNklhHpOAJmO0yiJagIg_BXEg,381142
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.dev452.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
- ominfra-0.0.0.dev452.dist-info/METADATA,sha256=5LsWjVJTyuR6NLW4uPIBwifoUGtSEgSbosmQQ8dewEY,2377
161
- ominfra-0.0.0.dev452.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- ominfra-0.0.0.dev452.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
- ominfra-0.0.0.dev452.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
- ominfra-0.0.0.dev452.dist-info/RECORD,,
159
+ ominfra-0.0.0.dev454.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
+ ominfra-0.0.0.dev454.dist-info/METADATA,sha256=XM3uuk0b1ZKIuB9xgnUrr8SfJfEl9y5oMeoJFPYlMfo,2377
161
+ ominfra-0.0.0.dev454.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ ominfra-0.0.0.dev454.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
+ ominfra-0.0.0.dev454.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
+ ominfra-0.0.0.dev454.dist-info/RECORD,,