malevich-coretools 0.3.34__py3-none-any.whl → 0.3.36__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.

@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.34
3
+ Version: 0.3.36
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -9,4 +9,3 @@ Requires-Dist: pydantic
9
9
  Requires-Dist: pandas
10
10
  Requires-Dist: aiohttp
11
11
  Requires-Dist: kafka-python
12
-
@@ -1,5 +1,5 @@
1
1
  malevich_coretools/__init__.py,sha256=DJtPESxkCZD2SbTZTrR_x0TKDQ4MJpmBqGw5YpKYidM,134
2
- malevich_coretools/utils.py,sha256=k0b6yGRJGuygu3Kp2yPwSnXDxoMxsUizy_LLlWx_9yw,114929
2
+ malevich_coretools/utils.py,sha256=m5DnGviTHbwgoKrB8lwYw9UFOGXg1X3KwoWE3Z9Z95U,115005
3
3
  malevich_coretools/abstract/__init__.py,sha256=6vQ08c8HPYyT_pPkKlc-EwQKE8xG3HTEo2p_GiI5rik,142
4
4
  malevich_coretools/abstract/abstract.py,sha256=jFN-nTKS_52WXTh5IaHPEaaYMwA50L16QQkUWhJ7lZE,14915
5
5
  malevich_coretools/abstract/operations.py,sha256=cWlo2xzW-rzkTInzpDjBYeL68KfLYqSpZJRzCQ4OzjA,3070
@@ -11,7 +11,7 @@ malevich_coretools/batch/__init__.py,sha256=taxyZl8YOZd2EBd3leN6slzMkejUtjQ64Na3
11
11
  malevich_coretools/batch/utils.py,sha256=cqX34sfh85dCwLv7qprxatzhYxxj7LqZwjhlmk_3GXQ,7705
12
12
  malevich_coretools/funcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  malevich_coretools/funcs/checks.py,sha256=Q5pRtRevQrGv_-SMbn2GgYnulhclDLBXdRtbw2QOYKU,223
14
- malevich_coretools/funcs/funcs.py,sha256=dVO-L2euOAQir69gpC1NuQa_kIFrYJD6s-9FAICGOwA,38851
14
+ malevich_coretools/funcs/funcs.py,sha256=5lrMu_20zrLQ53H8sqfzJ8ySGOLZ9wQN-uEfngJD3eQ,39029
15
15
  malevich_coretools/funcs/helpers.py,sha256=7_obLb35seAfxGH7rqe5FExuAUz7j63ByUn4Oxw5Xjk,11044
16
16
  malevich_coretools/secondary/__init__.py,sha256=048HqvG36_1WdDVZK_RuECmaf14Iq2fviUysG1inlaE,78
17
17
  malevich_coretools/secondary/config.py,sha256=hRlSJuPQnhKyt1wmOAJX_XmcliaO0fPGbW94AE_Mazs,463
@@ -21,8 +21,8 @@ malevich_coretools/secondary/kafka_utils.py,sha256=SIUnBFyfwsquN6MAUrEkKCw-1l797
21
21
  malevich_coretools/tools/__init__.py,sha256=jDxlCa5Dr6Y43qlI7JwsRAlBkKmFeTHTEnjNUvu-0iw,46
22
22
  malevich_coretools/tools/abstract.py,sha256=B1RW1FeNHrQ6r1k-cQZ4k4noCRXkIGt-JUwVoXEDkAg,4466
23
23
  malevich_coretools/tools/vast.py,sha256=63tvy70qQV9vnK0eWytlgjBGSnfA7l3kSIDgACBbMMs,12893
24
- malevich_coretools-0.3.34.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- malevich_coretools-0.3.34.dist-info/METADATA,sha256=pXbq-rBlVdEsXWguy_GtbF78zIxK41xSKVgZiJgcaRQ,265
26
- malevich_coretools-0.3.34.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
27
- malevich_coretools-0.3.34.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
28
- malevich_coretools-0.3.34.dist-info/RECORD,,
24
+ malevich_coretools-0.3.36.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
+ malevich_coretools-0.3.36.dist-info/METADATA,sha256=pbPmmrms11B4u57kwYfRq2eCkPykiEaD6KiyKuVddAQ,264
26
+ malevich_coretools-0.3.36.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
+ malevich_coretools-0.3.36.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
28
+ malevich_coretools-0.3.36.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5