malevich-coretools 0.3.37__tar.gz → 0.3.38__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.

Files changed (38) hide show
  1. {malevich_coretools-0.3.37/malevich_coretools.egg-info → malevich_coretools-0.3.38}/PKG-INFO +1 -1
  2. malevich_coretools-0.3.38/VERSION +1 -0
  3. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/funcs/funcs.py +9 -3
  4. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/utils.py +4 -1
  5. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38/malevich_coretools.egg-info}/PKG-INFO +1 -1
  6. malevich_coretools-0.3.37/VERSION +0 -1
  7. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/LICENSE +0 -0
  8. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/MANIFEST.in +0 -0
  9. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/README.md +0 -0
  10. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/__init__.py +0 -0
  11. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/abstract/__init__.py +0 -0
  12. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/abstract/abstract.py +0 -0
  13. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/abstract/operations.py +0 -0
  14. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/abstract/pipeline.py +0 -0
  15. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/abstract/statuses.py +0 -0
  16. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/admin/__init__.py +0 -0
  17. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/admin/utils.py +0 -0
  18. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/batch/__init__.py +0 -0
  19. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/batch/utils.py +0 -0
  20. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/funcs/__init__.py +0 -0
  21. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/funcs/checks.py +0 -0
  22. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/funcs/helpers.py +0 -0
  23. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/secondary/__init__.py +0 -0
  24. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/secondary/config.py +0 -0
  25. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/secondary/const.py +0 -0
  26. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/secondary/helpers.py +0 -0
  27. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/secondary/kafka_utils.py +0 -0
  28. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/tools/__init__.py +0 -0
  29. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/tools/abstract.py +0 -0
  30. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools/tools/vast.py +0 -0
  31. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools.egg-info/SOURCES.txt +0 -0
  32. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools.egg-info/dependency_links.txt +0 -0
  33. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools.egg-info/requires.txt +0 -0
  34. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/malevich_coretools.egg-info/top_level.txt +0 -0
  35. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/pyproject.toml +0 -0
  36. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/requirements.txt +0 -0
  37. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/setup.cfg +0 -0
  38. {malevich_coretools-0.3.37 → malevich_coretools-0.3.38}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.37
3
+ Version: 0.3.38
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -0,0 +1 @@
1
+ 0.3.38
@@ -837,7 +837,8 @@ async def __get_result(id: str, is_text: bool = True, check_time: float = LONG_S
837
837
  host = Config.HOST_PORT if conn_url is None else conn_url
838
838
  assert host is not None, "host port not set"
839
839
  if auth is None:
840
- auth = aiohttp.BasicAuth(login=Config.CORE_USERNAME, password=Config.CORE_PASSWORD, encoding='utf-8')
840
+ auth = (Config.CORE_USERNAME, Config.CORE_PASSWORD)
841
+ auth = aiohttp.BasicAuth(login=auth[0], password=auth[1], encoding='utf-8')
841
842
 
842
843
  timeout_deadline = None if timeout is None else datetime.datetime.now() + datetime.timedelta(0, timeout)
843
844
  while True:
@@ -912,7 +913,8 @@ async def send_to_core_get_async(path: str, with_auth=True, show_func: Optional[
912
913
  assert host is not None, "host port not set"
913
914
  if auth is None or not with_auth:
914
915
  auth = (Config.CORE_USERNAME, Config.CORE_PASSWORD) if with_auth else None
915
-
916
+ if auth is not None:
917
+ auth = aiohttp.BasicAuth(login=auth[0], password=auth[1], encoding='utf-8')
916
918
  async with async_session or aiohttp.ClientSession(auth=auth, connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
917
919
  async with session.get(f"{host}{path}", headers=HEADERS) as response:
918
920
  await __async_check_response(response, show_func, f"{host}{path}")
@@ -960,6 +962,7 @@ async def send_to_core_modify_async(path: str, operation: Optional[Any] = None,
960
962
  assert host is not None, "host port not set"
961
963
  if auth is None:
962
964
  auth = (Config.CORE_USERNAME, Config.CORE_PASSWORD)
965
+ auth = aiohttp.BasicAuth(login=auth[0], password=auth[1], encoding='utf-8')
963
966
  if operation is not None:
964
967
  operation = json.dumps(operation.model_dump())
965
968
 
@@ -1015,6 +1018,7 @@ async def send_to_core_modify_raw_async(path: str, data: bytes, with_auth: bool=
1015
1018
  assert host is not None, "host port not set"
1016
1019
  if auth is None:
1017
1020
  auth = (Config.CORE_USERNAME, Config.CORE_PASSWORD)
1021
+ auth = aiohttp.BasicAuth(login=auth[0], password=auth[1], encoding='utf-8')
1018
1022
 
1019
1023
  async with async_session or aiohttp.ClientSession(auth=auth if with_auth else None, connector=aiohttp.TCPConnector(verify_ssl=False)) as session:
1020
1024
  if is_post:
@@ -1040,7 +1044,9 @@ async def send_to_core_post_async(path: str, operation: Optional[str] = None, wi
1040
1044
  host = Config.HOST_PORT if conn_url is None else conn_url
1041
1045
  assert host is not None, "host port not set"
1042
1046
  if auth is None or not with_auth:
1043
- auth = aiohttp.BasicAuth(login=Config.CORE_USERNAME, password=Config.CORE_PASSWORD, encoding='utf-8') if with_auth else None
1047
+ auth = (Config.CORE_USERNAME, Config.CORE_PASSWORD) if with_auth else None
1048
+ if auth is not None:
1049
+ auth = aiohttp.BasicAuth(login=auth[0], password=auth[1], encoding='utf-8')
1044
1050
  if operation is not None:
1045
1051
  operation = json.dumps(operation.model_dump())
1046
1052
 
@@ -165,7 +165,7 @@ def get_doc_by_name(
165
165
 
166
166
  def create_doc(
167
167
  data: Union[Alias.Json, Dict, Type[BaseModel]],
168
- name: Optional[str],
168
+ name: Optional[str] = None,
169
169
  wait: bool = True,
170
170
  *,
171
171
  auth: Optional[AUTH] = None,
@@ -3033,6 +3033,7 @@ def pipeline_prepare(
3033
3033
  with_show: bool = True,
3034
3034
  long: bool = False,
3035
3035
  long_timeout: Optional[int] = WAIT_RESULT_TIMEOUT,
3036
+ return_response: bool = False,
3036
3037
  wait: bool = True,
3037
3038
  *,
3038
3039
  auth: Optional[AUTH] = None,
@@ -3079,6 +3080,7 @@ def pipeline_prepare(
3079
3080
  with_show=with_show,
3080
3081
  long=long,
3081
3082
  long_timeout=long_timeout,
3083
+ return_response=return_response,
3082
3084
  wait=wait,
3083
3085
  auth=auth,
3084
3086
  conn_url=conn_url,
@@ -3089,6 +3091,7 @@ def pipeline_prepare(
3089
3091
  with_show=with_show,
3090
3092
  long=long,
3091
3093
  long_timeout=long_timeout,
3094
+ return_response=return_response,
3092
3095
  wait=wait,
3093
3096
  auth=auth,
3094
3097
  conn_url=conn_url,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.37
3
+ Version: 0.3.38
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -1 +0,0 @@
1
- 0.3.37