ominfra 0.0.0.dev210__py3-none-any.whl → 0.0.0.dev211__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1719,7 +1719,7 @@ def deep_subclasses(cls: ta.Type[T]) -> ta.Iterator[ta.Type[T]]:
1719
1719
  ##
1720
1720
 
1721
1721
 
1722
- def camel_case(name: str, lower: bool = False) -> str:
1722
+ def camel_case(name: str, *, lower: bool = False) -> str:
1723
1723
  if not name:
1724
1724
  return ''
1725
1725
  s = ''.join(map(str.capitalize, name.split('_'))) # noqa
@@ -1736,6 +1736,27 @@ def snake_case(name: str) -> str:
1736
1736
  ##
1737
1737
 
1738
1738
 
1739
+ def is_dunder(name: str) -> bool:
1740
+ return (
1741
+ name[:2] == name[-2:] == '__' and
1742
+ name[2:3] != '_' and
1743
+ name[-3:-2] != '_' and
1744
+ len(name) > 4
1745
+ )
1746
+
1747
+
1748
+ def is_sunder(name: str) -> bool:
1749
+ return (
1750
+ name[0] == name[-1] == '_' and
1751
+ name[1:2] != '_' and
1752
+ name[-2:-1] != '_' and
1753
+ len(name) > 2
1754
+ )
1755
+
1756
+
1757
+ ##
1758
+
1759
+
1739
1760
  def strip_with_newline(s: str) -> str:
1740
1761
  if not s:
1741
1762
  return ''
@@ -1767,27 +1788,6 @@ def split_keep_delimiter(s, d):
1767
1788
  ##
1768
1789
 
1769
1790
 
1770
- def is_dunder(name: str) -> bool:
1771
- return (
1772
- name[:2] == name[-2:] == '__' and
1773
- name[2:3] != '_' and
1774
- name[-3:-2] != '_' and
1775
- len(name) > 4
1776
- )
1777
-
1778
-
1779
- def is_sunder(name: str) -> bool:
1780
- return (
1781
- name[0] == name[-1] == '_' and
1782
- name[1:2] != '_' and
1783
- name[-2:-1] != '_' and
1784
- len(name) > 2
1785
- )
1786
-
1787
-
1788
- ##
1789
-
1790
-
1791
1791
  def attr_repr(obj: ta.Any, *attrs: str) -> str:
1792
1792
  return f'{type(obj).__name__}({", ".join(f"{attr}={getattr(obj, attr)!r}" for attr in attrs)})'
1793
1793
 
ominfra/scripts/manage.py CHANGED
@@ -2952,7 +2952,7 @@ def read_package_resource_text(package: str, resource: str) -> str:
2952
2952
  ##
2953
2953
 
2954
2954
 
2955
- def camel_case(name: str, lower: bool = False) -> str:
2955
+ def camel_case(name: str, *, lower: bool = False) -> str:
2956
2956
  if not name:
2957
2957
  return ''
2958
2958
  s = ''.join(map(str.capitalize, name.split('_'))) # noqa
@@ -2969,6 +2969,27 @@ def snake_case(name: str) -> str:
2969
2969
  ##
2970
2970
 
2971
2971
 
2972
+ def is_dunder(name: str) -> bool:
2973
+ return (
2974
+ name[:2] == name[-2:] == '__' and
2975
+ name[2:3] != '_' and
2976
+ name[-3:-2] != '_' and
2977
+ len(name) > 4
2978
+ )
2979
+
2980
+
2981
+ def is_sunder(name: str) -> bool:
2982
+ return (
2983
+ name[0] == name[-1] == '_' and
2984
+ name[1:2] != '_' and
2985
+ name[-2:-1] != '_' and
2986
+ len(name) > 2
2987
+ )
2988
+
2989
+
2990
+ ##
2991
+
2992
+
2972
2993
  def strip_with_newline(s: str) -> str:
2973
2994
  if not s:
2974
2995
  return ''
@@ -3000,27 +3021,6 @@ def split_keep_delimiter(s, d):
3000
3021
  ##
3001
3022
 
3002
3023
 
3003
- def is_dunder(name: str) -> bool:
3004
- return (
3005
- name[:2] == name[-2:] == '__' and
3006
- name[2:3] != '_' and
3007
- name[-3:-2] != '_' and
3008
- len(name) > 4
3009
- )
3010
-
3011
-
3012
- def is_sunder(name: str) -> bool:
3013
- return (
3014
- name[0] == name[-1] == '_' and
3015
- name[1:2] != '_' and
3016
- name[-2:-1] != '_' and
3017
- len(name) > 2
3018
- )
3019
-
3020
-
3021
- ##
3022
-
3023
-
3024
3024
  def attr_repr(obj: ta.Any, *attrs: str) -> str:
3025
3025
  return f'{type(obj).__name__}({", ".join(f"{attr}={getattr(obj, attr)!r}" for attr in attrs)})'
3026
3026
 
@@ -2535,7 +2535,7 @@ def deep_subclasses(cls: ta.Type[T]) -> ta.Iterator[ta.Type[T]]:
2535
2535
  ##
2536
2536
 
2537
2537
 
2538
- def camel_case(name: str, lower: bool = False) -> str:
2538
+ def camel_case(name: str, *, lower: bool = False) -> str:
2539
2539
  if not name:
2540
2540
  return ''
2541
2541
  s = ''.join(map(str.capitalize, name.split('_'))) # noqa
@@ -2552,6 +2552,27 @@ def snake_case(name: str) -> str:
2552
2552
  ##
2553
2553
 
2554
2554
 
2555
+ def is_dunder(name: str) -> bool:
2556
+ return (
2557
+ name[:2] == name[-2:] == '__' and
2558
+ name[2:3] != '_' and
2559
+ name[-3:-2] != '_' and
2560
+ len(name) > 4
2561
+ )
2562
+
2563
+
2564
+ def is_sunder(name: str) -> bool:
2565
+ return (
2566
+ name[0] == name[-1] == '_' and
2567
+ name[1:2] != '_' and
2568
+ name[-2:-1] != '_' and
2569
+ len(name) > 2
2570
+ )
2571
+
2572
+
2573
+ ##
2574
+
2575
+
2555
2576
  def strip_with_newline(s: str) -> str:
2556
2577
  if not s:
2557
2578
  return ''
@@ -2583,27 +2604,6 @@ def split_keep_delimiter(s, d):
2583
2604
  ##
2584
2605
 
2585
2606
 
2586
- def is_dunder(name: str) -> bool:
2587
- return (
2588
- name[:2] == name[-2:] == '__' and
2589
- name[2:3] != '_' and
2590
- name[-3:-2] != '_' and
2591
- len(name) > 4
2592
- )
2593
-
2594
-
2595
- def is_sunder(name: str) -> bool:
2596
- return (
2597
- name[0] == name[-1] == '_' and
2598
- name[1:2] != '_' and
2599
- name[-2:-1] != '_' and
2600
- len(name) > 2
2601
- )
2602
-
2603
-
2604
- ##
2605
-
2606
-
2607
2607
  def attr_repr(obj: ta.Any, *attrs: str) -> str:
2608
2608
  return f'{type(obj).__name__}({", ".join(f"{attr}={getattr(obj, attr)!r}" for attr in attrs)})'
2609
2609
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ominfra
3
- Version: 0.0.0.dev210
3
+ Version: 0.0.0.dev211
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.dev210
16
- Requires-Dist: omlish==0.0.0.dev210
15
+ Requires-Dist: omdev==0.0.0.dev211
16
+ Requires-Dist: omlish==0.0.0.dev211
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.18; extra == "all"
@@ -111,9 +111,9 @@ ominfra/manage/targets/connection.py,sha256=rVI1YJxFClcF-sdttqWyIz9_XjPI01GUdwxY
111
111
  ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhhMcE,1561
112
112
  ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
113
113
  ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
114
- ominfra/scripts/journald2aws.py,sha256=Bo_24qN3YI_72BcZYBHid9_SJWnCAmbKRJ3-wE6dGMU,166250
115
- ominfra/scripts/manage.py,sha256=im_mk71R0LwN2yi8BUnejFjwH9KGxEV3JgLvq41SXNY,357674
116
- ominfra/scripts/supervisor.py,sha256=6OQnZfnHfXT-hHsGQA_OhA_BjOs01vzInkmEZWYhiVY,291847
114
+ ominfra/scripts/journald2aws.py,sha256=NDitI-4E4Joi0JiH60q_n45fRLweF40MtVQfotNbU2I,166253
115
+ ominfra/scripts/manage.py,sha256=sb7uxZX6ovhMo0jyoem3halHN48mnobLBeIc8yzBRqg,357677
116
+ ominfra/scripts/supervisor.py,sha256=WP1gthTsdQZZY4swRXGtPUrznnc1OYf25cs0m875YXk,291850
117
117
  ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
118
118
  ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
119
119
  ominfra/supervisor/__main__.py,sha256=I0yFw-C08OOiZ3BF6lF1Oiv789EQXu-_j6whDhQUTEA,66
@@ -155,9 +155,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
155
155
  ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
156
156
  ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
157
  ominfra/tools/listresources.py,sha256=4qVg5txsb10EHhvqXXeM6gJ2jx9LbroEnPydDv1uXs0,6176
158
- ominfra-0.0.0.dev210.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
159
- ominfra-0.0.0.dev210.dist-info/METADATA,sha256=JCnayAtU1v9TA67Xl_LDihmc5j9FknNziWtRPwRN2vw,731
160
- ominfra-0.0.0.dev210.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
161
- ominfra-0.0.0.dev210.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
162
- ominfra-0.0.0.dev210.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
163
- ominfra-0.0.0.dev210.dist-info/RECORD,,
158
+ ominfra-0.0.0.dev211.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
159
+ ominfra-0.0.0.dev211.dist-info/METADATA,sha256=wfG7Vql_zLWXluRFIsFxFOB8l26CL8uImcOsvKGFqe0,731
160
+ ominfra-0.0.0.dev211.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
161
+ ominfra-0.0.0.dev211.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
162
+ ominfra-0.0.0.dev211.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
163
+ ominfra-0.0.0.dev211.dist-info/RECORD,,