malevich-coretools 0.3.31__tar.gz → 0.3.32__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 (37) hide show
  1. {malevich_coretools-0.3.31/malevich_coretools.egg-info → malevich_coretools-0.3.32}/PKG-INFO +1 -1
  2. malevich_coretools-0.3.32/VERSION +1 -0
  3. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/abstract/abstract.py +1 -0
  4. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/utils.py +6 -2
  5. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32/malevich_coretools.egg-info}/PKG-INFO +1 -1
  6. malevich_coretools-0.3.31/VERSION +0 -1
  7. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/LICENSE +0 -0
  8. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/MANIFEST.in +0 -0
  9. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/README.md +0 -0
  10. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/__init__.py +0 -0
  11. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/abstract/__init__.py +0 -0
  12. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/abstract/pipeline.py +0 -0
  13. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/abstract/statuses.py +0 -0
  14. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/admin/__init__.py +0 -0
  15. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/admin/utils.py +0 -0
  16. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/batch/__init__.py +0 -0
  17. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/batch/utils.py +0 -0
  18. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/funcs/__init__.py +0 -0
  19. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/funcs/checks.py +0 -0
  20. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/funcs/funcs.py +0 -0
  21. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/funcs/helpers.py +0 -0
  22. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/secondary/__init__.py +0 -0
  23. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/secondary/config.py +0 -0
  24. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/secondary/const.py +0 -0
  25. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/secondary/helpers.py +0 -0
  26. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/secondary/kafka_utils.py +0 -0
  27. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/tools/__init__.py +0 -0
  28. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/tools/abstract.py +0 -0
  29. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools/tools/vast.py +0 -0
  30. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools.egg-info/SOURCES.txt +0 -0
  31. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools.egg-info/dependency_links.txt +0 -0
  32. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools.egg-info/requires.txt +0 -0
  33. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/malevich_coretools.egg-info/top_level.txt +0 -0
  34. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/pyproject.toml +0 -0
  35. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/requirements.txt +0 -0
  36. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/setup.cfg +0 -0
  37. {malevich_coretools-0.3.31 → malevich_coretools-0.3.32}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.31
3
+ Version: 0.3.32
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -0,0 +1 @@
1
+ 0.3.32
@@ -505,6 +505,7 @@ class RunSettings(BaseModel):
505
505
  class Endpoint(BaseModel):
506
506
  hash: Optional[Alias.Id] = None
507
507
  taskId: Optional[Alias.Id] = None
508
+ pipelineId: Optional[Alias.Id] = None # should set taskId or pipelineId
508
509
  cfgId: Optional[Alias.Id] = None
509
510
  sla: Optional[str] = None
510
511
  active: Optional[bool] = None
@@ -896,6 +896,7 @@ def run_endpoint(
896
896
 
897
897
  def create_endpoint(
898
898
  task_id: Optional[str] = None,
899
+ pipeline_id: Optional[str] = None,
899
900
  cfg_id: Optional[str] = None,
900
901
  sla: Optional[str] = None,
901
902
  active: Optional[bool] = None,
@@ -911,9 +912,10 @@ def create_endpoint(
911
912
  batcher: Optional[Batcher] = None,
912
913
  ) -> Alias.Id:
913
914
  """create endpoint, return hash, url - api/v1/endpoints/run/{hash}. fields may not be initialized - this will only cause an error at startup"""
915
+ assert task_id is None or pipeline_id is None, "endpoint should be defined in one way"
914
916
  if batcher is None:
915
917
  batcher = Config.BATCHER
916
- data = Endpoint(taskId=task_id, cfgId=cfg_id, sla=sla, active=active, prepare=prepare, runSettings=run_settings,
918
+ data = Endpoint(taskId=task_id, pipelineId=pipeline_id, cfgId=cfg_id, sla=sla, active=active, prepare=prepare, runSettings=run_settings,
917
919
  enableNotAuthorized=enable_not_auth, expectedCollectionsWithSchemes=expected_colls_with_schemes, description=description)
918
920
  if batcher is not None:
919
921
  return batcher.add("postEndpointCreate", data=data)
@@ -923,6 +925,7 @@ def create_endpoint(
923
925
  def update_endpoint(
924
926
  hash: str,
925
927
  task_id: Optional[str] = None,
928
+ pipeline_id: Optional[str] = None,
926
929
  cfg_id: Optional[str] = None,
927
930
  sla: Optional[str] = None,
928
931
  active: Optional[bool] = None,
@@ -938,9 +941,10 @@ def update_endpoint(
938
941
  batcher: Optional[Batcher] = None,
939
942
  ) -> Alias.Id:
940
943
  """update endpoint, return hash, url - api/v1/endpoints/run/{hash}. update field if it is not None"""
944
+ assert task_id is None or pipeline_id is None, "endpoint should be defined in one way"
941
945
  if batcher is None:
942
946
  batcher = Config.BATCHER
943
- data = Endpoint(hash=hash, taskId=task_id, cfgId=cfg_id, sla=sla, active=active, prepare=prepare, runSettings=run_settings,
947
+ data = Endpoint(hash=hash, taskId=task_id, pipelineId=pipeline_id, cfgId=cfg_id, sla=sla, active=active, prepare=prepare, runSettings=run_settings,
944
948
  enableNotAuthorized=enable_not_auth, expectedCollectionsWithSchemes=expected_colls_with_schemes, description=description)
945
949
  if batcher is not None:
946
950
  return batcher.add("postEndpointUpdate", data=data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.3.31
3
+ Version: 0.3.32
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -1 +0,0 @@
1
- 0.3.31