arpakitlib 1.8.46__py3-none-any.whl → 1.8.48__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.
- arpakitlib/ar_str_util.py +10 -0
- arpakitlib/ar_zabbix_api_client_util.py +5 -0
- {arpakitlib-1.8.46.dist-info → arpakitlib-1.8.48.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.46.dist-info → arpakitlib-1.8.48.dist-info}/RECORD +7 -7
- {arpakitlib-1.8.46.dist-info → arpakitlib-1.8.48.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.46.dist-info → arpakitlib-1.8.48.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.46.dist-info → arpakitlib-1.8.48.dist-info}/entry_points.txt +0 -0
arpakitlib/ar_str_util.py
CHANGED
@@ -65,6 +65,16 @@ def make_none_if_blank(string: Optional[str] = None) -> str | None:
|
|
65
65
|
return string
|
66
66
|
|
67
67
|
|
68
|
+
def none_if_blank(string: Optional[str] = None) -> str | None:
|
69
|
+
return make_none_if_blank(string=string)
|
70
|
+
|
71
|
+
|
72
|
+
def lower_and_strip_if_not_none(string: str | None) -> str | None:
|
73
|
+
if string is None:
|
74
|
+
return None
|
75
|
+
return string.lower().strip()
|
76
|
+
|
77
|
+
|
68
78
|
def remove_html(string: str) -> str:
|
69
79
|
raise_for_type(string, str)
|
70
80
|
return BeautifulSoup(string, "html.parser").text
|
@@ -102,6 +102,11 @@ class ZabbixApiClient:
|
|
102
102
|
hosts = self.get_hosts(host_ids=zabbix_api_host_ids)
|
103
103
|
yield hosts
|
104
104
|
|
105
|
+
def iter_all_hosts_by_one(self) -> Iterator[dict[str, Any]]:
|
106
|
+
for hosts in self.iter_all_hosts():
|
107
|
+
for host in hosts:
|
108
|
+
yield host
|
109
|
+
|
105
110
|
def get_all_hosts(self) -> list[dict[str, Any]]:
|
106
111
|
res = []
|
107
112
|
for hosts in self.iter_all_hosts():
|
@@ -364,13 +364,13 @@ arpakitlib/ar_sqladmin_util.py,sha256=Jd33EX_fAso4bvrcDhNEYOUlUHkudbadNGOJDg7rqh
|
|
364
364
|
arpakitlib/ar_sqlalchemy_util.py,sha256=iuxEXxC4nOADTg62D3dwp-PmGaWK-RDiELCALX1MRqE,13303
|
365
365
|
arpakitlib/ar_ssh_runner_util.py,sha256=yvAwza480MkHKvLkDEsR7JNh2bYNs6P9rCVo4NA85NE,6865
|
366
366
|
arpakitlib/ar_steam_payment_api_client_util.py,sha256=onvb3jt9bWfsCLbVLaApbN_-cqCu1CduVhM9GhG5yTA,250
|
367
|
-
arpakitlib/ar_str_util.py,sha256=
|
367
|
+
arpakitlib/ar_str_util.py,sha256=QWlXMYgGOh_m0uXwUywF9R6g_zJ0Rh9YSfU_eVzPh7g,4208
|
368
368
|
arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
|
369
369
|
arpakitlib/ar_wata_api_client.py,sha256=gdHOqDbuqxhTjVDtRW1DvkRJLdDofCrOq51GTctzLns,242
|
370
370
|
arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
|
371
|
-
arpakitlib/ar_zabbix_api_client_util.py,sha256=
|
372
|
-
arpakitlib-1.8.
|
373
|
-
arpakitlib-1.8.
|
374
|
-
arpakitlib-1.8.
|
375
|
-
arpakitlib-1.8.
|
376
|
-
arpakitlib-1.8.
|
371
|
+
arpakitlib/ar_zabbix_api_client_util.py,sha256=0JG-gIJ86-JI-vYRcgxXKFZp18B2_sK-pt4p7W9mvLU,8102
|
372
|
+
arpakitlib-1.8.48.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
373
|
+
arpakitlib-1.8.48.dist-info/METADATA,sha256=E0FQzGTF_K4-Kaz5pnof4M0lKpp-0H0ujrfaDjSBe5E,3475
|
374
|
+
arpakitlib-1.8.48.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
375
|
+
arpakitlib-1.8.48.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
376
|
+
arpakitlib-1.8.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|