malevich-coretools 0.3.34__py3-none-any.whl → 0.3.35__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/funcs/funcs.py +3 -1
- malevich_coretools/utils.py +2 -0
- {malevich_coretools-0.3.34.dist-info → malevich_coretools-0.3.35.dist-info}/METADATA +1 -2
- {malevich_coretools-0.3.34.dist-info → malevich_coretools-0.3.35.dist-info}/RECORD +7 -7
- {malevich_coretools-0.3.34.dist-info → malevich_coretools-0.3.35.dist-info}/WHEEL +1 -1
- {malevich_coretools-0.3.34.dist-info → malevich_coretools-0.3.35.dist-info}/LICENSE +0 -0
- {malevich_coretools-0.3.34.dist-info → malevich_coretools-0.3.35.dist-info}/top_level.txt +0 -0
|
@@ -847,7 +847,7 @@ def send_to_core_get(path: str, with_auth=True, show_func: Optional[Callable]=No
|
|
|
847
847
|
return response.content
|
|
848
848
|
|
|
849
849
|
|
|
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
|
|
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, return_response: bool = False, is_post: bool=True, auth: Optional[AUTH]=None, conn_url: Optional[str]=None) -> str: # noqa: ANN401
|
|
851
851
|
"""modify: post by default, else - delete"""
|
|
852
852
|
host = Config.HOST_PORT if conn_url is None else conn_url
|
|
853
853
|
assert host is not None, "host port not set"
|
|
@@ -859,6 +859,8 @@ def send_to_core_modify(path: str, operation: Optional[Any] = None, with_auth: b
|
|
|
859
859
|
response = requests.post(f"{host}{path}", data=operation, headers=HEADERS, auth=auth if with_auth else None)
|
|
860
860
|
else: # delete
|
|
861
861
|
response = requests.delete(f"{host}{path}", data=operation, headers=HEADERS, auth=auth if with_auth else None)
|
|
862
|
+
if return_response:
|
|
863
|
+
return response
|
|
862
864
|
__check_response(f"{host}{path}", response, show_func=show_func)
|
|
863
865
|
if response.status_code == HTTPStatus.NO_CONTENT:
|
|
864
866
|
return ""
|
malevich_coretools/utils.py
CHANGED
|
@@ -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.
|
|
3
|
+
Version: 0.3.35
|
|
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=
|
|
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=
|
|
14
|
+
malevich_coretools/funcs/funcs.py,sha256=f5ZiCYAZ__gToDuZI19cKK9XSrodHgbLY1Gck7Wi6r8,38930
|
|
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.
|
|
25
|
-
malevich_coretools-0.3.
|
|
26
|
-
malevich_coretools-0.3.
|
|
27
|
-
malevich_coretools-0.3.
|
|
28
|
-
malevich_coretools-0.3.
|
|
24
|
+
malevich_coretools-0.3.35.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
25
|
+
malevich_coretools-0.3.35.dist-info/METADATA,sha256=F-_AignkmmOhwHMQJ4kjvbHwNR-UucgOP11kB7n2DXc,264
|
|
26
|
+
malevich_coretools-0.3.35.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
27
|
+
malevich_coretools-0.3.35.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
|
|
28
|
+
malevich_coretools-0.3.35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|