malevich-coretools 0.3.34__tar.gz → 0.3.36__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.34/malevich_coretools.egg-info → malevich_coretools-0.3.36}/PKG-INFO +1 -1
- malevich_coretools-0.3.36/VERSION +1 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/funcs/funcs.py +7 -3
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/utils.py +2 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36/malevich_coretools.egg-info}/PKG-INFO +1 -1
- malevich_coretools-0.3.34/VERSION +0 -1
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/LICENSE +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/MANIFEST.in +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/README.md +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/abstract.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/operations.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/pipeline.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/statuses.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/admin/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/admin/utils.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/batch/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/batch/utils.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/funcs/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/funcs/checks.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/funcs/helpers.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/config.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/const.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/helpers.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/kafka_utils.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/tools/__init__.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/tools/abstract.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/tools/vast.py +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/SOURCES.txt +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/dependency_links.txt +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/requires.txt +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/top_level.txt +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/pyproject.toml +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/requirements.txt +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/setup.cfg +0 -0
- {malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.36
|
|
@@ -677,9 +677,11 @@ def post_manager_task_run(data: RunTask, with_show: bool, long: bool, long_timeo
|
|
|
677
677
|
return AppLogs.model_validate_json(res)
|
|
678
678
|
|
|
679
679
|
|
|
680
|
-
def post_manager_pipeline(data: MainPipeline, with_show: bool, long: bool, long_timeout: int, wait: bool, auth: Optional[AUTH], conn_url: Optional[str]=None, *args, **kwargs) -> Union[Alias.Id, AppLogs]:
|
|
680
|
+
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]:
|
|
681
681
|
check_profile_mode(data.profileMode)
|
|
682
|
-
res = send_to_core_modify(MANAGER_PIPELINE(wait and not long), data, with_show=with_show, show_func=show_logs_func, auth=auth, conn_url=conn_url, *args, **kwargs)
|
|
682
|
+
res = send_to_core_modify(MANAGER_PIPELINE(wait and not long), data, with_show=with_show, show_func=show_logs_func, return_response=return_response, auth=auth, conn_url=conn_url, *args, **kwargs)
|
|
683
|
+
if return_response:
|
|
684
|
+
return res
|
|
683
685
|
if wait and long:
|
|
684
686
|
res = asyncio.run(__get_result(res, timeout=long_timeout, auth=auth))
|
|
685
687
|
if not wait:
|
|
@@ -847,7 +849,7 @@ def send_to_core_get(path: str, with_auth=True, show_func: Optional[Callable]=No
|
|
|
847
849
|
return response.content
|
|
848
850
|
|
|
849
851
|
|
|
850
|
-
def send_to_core_modify(path: str, operation: Optional[Any] = None, with_auth: bool=True, with_show: Optional[bool]=None, show_func: Optional[Callable]=None, is_post: bool=True, auth: Optional[AUTH]=None, conn_url: Optional[str]=None) -> str: # noqa: ANN401
|
|
852
|
+
def send_to_core_modify(path: str, operation: Optional[Any] = None, with_auth: bool=True, with_show: Optional[bool]=None, show_func: Optional[Callable]=None, return_response: bool = False, is_post: bool=True, auth: Optional[AUTH]=None, conn_url: Optional[str]=None) -> str: # noqa: ANN401
|
|
851
853
|
"""modify: post by default, else - delete"""
|
|
852
854
|
host = Config.HOST_PORT if conn_url is None else conn_url
|
|
853
855
|
assert host is not None, "host port not set"
|
|
@@ -859,6 +861,8 @@ def send_to_core_modify(path: str, operation: Optional[Any] = None, with_auth: b
|
|
|
859
861
|
response = requests.post(f"{host}{path}", data=operation, headers=HEADERS, auth=auth if with_auth else None)
|
|
860
862
|
else: # delete
|
|
861
863
|
response = requests.delete(f"{host}{path}", data=operation, headers=HEADERS, auth=auth if with_auth else None)
|
|
864
|
+
if return_response:
|
|
865
|
+
return response
|
|
862
866
|
__check_response(f"{host}{path}", response, show_func=show_func)
|
|
863
867
|
if response.status_code == HTTPStatus.NO_CONTENT:
|
|
864
868
|
return ""
|
|
@@ -2906,6 +2906,7 @@ def pipeline_full(
|
|
|
2906
2906
|
with_show: bool = True,
|
|
2907
2907
|
long: bool = False,
|
|
2908
2908
|
long_timeout: Optional[int] = WAIT_RESULT_TIMEOUT,
|
|
2909
|
+
return_response: bool = False,
|
|
2909
2910
|
wait: bool = True,
|
|
2910
2911
|
*,
|
|
2911
2912
|
auth: Optional[AUTH] = None,
|
|
@@ -2950,6 +2951,7 @@ def pipeline_full(
|
|
|
2950
2951
|
with_show=with_show,
|
|
2951
2952
|
long=long,
|
|
2952
2953
|
long_timeout=long_timeout,
|
|
2954
|
+
return_response=return_response,
|
|
2953
2955
|
wait=wait,
|
|
2954
2956
|
auth=auth,
|
|
2955
2957
|
conn_url=conn_url,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.3.34
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/abstract.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/operations.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/pipeline.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/abstract/statuses.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/admin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/batch/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/funcs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/config.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/const.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/helpers.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/secondary/kafka_utils.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/tools/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools/tools/abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/requires.txt
RENAMED
|
File without changes
|
{malevich_coretools-0.3.34 → malevich_coretools-0.3.36}/malevich_coretools.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|