arpakitlib 1.8.45__py3-none-any.whl → 1.8.47__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/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/common.py +1 -1
- arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user_token.py +1 -1
- arpakitlib/ar_zabbix_api_client_util.py +5 -0
- {arpakitlib-1.8.45.dist-info → arpakitlib-1.8.47.dist-info}/METADATA +1 -1
- {arpakitlib-1.8.45.dist-info → arpakitlib-1.8.47.dist-info}/RECORD +8 -8
- {arpakitlib-1.8.45.dist-info → arpakitlib-1.8.47.dist-info}/LICENSE +0 -0
- {arpakitlib-1.8.45.dist-info → arpakitlib-1.8.47.dist-info}/WHEEL +0 -0
- {arpakitlib-1.8.45.dist-info → arpakitlib-1.8.47.dist-info}/entry_points.txt +0 -0
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user_token.py
CHANGED
@@ -32,7 +32,7 @@ class UserTokenDBM(SimpleDBM):
|
|
32
32
|
server_default=sqlalchemy.func.gen_random_uuid(),
|
33
33
|
)
|
34
34
|
user_id: Mapped[int] = mapped_column(
|
35
|
-
sqlalchemy.
|
35
|
+
sqlalchemy.BIGINT,
|
36
36
|
sqlalchemy.ForeignKey("user.id", ondelete="CASCADE"),
|
37
37
|
index=True,
|
38
38
|
nullable=False
|
@@ -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():
|
@@ -231,11 +231,11 @@ arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/const.py,sha256=
|
|
231
231
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_db.py,sha256=1y3FaMFzm_5UM2poqtBve_UP_mh1vjs--krq6yO8PsA,742
|
232
232
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/__init__.py,sha256=btSjCQ7RJqomeXzYs9HePCu1dZHs0z6-RuboYKG89_8,598
|
233
233
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/api_key.py,sha256=XBw5qVM6Qc5i5Sgercec90y2RhqhMZWouVXd1vTKay4,1310
|
234
|
-
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/common.py,sha256=
|
234
|
+
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/common.py,sha256=rS8Ph1Sn61zuLEfyoDFzVT6qDzLi8PRmy7Kq2wY5oTc,2089
|
235
235
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/operation.py,sha256=rwLyqChjx_EOsw9nj333NFxZJ1Qpfj9Yz6POO4Wq690,3670
|
236
236
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/story_log.py,sha256=iarF0bREQAlXlqw0XvTEPkYVAUdRz4idAZEOnqISfCY,1451
|
237
237
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user.py,sha256=ZWLbnikEXbCiXdzv8cD6MKF7PsXx5auDWoqoESNwy_w,5257
|
238
|
-
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user_token.py,sha256=
|
238
|
+
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/sqlalchemy_model/user_token.py,sha256=_eKTUI4vLobPBEY21MYgs4U4BHKXL-Y6unzxLcfVn2g,1616
|
239
239
|
arpakitlib/_arpakit_project_template_v_5/project/sqlalchemy_db_/util.py,sha256=QSA_nT6aWdtE412-Uj3VTd7yh3dzS4HugDK9FivjTPo,570
|
240
240
|
arpakitlib/_arpakit_project_template_v_5/project/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
241
241
|
arpakitlib/_arpakit_project_template_v_5/project/test_data/make_test_api_keys.py,sha256=GWRgXK0wI9ARwY574NPyGXybZSZcDPrXwYCp8jDdtx4,907
|
@@ -368,9 +368,9 @@ arpakitlib/ar_str_util.py,sha256=k9pwo2KL8Ik-bTN-Lt3vFEjYygpKUj6CLvIHNRQBWw8,395
|
|
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.47.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
|
373
|
+
arpakitlib-1.8.47.dist-info/METADATA,sha256=Vq6TTOLdXlcLo3st_Qa1xvWitdGT9HOKae4sQOuxk3w,3475
|
374
|
+
arpakitlib-1.8.47.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
375
|
+
arpakitlib-1.8.47.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
|
376
|
+
arpakitlib-1.8.47.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|