malevich-coretools 0.3.66__tar.gz → 0.3.67__tar.gz
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-0.3.66/malevich_coretools.egg-info → malevich_coretools-0.3.67}/PKG-INFO +1 -1
- malevich_coretools-0.3.67/VERSION +1 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/abstract.py +1 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/funcs/funcs.py +18 -14
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/const.py +1 -1
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/utils.py +41 -7
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67/malevich_coretools.egg-info}/PKG-INFO +1 -1
- malevich_coretools-0.3.66/VERSION +0 -1
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/LICENSE +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/MANIFEST.in +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/README.md +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/operations.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/pipeline.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/statuses.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/admin/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/admin/utils.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/batch/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/batch/utils.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/funcs/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/funcs/checks.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/funcs/helpers.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/config.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/helpers.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/kafka_utils.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/tools/__init__.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/tools/abstract.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/tools/vast.py +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/SOURCES.txt +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/dependency_links.txt +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/requires.txt +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/top_level.txt +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/pyproject.toml +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/requirements.txt +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/setup.cfg +0 -0
- {malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.67
|
|
@@ -124,12 +124,18 @@ async def get_collections_groupName_async(name: str, operation_id: str, run_id:
|
|
|
124
124
|
return model_from_json(await send_to_core_get_async(COLLECTIONS_GROUP_NAME(name, operation_id, run_id), *args, **kwargs), ResultCollections)
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
def get_collections_id(id: str, offset: int, limit: int, *args, **kwargs) -> ResultCollection:
|
|
128
|
-
|
|
127
|
+
def get_collections_id(id: str, offset: int, limit: int, raw: bool, *args, **kwargs) -> Union[ResultCollection, Alias.Json]:
|
|
128
|
+
res = send_to_core_get(COLLECTIONS_ID(id, offset, limit, raw), *args, is_text=raw, **kwargs)
|
|
129
|
+
if not raw:
|
|
130
|
+
res = model_from_json(res, ResultCollection)
|
|
131
|
+
return res
|
|
129
132
|
|
|
130
133
|
|
|
131
|
-
async def get_collections_id_async(id: str, offset: int, limit: int, *args, **kwargs) -> ResultCollection:
|
|
132
|
-
|
|
134
|
+
async def get_collections_id_async(id: str, offset: int, limit: int, raw: bool, *args, **kwargs) -> Union[ResultCollection, Alias.Json]:
|
|
135
|
+
res = await send_to_core_get_async(COLLECTIONS_ID(id, offset, limit, raw), *args, is_text=raw, **kwargs)
|
|
136
|
+
if not raw:
|
|
137
|
+
res = model_from_json(res, ResultCollection)
|
|
138
|
+
return res
|
|
133
139
|
|
|
134
140
|
|
|
135
141
|
def post_collections(data: DocsCollection, wait: bool, *args, **kwargs) -> Alias.Id:
|
|
@@ -1280,26 +1286,24 @@ async def post_manager_task_async(data: MainTask, with_show: bool, long: bool, l
|
|
|
1280
1286
|
return AppLogs.model_validate_json(res)
|
|
1281
1287
|
|
|
1282
1288
|
|
|
1283
|
-
def post_manager_task_run(data: RunTask, with_show: bool, long: bool, long_timeout: int, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) ->
|
|
1289
|
+
def post_manager_task_run(data: RunTask, with_show: bool, long: bool, long_timeout: int, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) -> Union[Alias.Id, AppLogs]:
|
|
1284
1290
|
check_profile_mode(data.profileMode)
|
|
1285
1291
|
res = send_to_core_modify(MANAGER_TASK_RUN(wait and not long), data, with_show=with_show, show_func=show_logs_func, auth=auth, conn_url=conn_url, *args, **kwargs)
|
|
1286
1292
|
if wait and long:
|
|
1287
1293
|
res = asyncio.run(__get_result(res, timeout=long_timeout, auth=auth))
|
|
1288
|
-
if
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
return AppLogs.model_validate_json(res)
|
|
1294
|
+
if not wait:
|
|
1295
|
+
return res
|
|
1296
|
+
return AppLogs.model_validate_json(res)
|
|
1292
1297
|
|
|
1293
1298
|
|
|
1294
|
-
async def post_manager_task_run_async(data: RunTask, with_show: bool, long: bool, long_timeout: int, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) ->
|
|
1299
|
+
async def post_manager_task_run_async(data: RunTask, with_show: bool, long: bool, long_timeout: int, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) -> Union[Alias.Id, AppLogs]:
|
|
1295
1300
|
check_profile_mode(data.profileMode)
|
|
1296
1301
|
res = await send_to_core_modify_async(MANAGER_TASK_RUN(wait and not long), data, with_show=with_show, show_func=show_logs_func, auth=auth, conn_url=conn_url, *args, **kwargs)
|
|
1297
1302
|
if wait and long:
|
|
1298
1303
|
res = await __get_result(res, timeout=long_timeout, auth=auth)
|
|
1299
|
-
if
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
return AppLogs.model_validate_json(res)
|
|
1304
|
+
if not wait:
|
|
1305
|
+
return res
|
|
1306
|
+
return AppLogs.model_validate_json(res)
|
|
1303
1307
|
|
|
1304
1308
|
|
|
1305
1309
|
def post_manager_pipeline(data: MainPipeline, with_show: bool, long: bool, long_timeout: int, return_response: bool, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) -> Union[Alias.Id, AppLogs]:
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/const.py
RENAMED
|
@@ -50,7 +50,7 @@ COLLECTIONS_IDS_NAME = lambda name, operation_id, run_id: with_key_values(f"{COL
|
|
|
50
50
|
COLLECTIONS_NAME = lambda name, operation_id, run_id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/name/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id, "offset": offset, "limit": limit})
|
|
51
51
|
COLLECTIONS_IDS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/groupName/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
52
52
|
COLLECTIONS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/groupName/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
53
|
-
COLLECTIONS_ID = lambda id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", {"offset": offset, "limit": limit})
|
|
53
|
+
COLLECTIONS_ID = lambda id, offset, limit, raw: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", {"offset": offset, "limit": limit, "raw": raw})
|
|
54
54
|
COLLECTIONS_ID_MODIFY = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
55
55
|
COLLECTIONS_ID_S3 = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/s3/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
56
56
|
COLLECTIONS_ID_ADD = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/add", wait)
|
|
@@ -609,6 +609,7 @@ def get_collection(
|
|
|
609
609
|
auth: Optional[AUTH] = None,
|
|
610
610
|
conn_url: Optional[str] = None,
|
|
611
611
|
batcher: Optional[Batcher] = None,
|
|
612
|
+
raw: Literal[False] = False,
|
|
612
613
|
is_async: Literal[False] = False,
|
|
613
614
|
) -> ResultCollection:
|
|
614
615
|
pass
|
|
@@ -623,11 +624,13 @@ def get_collection(
|
|
|
623
624
|
auth: Optional[AUTH] = None,
|
|
624
625
|
conn_url: Optional[str] = None,
|
|
625
626
|
batcher: Optional[Batcher] = None,
|
|
627
|
+
raw: Literal[False] = False,
|
|
626
628
|
is_async: Literal[True],
|
|
627
629
|
) -> Coroutine[Any, Any, ResultCollection]:
|
|
628
630
|
pass
|
|
629
631
|
|
|
630
632
|
|
|
633
|
+
@overload
|
|
631
634
|
def get_collection(
|
|
632
635
|
id: str,
|
|
633
636
|
offset: int = 0,
|
|
@@ -636,16 +639,47 @@ def get_collection(
|
|
|
636
639
|
auth: Optional[AUTH] = None,
|
|
637
640
|
conn_url: Optional[str] = None,
|
|
638
641
|
batcher: Optional[Batcher] = None,
|
|
642
|
+
raw: Literal[True],
|
|
643
|
+
is_async: Literal[False] = False,
|
|
644
|
+
) -> Alias.Json:
|
|
645
|
+
pass
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
@overload
|
|
649
|
+
def get_collection(
|
|
650
|
+
id: str,
|
|
651
|
+
offset: int = 0,
|
|
652
|
+
limit: int = -1,
|
|
653
|
+
*,
|
|
654
|
+
auth: Optional[AUTH] = None,
|
|
655
|
+
conn_url: Optional[str] = None,
|
|
656
|
+
batcher: Optional[Batcher] = None,
|
|
657
|
+
raw: Literal[True],
|
|
658
|
+
is_async: Literal[True],
|
|
659
|
+
) -> Coroutine[Any, Any, Alias.Json]:
|
|
660
|
+
pass
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
def get_collection(
|
|
664
|
+
id: str,
|
|
665
|
+
offset: int = 0,
|
|
666
|
+
limit: int = -1,
|
|
667
|
+
*,
|
|
668
|
+
auth: Optional[AUTH] = None,
|
|
669
|
+
conn_url: Optional[str] = None,
|
|
670
|
+
batcher: Optional[Batcher] = None,
|
|
671
|
+
raw: bool = False,
|
|
639
672
|
is_async: bool = False,
|
|
640
|
-
) -> Union[ResultCollection, Coroutine[Any, Any, ResultCollection]]:
|
|
673
|
+
) -> Union[ResultCollection, Alias.Json, Coroutine[Any, Any, ResultCollection], Coroutine[Any, Any, Alias.Json]]:
|
|
641
674
|
"""return collection by `id`, pagination: unlimited - `limit` < 0"""
|
|
642
675
|
if batcher is None:
|
|
643
676
|
batcher = Config.BATCHER
|
|
644
677
|
if batcher is not None:
|
|
645
|
-
|
|
678
|
+
result_model = None if raw else ResultCollection
|
|
679
|
+
return batcher.add("getCollectionById", vars={"id": id, "offset": offset, "limit": limit, "raw": raw}, result_model=result_model)
|
|
646
680
|
if is_async:
|
|
647
|
-
return f.get_collections_id_async(id, offset, limit, auth=auth, conn_url=conn_url)
|
|
648
|
-
return f.get_collections_id(id, offset, limit, auth=auth, conn_url=conn_url)
|
|
681
|
+
return f.get_collections_id_async(id, offset, limit, raw, auth=auth, conn_url=conn_url)
|
|
682
|
+
return f.get_collections_id(id, offset, limit, raw, auth=auth, conn_url=conn_url)
|
|
649
683
|
|
|
650
684
|
|
|
651
685
|
@overload
|
|
@@ -7161,7 +7195,7 @@ def task_run(
|
|
|
7161
7195
|
conn_url: Optional[str] = None,
|
|
7162
7196
|
batcher: Optional[Batcher] = None,
|
|
7163
7197
|
is_async: Literal[False] = False,
|
|
7164
|
-
) ->
|
|
7198
|
+
) -> Union[Alias.Id, AppLogs]:
|
|
7165
7199
|
pass
|
|
7166
7200
|
|
|
7167
7201
|
|
|
@@ -7186,7 +7220,7 @@ def task_run(
|
|
|
7186
7220
|
conn_url: Optional[str] = None,
|
|
7187
7221
|
batcher: Optional[Batcher] = None,
|
|
7188
7222
|
is_async: Literal[True],
|
|
7189
|
-
) -> Coroutine[Any, Any,
|
|
7223
|
+
) -> Coroutine[Any, Any, Union[Alias.Id, AppLogs]]:
|
|
7190
7224
|
pass
|
|
7191
7225
|
|
|
7192
7226
|
|
|
@@ -7210,7 +7244,7 @@ def task_run(
|
|
|
7210
7244
|
conn_url: Optional[str] = None,
|
|
7211
7245
|
batcher: Optional[Batcher] = None,
|
|
7212
7246
|
is_async: bool = False,
|
|
7213
|
-
) -> Union[
|
|
7247
|
+
) -> Union[Union[Alias.Id, AppLogs], Coroutine[Any, Any, Union[Alias.Id, AppLogs]]]:
|
|
7214
7248
|
"""run prepared task by `operation_id` with `cfg_id` and other overridden parameters
|
|
7215
7249
|
|
|
7216
7250
|
Args:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.3.66
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/operations.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/pipeline.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/abstract/statuses.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/admin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/batch/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/funcs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/config.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/helpers.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/secondary/kafka_utils.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/tools/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools/tools/abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/requires.txt
RENAMED
|
File without changes
|
{malevich_coretools-0.3.66 → malevich_coretools-0.3.67}/malevich_coretools.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|