malevich-coretools 0.3.25__py3-none-any.whl → 0.3.27__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 malevich-coretools might be problematic. Click here for more details.
- malevich_coretools/abstract/abstract.py +1 -0
- malevich_coretools/funcs/funcs.py +8 -0
- malevich_coretools/secondary/const.py +4 -0
- malevich_coretools/utils.py +35 -0
- {malevich_coretools-0.3.25.dist-info → malevich_coretools-0.3.27.dist-info}/METADATA +1 -1
- {malevich_coretools-0.3.25.dist-info → malevich_coretools-0.3.27.dist-info}/RECORD +9 -9
- {malevich_coretools-0.3.25.dist-info → malevich_coretools-0.3.27.dist-info}/WHEEL +1 -1
- {malevich_coretools-0.3.25.dist-info → malevich_coretools-0.3.27.dist-info}/LICENSE +0 -0
- {malevich_coretools-0.3.25.dist-info → malevich_coretools-0.3.27.dist-info}/top_level.txt +0 -0
|
@@ -708,6 +708,14 @@ def post_user_limits(data: LimitsScope, wait: bool, *args, **kwargs) -> Alias.In
|
|
|
708
708
|
return send_to_core_modify(LIMITS_USER(wait), data, *args, **kwargs)
|
|
709
709
|
|
|
710
710
|
|
|
711
|
+
def get_handler_url(*args, **kwargs) -> str:
|
|
712
|
+
return send_to_core_get(HANDLER_URL(None, True), is_text=True, *args, **kwargs)
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
def post_handler_url(url: Optional[str], wait: bool, *args, **kwargs) -> Alias.Info:
|
|
716
|
+
return send_to_core_modify(HANDLER_URL(url, wait), *args, **kwargs)
|
|
717
|
+
|
|
718
|
+
|
|
711
719
|
async def kafka_send(data: KafkaMsg, *args, **kwargs) -> Union[Alias.Info, KafkaMsg]:
|
|
712
720
|
result = await send_to_core_post_async(KAFKA_SEND, data, *args, **kwargs)
|
|
713
721
|
try:
|
|
@@ -188,6 +188,10 @@ LIMITS_MAIN = f"{API_VERSION}/limits"
|
|
|
188
188
|
LIMITS = lambda wait: with_wait(f"{LIMITS_MAIN}/", wait)
|
|
189
189
|
LIMITS_USER = lambda wait: with_wait(f"{LIMITS_MAIN}/user", wait)
|
|
190
190
|
|
|
191
|
+
## HandlerUrlController
|
|
192
|
+
HANDLER_URL_MAIN = f"{API_VERSION}/handlerUrls"
|
|
193
|
+
HANDLER_URL = lambda url, wait: with_key_values(f"{HANDLER_URL_MAIN}/", {"url": url, "wait": bool_to_str(wait)})
|
|
194
|
+
|
|
191
195
|
### Kafka
|
|
192
196
|
KAFKA_SEND = f"{MANAGER_MAIN}/kafkaMsg"
|
|
193
197
|
|
malevich_coretools/utils.py
CHANGED
|
@@ -3176,6 +3176,41 @@ def update_user_limits_scope(
|
|
|
3176
3176
|
)
|
|
3177
3177
|
|
|
3178
3178
|
|
|
3179
|
+
# HandlerUrls
|
|
3180
|
+
|
|
3181
|
+
|
|
3182
|
+
def get_user_handler_url(
|
|
3183
|
+
*,
|
|
3184
|
+
auth: Optional[AUTH] = None,
|
|
3185
|
+
conn_url: Optional[str] = None,
|
|
3186
|
+
batcher: Optional[Batcher] = None,
|
|
3187
|
+
) -> str:
|
|
3188
|
+
"""return handler url for user"""
|
|
3189
|
+
if batcher is None:
|
|
3190
|
+
batcher = Config.BATCHER
|
|
3191
|
+
if batcher is not None:
|
|
3192
|
+
return batcher.add("getHandlerUrls")
|
|
3193
|
+
return f.get_handler_url(auth=auth, conn_url=conn_url)
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
def update_user_handler_url(
|
|
3197
|
+
url: Optional[str] = None,
|
|
3198
|
+
wait: bool = True,
|
|
3199
|
+
*,
|
|
3200
|
+
auth: Optional[AUTH] = None,
|
|
3201
|
+
conn_url: Optional[str] = None,
|
|
3202
|
+
batcher: Optional[Batcher] = None,
|
|
3203
|
+
) -> Alias.Info:
|
|
3204
|
+
"""update handler url for user"""
|
|
3205
|
+
if batcher is None:
|
|
3206
|
+
batcher = Config.BATCHER
|
|
3207
|
+
if batcher is not None:
|
|
3208
|
+
return batcher.add("postHandlerUrls", vars={"url": url})
|
|
3209
|
+
return f.post_handler_url(
|
|
3210
|
+
url, wait=wait, auth=auth, conn_url=conn_url
|
|
3211
|
+
)
|
|
3212
|
+
|
|
3213
|
+
|
|
3179
3214
|
# kafka
|
|
3180
3215
|
|
|
3181
3216
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
malevich_coretools/__init__.py,sha256=DJtPESxkCZD2SbTZTrR_x0TKDQ4MJpmBqGw5YpKYidM,134
|
|
2
|
-
malevich_coretools/utils.py,sha256=
|
|
2
|
+
malevich_coretools/utils.py,sha256=yIFBlvBZe_HqcyTGeWtZdEIz9ABs41sCNPO7SFDH9Kk,107271
|
|
3
3
|
malevich_coretools/abstract/__init__.py,sha256=8AC5ZukRGkTtN-XP14DY5z2HrJqN5LLlnmcMqvWwtWU,76
|
|
4
|
-
malevich_coretools/abstract/abstract.py,sha256=
|
|
4
|
+
malevich_coretools/abstract/abstract.py,sha256=v012y0NCwgl6vjb0Zir31Vn6tgFrbYHU_IfV_xrWjNM,14307
|
|
5
5
|
malevich_coretools/abstract/pipeline.py,sha256=AdHQIpOMZMNJt6f17MK_s2k6FM2Kc_ImAn4LJuDbZAM,3279
|
|
6
6
|
malevich_coretools/abstract/statuses.py,sha256=9ISSw_evsylBshLXoU44TCoFOrZm4bXIxyAFFDqdUWc,333
|
|
7
7
|
malevich_coretools/admin/__init__.py,sha256=zdIcHs3T_NZ8HYWts-O7OpBEWHIu779QDZMGF5HRCLg,35
|
|
@@ -10,18 +10,18 @@ malevich_coretools/batch/__init__.py,sha256=taxyZl8YOZd2EBd3leN6slzMkejUtjQ64Na3
|
|
|
10
10
|
malevich_coretools/batch/utils.py,sha256=cqX34sfh85dCwLv7qprxatzhYxxj7LqZwjhlmk_3GXQ,7705
|
|
11
11
|
malevich_coretools/funcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
malevich_coretools/funcs/checks.py,sha256=Q5pRtRevQrGv_-SMbn2GgYnulhclDLBXdRtbw2QOYKU,223
|
|
13
|
-
malevich_coretools/funcs/funcs.py,sha256=
|
|
13
|
+
malevich_coretools/funcs/funcs.py,sha256=hKTRff1lfv_0ohHWpuX_QbPpxkDWlA9Cnf_eLCzhPdQ,36954
|
|
14
14
|
malevich_coretools/funcs/helpers.py,sha256=-JU17yt19CS8IadZ0r5vN4hmXBrTjLUyRB07kBDhZL4,10003
|
|
15
15
|
malevich_coretools/secondary/__init__.py,sha256=048HqvG36_1WdDVZK_RuECmaf14Iq2fviUysG1inlaE,78
|
|
16
16
|
malevich_coretools/secondary/config.py,sha256=hRlSJuPQnhKyt1wmOAJX_XmcliaO0fPGbW94AE_Mazs,463
|
|
17
|
-
malevich_coretools/secondary/const.py,sha256=
|
|
17
|
+
malevich_coretools/secondary/const.py,sha256=sP1LeJAXbVkMthnPINci5kfyGj-8IWSdmEB6HDyiBjs,12862
|
|
18
18
|
malevich_coretools/secondary/helpers.py,sha256=t-W9g9t0O1EaAX8UOb1wxXFAMawbtDotDH47t0GdjG4,6142
|
|
19
19
|
malevich_coretools/secondary/kafka_utils.py,sha256=SIUnBFyfwsquN6MAUrEkKCw-1l7979Znl7OTQSX2UKo,989
|
|
20
20
|
malevich_coretools/tools/__init__.py,sha256=jDxlCa5Dr6Y43qlI7JwsRAlBkKmFeTHTEnjNUvu-0iw,46
|
|
21
21
|
malevich_coretools/tools/abstract.py,sha256=B1RW1FeNHrQ6r1k-cQZ4k4noCRXkIGt-JUwVoXEDkAg,4466
|
|
22
22
|
malevich_coretools/tools/vast.py,sha256=63tvy70qQV9vnK0eWytlgjBGSnfA7l3kSIDgACBbMMs,12893
|
|
23
|
-
malevich_coretools-0.3.
|
|
24
|
-
malevich_coretools-0.3.
|
|
25
|
-
malevich_coretools-0.3.
|
|
26
|
-
malevich_coretools-0.3.
|
|
27
|
-
malevich_coretools-0.3.
|
|
23
|
+
malevich_coretools-0.3.27.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
24
|
+
malevich_coretools-0.3.27.dist-info/METADATA,sha256=w3jWmC4S3qMCGi7e_p5oU5TFWsIc42AtRSX37CvZuUQ,265
|
|
25
|
+
malevich_coretools-0.3.27.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
|
26
|
+
malevich_coretools-0.3.27.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
|
|
27
|
+
malevich_coretools-0.3.27.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|