malevich-coretools 0.3.14__tar.gz → 0.3.16__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.14/malevich_coretools.egg-info → malevich_coretools-0.3.16}/PKG-INFO +1 -1
- malevich_coretools-0.3.16/VERSION +1 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/batch/__init__.py +1 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/const.py +47 -44
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/utils.py +3 -3
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16/malevich_coretools.egg-info}/PKG-INFO +1 -1
- malevich_coretools-0.3.14/VERSION +0 -1
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/LICENSE +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/MANIFEST.in +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/README.md +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/__init__.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/__init__.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/abstract.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/pipeline.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/statuses.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/admin/__init__.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/admin/utils.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/batch/utils.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/funcs/__init__.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/funcs/checks.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/funcs/funcs.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/funcs/helpers.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/__init__.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/config.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/helpers.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/kafka_utils.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/tools/__init__.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/tools/abstract.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/tools/vast.py +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/SOURCES.txt +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/dependency_links.txt +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/requires.txt +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/top_level.txt +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/pyproject.toml +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/requirements.txt +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/setup.cfg +0 -0
- {malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.16
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/const.py
RENAMED
|
@@ -3,6 +3,7 @@ from typing import Dict, Optional
|
|
|
3
3
|
|
|
4
4
|
import aiohttp
|
|
5
5
|
|
|
6
|
+
from malevich_coretools.batch import DefferOperationInternal
|
|
6
7
|
from malevich_coretools.secondary.helpers import bool_to_str
|
|
7
8
|
|
|
8
9
|
# const
|
|
@@ -25,7 +26,9 @@ def with_key_values(url: str, key_values: Dict[str, Optional[str]]) -> str:
|
|
|
25
26
|
sep = "?"
|
|
26
27
|
for key, value in key_values.items():
|
|
27
28
|
if value is not None:
|
|
28
|
-
if isinstance(value,
|
|
29
|
+
if isinstance(value, DefferOperationInternal):
|
|
30
|
+
value = urllib.parse.quote(str(value), safe='')
|
|
31
|
+
elif isinstance(value, str):
|
|
29
32
|
value = urllib.parse.quote(value, safe='')
|
|
30
33
|
url = f"{url}{sep}{key}={value}"
|
|
31
34
|
if sep == "?":
|
|
@@ -40,21 +43,21 @@ DOCS_ID = lambda id, wait: with_wait(f"{DOCS_MAIN}/{id}", wait)
|
|
|
40
43
|
## CollectionsController
|
|
41
44
|
COLLECTIONS_MAIN = f"{API_VERSION}/collections"
|
|
42
45
|
COLLECTIONS = lambda wait: with_wait(f"{COLLECTIONS_MAIN}/", wait)
|
|
43
|
-
COLLECTIONS_IDS_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/name/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
44
|
-
COLLECTIONS_NAME = lambda name, operation_id, run_id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/name/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id, "offset": offset, "limit": limit})
|
|
45
|
-
COLLECTIONS_IDS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/groupName/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
46
|
-
COLLECTIONS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/groupName/{urllib.parse.quote(name, safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
47
|
-
COLLECTIONS_ID = lambda id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}", {"offset": offset, "limit": limit})
|
|
48
|
-
COLLECTIONS_ID_MODIFY = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
49
|
-
COLLECTIONS_ID_S3 = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/s3/{urllib.parse.quote(id, safe='')}", wait)
|
|
50
|
-
COLLECTIONS_ID_ADD = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/add", wait)
|
|
51
|
-
COLLECTIONS_ID_COPY = lambda id, full_copy, wait: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/copy", {"wait": None if wait is None else bool_to_str(wait), "fullCopy": None if full_copy is None else bool_to_str(full_copy)})
|
|
52
|
-
COLLECTIONS_ID_DEL = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/del", wait)
|
|
46
|
+
COLLECTIONS_IDS_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/name/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
47
|
+
COLLECTIONS_NAME = lambda name, operation_id, run_id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/name/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id, "offset": offset, "limit": limit})
|
|
48
|
+
COLLECTIONS_IDS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/ids/groupName/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
49
|
+
COLLECTIONS_GROUP_NAME = lambda name, operation_id, run_id: with_key_values(f"{COLLECTIONS_MAIN}/groupName/{urllib.parse.quote(str(name), safe='')}", {"operationId": operation_id, "runId": run_id})
|
|
50
|
+
COLLECTIONS_ID = lambda id, offset, limit: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", {"offset": offset, "limit": limit})
|
|
51
|
+
COLLECTIONS_ID_MODIFY = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
52
|
+
COLLECTIONS_ID_S3 = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/s3/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
53
|
+
COLLECTIONS_ID_ADD = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/add", wait)
|
|
54
|
+
COLLECTIONS_ID_COPY = lambda id, full_copy, wait: with_key_values(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/copy", {"wait": None if wait is None else bool_to_str(wait), "fullCopy": None if full_copy is None else bool_to_str(full_copy)})
|
|
55
|
+
COLLECTIONS_ID_DEL = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/del", wait)
|
|
53
56
|
COLLECTIONS_DATA = lambda wait: with_wait(f"{COLLECTIONS_MAIN}/data", wait)
|
|
54
|
-
COLLECTIONS_APPLY_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/applyScheme", wait)
|
|
55
|
-
COLLECTIONS_FIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/fixScheme", wait)
|
|
56
|
-
COLLECTIONS_UNFIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/unfixScheme", wait)
|
|
57
|
-
COLLECTIONS_METADATA = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(id, safe='')}/metadata", wait)
|
|
57
|
+
COLLECTIONS_APPLY_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/applyScheme", wait)
|
|
58
|
+
COLLECTIONS_FIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/fixScheme", wait)
|
|
59
|
+
COLLECTIONS_UNFIX_SCHEME = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/unfixScheme", wait)
|
|
60
|
+
COLLECTIONS_METADATA = lambda id, wait: with_wait(f"{COLLECTIONS_MAIN}/{urllib.parse.quote(str(id), safe='')}/metadata", wait)
|
|
58
61
|
|
|
59
62
|
## CollectionObjectsController
|
|
60
63
|
COLLECTION_OBJECTS_MAIN = f"{API_VERSION}/collectionObjects"
|
|
@@ -67,43 +70,43 @@ COLLECTION_OBJECTS_PRESIGN = lambda signature, zip: with_key_values(f"{COLLECTIO
|
|
|
67
70
|
|
|
68
71
|
## EndpointController
|
|
69
72
|
ENDPOINTS_MAIN = f"{API_VERSION}/endpoints"
|
|
70
|
-
ENDPOINTS = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/{urllib.parse.quote(hash, safe='')}", wait)
|
|
73
|
+
ENDPOINTS = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/{urllib.parse.quote(str(hash), safe='')}", wait)
|
|
71
74
|
ENDPOINTS_ALL = lambda wait: with_wait(f"{ENDPOINTS_MAIN}/all", wait)
|
|
72
|
-
ENDPOINTS_RUN = lambda hash: f"{ENDPOINTS_MAIN}/run/{urllib.parse.quote(hash, safe='')}"
|
|
75
|
+
ENDPOINTS_RUN = lambda hash: f"{ENDPOINTS_MAIN}/run/{urllib.parse.quote(str(hash), safe='')}"
|
|
73
76
|
ENDPOINTS_CREATE = lambda wait: with_wait(f"{ENDPOINTS_MAIN}/create", wait)
|
|
74
77
|
ENDPOINTS_UPDATE = lambda wait: with_wait(f"{ENDPOINTS_MAIN}/update", wait)
|
|
75
|
-
ENDPOINTS_PAUSE = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/pause/{urllib.parse.quote(hash, safe='')}", wait)
|
|
76
|
-
ENDPOINTS_RESUME = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/resume/{urllib.parse.quote(hash, safe='')}", wait)
|
|
78
|
+
ENDPOINTS_PAUSE = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/pause/{urllib.parse.quote(str(hash), safe='')}", wait)
|
|
79
|
+
ENDPOINTS_RESUME = lambda hash, wait: with_wait(f"{ENDPOINTS_MAIN}/resume/{urllib.parse.quote(str(hash), safe='')}", wait)
|
|
77
80
|
|
|
78
81
|
## SchemeController
|
|
79
82
|
SCHEMES_MAIN = f"{API_VERSION}/schemes"
|
|
80
83
|
SCHEMES = lambda wait: with_wait(f"{SCHEMES_MAIN}/", wait)
|
|
81
|
-
SCHEMES_ID = lambda id, wait: with_wait(f"{SCHEMES_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
82
|
-
SCHEMES_ID_RAW = lambda id: f"{SCHEMES_MAIN}/{urllib.parse.quote(id, safe='')}/raw"
|
|
84
|
+
SCHEMES_ID = lambda id, wait: with_wait(f"{SCHEMES_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
85
|
+
SCHEMES_ID_RAW = lambda id: f"{SCHEMES_MAIN}/{urllib.parse.quote(str(id), safe='')}/raw"
|
|
83
86
|
SCHEMES_MAPPING = lambda wait: with_wait(f"{SCHEMES_MAIN}/mapping", wait)
|
|
84
|
-
SCHEMES_MAPPING_IDS = lambda from_id, to_id: f"{SCHEMES_MAIN}/mapping/{urllib.parse.quote(from_id, safe='')}/{urllib.parse.quote(to_id, safe='')}"
|
|
87
|
+
SCHEMES_MAPPING_IDS = lambda from_id, to_id: f"{SCHEMES_MAIN}/mapping/{urllib.parse.quote(str(from_id), safe='')}/{urllib.parse.quote(str(to_id), safe='')}"
|
|
85
88
|
|
|
86
89
|
## CommonController
|
|
87
90
|
CHECK = ""
|
|
88
91
|
PING = "ping"
|
|
89
92
|
# COMMON_MAIN = f"{API_VERSION}/common"
|
|
90
93
|
# MAPPING = lambda wait: with_wait(f"{COMMON_MAIN}/mapping", wait)
|
|
91
|
-
# MAPPING_ID = lambda id, wait: with_wait(f"{COMMON_MAIN}/mapping/{urllib.parse.quote(id, safe='')}", wait)
|
|
94
|
+
# MAPPING_ID = lambda id, wait: with_wait(f"{COMMON_MAIN}/mapping/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
92
95
|
# COMMON_ALL = lambda wait: with_wait(f"{COMMON_MAIN}/all", wait)
|
|
93
96
|
|
|
94
97
|
## UserShareController
|
|
95
98
|
SHARE_MAIN = f"{API_VERSION}/share"
|
|
96
99
|
SHARE = lambda wait: with_wait(f"{SHARE_MAIN}/", wait)
|
|
97
|
-
SHARE_COLLECTION_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/collection/{urllib.parse.quote(id, safe='')}", wait)
|
|
98
|
-
SHARE_SCHEME_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/scheme/{urllib.parse.quote(id, safe='')}", wait)
|
|
99
|
-
SHARE_USER_APP_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/userApp/{urllib.parse.quote(id, safe='')}", wait)
|
|
100
|
-
SHARE_LOGIN = lambda login: f"{SHARE_MAIN}/login/{urllib.parse.quote(login, safe='')}"
|
|
100
|
+
SHARE_COLLECTION_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/collection/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
101
|
+
SHARE_SCHEME_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/scheme/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
102
|
+
SHARE_USER_APP_ID = lambda id, wait: with_wait(f"{SHARE_MAIN}/userApp/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
103
|
+
SHARE_LOGIN = lambda login: f"{SHARE_MAIN}/login/{urllib.parse.quote(str(login), safe='')}"
|
|
101
104
|
SHARE_ALL = lambda wait: with_wait(f"{SHARE_MAIN}/all", wait)
|
|
102
105
|
|
|
103
106
|
## RegistrationController
|
|
104
107
|
REGISTER_MAIN = f"{API_VERSION}/register"
|
|
105
108
|
REGISTER = f"{REGISTER_MAIN}/"
|
|
106
|
-
REGISTER_LOGIN = lambda login, wait: with_wait(f"{REGISTER_MAIN}/login/{urllib.parse.quote(login, safe='')}", wait)
|
|
109
|
+
REGISTER_LOGIN = lambda login, wait: with_wait(f"{REGISTER_MAIN}/login/{urllib.parse.quote(str(login), safe='')}", wait)
|
|
107
110
|
REGISTER_ALL = f"{REGISTER_MAIN}/all"
|
|
108
111
|
|
|
109
112
|
## UserAppsController
|
|
@@ -111,44 +114,44 @@ USER_APPS_MAIN = f"{API_VERSION}/userApps"
|
|
|
111
114
|
USER_APPS = lambda wait: with_wait(f"{USER_APPS_MAIN}/", wait)
|
|
112
115
|
USER_APPS_REAL_IDS = f"{USER_APPS_MAIN}/realIds"
|
|
113
116
|
USER_APPS_MAP_IDS = f"{USER_APPS_MAIN}/mapIds"
|
|
114
|
-
USER_APPS_ID = lambda id, wait: with_wait(f"{USER_APPS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
115
|
-
USER_APPS_REAL_ID = lambda id: f"{USER_APPS_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
|
|
117
|
+
USER_APPS_ID = lambda id, wait: with_wait(f"{USER_APPS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
118
|
+
USER_APPS_REAL_ID = lambda id: f"{USER_APPS_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
|
|
116
119
|
|
|
117
120
|
## UserTasksController
|
|
118
121
|
USER_TASKS_MAIN = f"{API_VERSION}/userTasks"
|
|
119
122
|
USER_TASKS = lambda wait: with_wait(f"{USER_TASKS_MAIN}/", wait)
|
|
120
123
|
USER_TASKS_REAL_IDS = f"{USER_TASKS_MAIN}/realIds"
|
|
121
124
|
USER_TASKS_MAP_IDS = f"{USER_TASKS_MAIN}/mapIds"
|
|
122
|
-
USER_TASKS_ID = lambda id, wait: with_wait(f"{USER_TASKS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
123
|
-
USER_TASKS_REAL_ID = lambda id: f"{USER_TASKS_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
|
|
125
|
+
USER_TASKS_ID = lambda id, wait: with_wait(f"{USER_TASKS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
126
|
+
USER_TASKS_REAL_ID = lambda id: f"{USER_TASKS_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
|
|
124
127
|
|
|
125
128
|
## UserPipelinesController
|
|
126
129
|
USER_PIPELINES_MAIN = f"{API_VERSION}/userPipelines"
|
|
127
130
|
USER_PIPELINES = lambda wait: with_wait(f"{USER_PIPELINES_MAIN}/", wait)
|
|
128
131
|
USER_PIPELINES_REAL_IDS = f"{USER_PIPELINES_MAIN}/realIds"
|
|
129
132
|
USER_PIPELINES_MAP_IDS = f"{USER_PIPELINES_MAIN}/mapIds"
|
|
130
|
-
USER_PIPELINES_ID = lambda id, wait: with_wait(f"{USER_PIPELINES_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
131
|
-
USER_PIPELINES_REAL_ID = lambda id: f"{USER_PIPELINES_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
|
|
133
|
+
USER_PIPELINES_ID = lambda id, wait: with_wait(f"{USER_PIPELINES_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
134
|
+
USER_PIPELINES_REAL_ID = lambda id: f"{USER_PIPELINES_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
|
|
132
135
|
|
|
133
136
|
## UserCfgsController
|
|
134
137
|
USER_CFGS_MAIN = f"{API_VERSION}/userCfgs"
|
|
135
138
|
USER_CFGS = lambda wait: with_wait(f"{USER_CFGS_MAIN}/", wait)
|
|
136
139
|
USER_CFGS_REAL_IDS = f"{USER_CFGS_MAIN}/realIds"
|
|
137
140
|
USER_CFGS_MAP_IDS = f"{USER_CFGS_MAIN}/mapIds"
|
|
138
|
-
USER_CFGS_ID = lambda id, wait: with_wait(f"{USER_CFGS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
139
|
-
USER_CFGS_REAL_ID = lambda id: f"{USER_CFGS_MAIN}/realIds/{urllib.parse.quote(id, safe='')}"
|
|
141
|
+
USER_CFGS_ID = lambda id, wait: with_wait(f"{USER_CFGS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
142
|
+
USER_CFGS_REAL_ID = lambda id: f"{USER_CFGS_MAIN}/realIds/{urllib.parse.quote(str(id), safe='')}"
|
|
140
143
|
|
|
141
144
|
## OperationResultsController
|
|
142
145
|
OPERATION_RESULTS_MAIN = f"{API_VERSION}/operationResults"
|
|
143
146
|
OPERATION_RESULTS = lambda wait: with_wait(f"{OPERATION_RESULTS_MAIN}/", wait)
|
|
144
|
-
OPERATION_RESULTS_ID = lambda id, wait: with_wait(f"{OPERATION_RESULTS_MAIN}/{urllib.parse.quote(id, safe='')}", wait)
|
|
147
|
+
OPERATION_RESULTS_ID = lambda id, wait: with_wait(f"{OPERATION_RESULTS_MAIN}/{urllib.parse.quote(str(id), safe='')}", wait)
|
|
145
148
|
|
|
146
149
|
## TempRunController
|
|
147
150
|
TEMP_RUN_MAIN = f"{API_VERSION}/run"
|
|
148
|
-
TEMP_RUN_CONDITION = lambda operationId: f"{TEMP_RUN_MAIN}/condition/{urllib.parse.quote(operationId, safe='')}"
|
|
151
|
+
TEMP_RUN_CONDITION = lambda operationId: f"{TEMP_RUN_MAIN}/condition/{urllib.parse.quote(str(operationId), safe='')}"
|
|
149
152
|
TEMP_RUN_ACTIVE_RUNS = f"{TEMP_RUN_MAIN}/activeRuns"
|
|
150
|
-
TEMP_RUN_MAIN_TASK_CFG = lambda operationId: f"{TEMP_RUN_MAIN}/mainTaskCfg/{urllib.parse.quote(operationId, safe='')}"
|
|
151
|
-
TEMP_RUN_OPERATIONS_IDS = lambda taskId, cfgId: f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(taskId, safe='')}" if cfgId is None else f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(taskId, safe='')}/{urllib.parse.quote(cfgId, safe='')}"
|
|
153
|
+
TEMP_RUN_MAIN_TASK_CFG = lambda operationId: f"{TEMP_RUN_MAIN}/mainTaskCfg/{urllib.parse.quote(str(operationId), safe='')}"
|
|
154
|
+
TEMP_RUN_OPERATIONS_IDS = lambda taskId, cfgId: f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(str(taskId), safe='')}" if cfgId is None else f"{TEMP_RUN_MAIN}/operationsIds/{urllib.parse.quote(str(taskId), safe='')}/{urllib.parse.quote(str(cfgId), safe='')}"
|
|
152
155
|
|
|
153
156
|
## AdminController
|
|
154
157
|
ADMIN_MAIN = f"{API_VERSION}/admin"
|
|
@@ -160,11 +163,11 @@ ADMIN_SUPERUSER = f"{ADMIN_MAIN}/superuser"
|
|
|
160
163
|
MANAGER_MAIN = f"{API_VERSION}/manager"
|
|
161
164
|
MANAGER_LOGS = f"{MANAGER_MAIN}/logs"
|
|
162
165
|
MANAGER_CLICKHOUSE_ALL = f"{MANAGER_MAIN}/clickhouse"
|
|
163
|
-
MANAGER_CLICKHOUSE_ID = lambda operationId: f"{MANAGER_MAIN}/clickhouse/{urllib.parse.quote(operationId, safe='')}"
|
|
166
|
+
MANAGER_CLICKHOUSE_ID = lambda operationId: f"{MANAGER_MAIN}/clickhouse/{urllib.parse.quote(str(operationId), safe='')}"
|
|
164
167
|
MANAGER_DAG_KEY_VALUE = lambda wait: with_wait(f"{MANAGER_MAIN}/dagKeyValue", wait)
|
|
165
|
-
MANAGER_DAG_KEY_VALUE_OPERATION_ID = lambda operationId: f"{MANAGER_MAIN}/dagKeyValue/{urllib.parse.quote(operationId, safe='')}"
|
|
166
|
-
MANAGER_APP_INFO = lambda appId: f"{MANAGER_MAIN}/appInfo/{urllib.parse.quote(appId, safe='')}"
|
|
167
|
-
MANAGER_APP_INFO_REAL_ID = lambda appId: f"{MANAGER_MAIN}/appInfo/realId/{urllib.parse.quote(appId, safe='')}"
|
|
168
|
+
MANAGER_DAG_KEY_VALUE_OPERATION_ID = lambda operationId: f"{MANAGER_MAIN}/dagKeyValue/{urllib.parse.quote(str(operationId), safe='')}"
|
|
169
|
+
MANAGER_APP_INFO = lambda appId: f"{MANAGER_MAIN}/appInfo/{urllib.parse.quote(str(appId), safe='')}"
|
|
170
|
+
MANAGER_APP_INFO_REAL_ID = lambda appId: f"{MANAGER_MAIN}/appInfo/realId/{urllib.parse.quote(str(appId), safe='')}"
|
|
168
171
|
MANAGER_IMAGE_INFO = f"{MANAGER_MAIN}/imageInfo"
|
|
169
172
|
MANAGER_TASK_SCHEDULES = f"{MANAGER_MAIN}/task/schedules"
|
|
170
173
|
MANAGER_TASK = lambda wait: with_wait(f"{MANAGER_MAIN}/task", wait)
|
|
@@ -864,7 +864,7 @@ def create_endpoint(
|
|
|
864
864
|
auth: Optional[AUTH] = None,
|
|
865
865
|
conn_url: Optional[str] = None,
|
|
866
866
|
batcher: Optional[Batcher] = None,
|
|
867
|
-
) ->
|
|
867
|
+
) -> Alias.Id:
|
|
868
868
|
"""create endpoint, return hash, url - api/v1/endpoints/run/{hash}. fields may not be initialized - this will only cause an error at startup"""
|
|
869
869
|
if batcher is None:
|
|
870
870
|
batcher = Config.BATCHER
|
|
@@ -891,12 +891,12 @@ def update_endpoint(
|
|
|
891
891
|
auth: Optional[AUTH] = None,
|
|
892
892
|
conn_url: Optional[str] = None,
|
|
893
893
|
batcher: Optional[Batcher] = None,
|
|
894
|
-
) ->
|
|
894
|
+
) -> Alias.Id:
|
|
895
895
|
"""update endpoint, return hash, url - api/v1/endpoints/run/{hash}. update field if it is not None"""
|
|
896
896
|
if batcher is None:
|
|
897
897
|
batcher = Config.BATCHER
|
|
898
898
|
data = Endpoint(hash=hash, taskId=task_id, cfgId=cfg_id, sla=sla, active=active, prepare=prepare, runSettings=run_settings,
|
|
899
|
-
enableNotAuthorized=enable_not_auth,
|
|
899
|
+
enableNotAuthorized=enable_not_auth, expectedCollectionsWithSchemes=expected_colls_with_schemes, description=description)
|
|
900
900
|
if batcher is not None:
|
|
901
901
|
return batcher.add("postEndpointUpdate", data=data)
|
|
902
902
|
return f.update_endpoint(data, wait=wait, auth=auth, conn_url=conn_url)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.3.14
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/abstract.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/pipeline.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/abstract/statuses.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/admin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/funcs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/config.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/helpers.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/secondary/kafka_utils.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/tools/__init__.py
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools/tools/abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/requires.txt
RENAMED
|
File without changes
|
{malevich_coretools-0.3.14 → malevich_coretools-0.3.16}/malevich_coretools.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|