malevich-coretools 0.3.10__tar.gz → 0.3.12__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.10/malevich_coretools.egg-info → malevich_coretools-0.3.12}/PKG-INFO +1 -1
- malevich_coretools-0.3.12/VERSION +1 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/abstract/abstract.py +37 -37
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/utils.py +10 -2
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12/malevich_coretools.egg-info}/PKG-INFO +1 -1
- malevich-coretools-0.3.10/VERSION +0 -1
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/LICENSE +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/MANIFEST.in +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/README.md +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/abstract/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/abstract/statuses.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/admin/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/admin/utils.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/batch/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/batch/utils.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/funcs/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/funcs/checks.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/funcs/funcs.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/funcs/helpers.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/config.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/const.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/helpers.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/kafka_utils.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/tools/__init__.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/tools/abstract.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/tools/vast.py +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/SOURCES.txt +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/dependency_links.txt +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/requires.txt +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/top_level.txt +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/pyproject.toml +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/requirements.txt +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/setup.cfg +0 -0
- {malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.12
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/abstract/abstract.py
RENAMED
|
@@ -40,7 +40,7 @@ class StopOperationMany(BaseModel):
|
|
|
40
40
|
|
|
41
41
|
class DocWithName(BaseModel):
|
|
42
42
|
data: Alias.Json
|
|
43
|
-
name: Optional[str]
|
|
43
|
+
name: Optional[str] = None
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
class DocsCollection(BaseModel):
|
|
@@ -82,9 +82,9 @@ class SchemesIds(BaseModel):
|
|
|
82
82
|
|
|
83
83
|
class Shared(BaseModel):
|
|
84
84
|
userLogins: List[Alias.Login]
|
|
85
|
-
collectionsIds: Optional[List[Alias.Id]]
|
|
86
|
-
schemesIds: Optional[List[Alias.Id]]
|
|
87
|
-
userAppsIds: Optional[List[Alias.Id]]
|
|
85
|
+
collectionsIds: Optional[List[Alias.Id]] = None
|
|
86
|
+
schemesIds: Optional[List[Alias.Id]] = None
|
|
87
|
+
userAppsIds: Optional[List[Alias.Id]] = None
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
class SharedWithUsers(BaseModel):
|
|
@@ -111,7 +111,7 @@ class UserApp(BaseModel):
|
|
|
111
111
|
image: JsonImage
|
|
112
112
|
platform: str
|
|
113
113
|
platformSettings: Optional[str] = None
|
|
114
|
-
extraCollectionsFrom: Optional[Dict[str, Alias.Id]] = None
|
|
114
|
+
extraCollectionsFrom: Optional[Dict[str, List[Alias.Id]]] = None
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
class UserTask(BaseModel):
|
|
@@ -132,7 +132,7 @@ class KeysValues(Operation):
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
class ScaleInfo(BaseModel):
|
|
135
|
-
taskId: Optional[Alias.Id]
|
|
135
|
+
taskId: Optional[Alias.Id] = None
|
|
136
136
|
appId: Alias.Id
|
|
137
137
|
scale: int
|
|
138
138
|
|
|
@@ -175,7 +175,7 @@ class Restrictions(BaseModel):
|
|
|
175
175
|
|
|
176
176
|
class MainTask(BaseModel):
|
|
177
177
|
taskId: Alias.Id
|
|
178
|
-
cfgId: Optional[Alias.Id]
|
|
178
|
+
cfgId: Optional[Alias.Id] = None
|
|
179
179
|
infoUrl: Optional[str] = None
|
|
180
180
|
debugMode: bool = False
|
|
181
181
|
run: bool = True
|
|
@@ -207,7 +207,7 @@ class RunTask(Operation):
|
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
class AppManage(Operation):
|
|
210
|
-
taskId: Optional[Alias.Id]
|
|
210
|
+
taskId: Optional[Alias.Id] = None
|
|
211
211
|
appId: Alias.Id
|
|
212
212
|
runId: Alias.Id
|
|
213
213
|
|
|
@@ -322,12 +322,12 @@ class MainTaskCfg(BaseModel):
|
|
|
322
322
|
tasks: Dict[Alias.Id, UserTask]
|
|
323
323
|
cfg: str
|
|
324
324
|
schemesNames: List[str]
|
|
325
|
-
infoUrl: Optional[str]
|
|
325
|
+
infoUrl: Optional[str] = None
|
|
326
326
|
debugMode: bool
|
|
327
|
-
login: Optional[Alias.Login]
|
|
327
|
+
login: Optional[Alias.Login] = None
|
|
328
328
|
coreManage: bool
|
|
329
329
|
kafkaMode: bool
|
|
330
|
-
tlWithoutData: Optional[int]
|
|
330
|
+
tlWithoutData: Optional[int] = None
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
class KafkaMsg(BaseModel):
|
|
@@ -386,14 +386,14 @@ class FunctionInfo(BaseModel):
|
|
|
386
386
|
id: Alias.Id
|
|
387
387
|
name: str
|
|
388
388
|
arguments: List[Tuple[str, Optional[str]]]
|
|
389
|
-
finishMsg: Optional[str]
|
|
390
|
-
doc: Optional[str]
|
|
389
|
+
finishMsg: Optional[str] = None
|
|
390
|
+
doc: Optional[str] = None
|
|
391
391
|
|
|
392
392
|
|
|
393
393
|
class InputFunctionInfo(FunctionInfo):
|
|
394
|
-
collectionsNames: Optional[List[str]]
|
|
395
|
-
extraCollectionsNames: Optional[List[str]]
|
|
396
|
-
query: Optional[str]
|
|
394
|
+
collectionsNames: Optional[List[str]] = None
|
|
395
|
+
extraCollectionsNames: Optional[List[str]] = None
|
|
396
|
+
query: Optional[str] = None
|
|
397
397
|
mode: str
|
|
398
398
|
|
|
399
399
|
|
|
@@ -402,16 +402,16 @@ class ProcessorFunctionInfo(FunctionInfo):
|
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
class OutputFunctionInfo(FunctionInfo):
|
|
405
|
-
collectionOutNames: Optional[List[str]]
|
|
405
|
+
collectionOutNames: Optional[List[str]] = None
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
class InitInfo(BaseModel):
|
|
409
409
|
id: Alias.Id
|
|
410
410
|
enable: bool
|
|
411
|
-
tl: Optional[int]
|
|
411
|
+
tl: Optional[int] = None
|
|
412
412
|
prepare: bool
|
|
413
|
-
argname: Optional[str]
|
|
414
|
-
doc: Optional[str]
|
|
413
|
+
argname: Optional[str] = None
|
|
414
|
+
doc: Optional[str] = None
|
|
415
415
|
|
|
416
416
|
|
|
417
417
|
class AppFunctionsInfo(BaseModel):
|
|
@@ -484,7 +484,7 @@ class Endpoint(BaseModel):
|
|
|
484
484
|
|
|
485
485
|
class EndpointRunInfo(BaseModel):
|
|
486
486
|
active: bool
|
|
487
|
-
description: Optional[str]
|
|
487
|
+
description: Optional[str] = None
|
|
488
488
|
author: str
|
|
489
489
|
collections: Optional[Dict[str, str]] = None
|
|
490
490
|
|
|
@@ -548,26 +548,26 @@ class UserLimits(BaseModel):
|
|
|
548
548
|
|
|
549
549
|
|
|
550
550
|
class BasePlatformSettings(BaseModel):
|
|
551
|
-
memoryRequest: Optional[int]
|
|
552
|
-
memoryLimit: Optional[int]
|
|
553
|
-
cpuRequest: Optional[int]
|
|
554
|
-
cpuLimit: Optional[int]
|
|
555
|
-
storageRequest: Optional[int]
|
|
556
|
-
storageLimit: Optional[int]
|
|
551
|
+
memoryRequest: Optional[int] = None
|
|
552
|
+
memoryLimit: Optional[int] = None
|
|
553
|
+
cpuRequest: Optional[int] = None
|
|
554
|
+
cpuLimit: Optional[int] = None
|
|
555
|
+
storageRequest: Optional[int] = None
|
|
556
|
+
storageLimit: Optional[int] = None
|
|
557
557
|
|
|
558
558
|
|
|
559
559
|
class Limits(BasePlatformSettings):
|
|
560
|
-
gpuDisk: Optional[int]
|
|
560
|
+
gpuDisk: Optional[int] = None
|
|
561
561
|
|
|
562
562
|
|
|
563
563
|
class LimitsScope(BaseModel): # for superuser/admin
|
|
564
564
|
login: str
|
|
565
|
-
appMemoryRequest: Optional[int]
|
|
566
|
-
appMemoryLimit: Optional[int]
|
|
567
|
-
appCpuRequest: Optional[int]
|
|
568
|
-
appCpuLimit: Optional[int]
|
|
569
|
-
appStorageRequest: Optional[int]
|
|
570
|
-
appStorageLimit: Optional[int]
|
|
571
|
-
assetsLimit: Optional[int]
|
|
572
|
-
allowCommonGpu: Optional[bool]
|
|
573
|
-
gpuDiskMax: Optional[int]
|
|
565
|
+
appMemoryRequest: Optional[int] = None
|
|
566
|
+
appMemoryLimit: Optional[int] = None
|
|
567
|
+
appCpuRequest: Optional[int] = None
|
|
568
|
+
appCpuLimit: Optional[int] = None
|
|
569
|
+
appStorageRequest: Optional[int] = None
|
|
570
|
+
appStorageLimit: Optional[int] = None
|
|
571
|
+
assetsLimit: Optional[int] = None
|
|
572
|
+
allowCommonGpu: Optional[bool] = None
|
|
573
|
+
gpuDiskMax: Optional[int] = None
|
|
@@ -1563,7 +1563,7 @@ def create_app(
|
|
|
1563
1563
|
image_auth: Optional[AUTH] = None,
|
|
1564
1564
|
platform: str = "base",
|
|
1565
1565
|
platform_settings: Optional[str] = None,
|
|
1566
|
-
extra_collections_from: Optional[Dict[str, str]] = None,
|
|
1566
|
+
extra_collections_from: Optional[Dict[str, Union[List[str], str]]] = None,
|
|
1567
1567
|
wait: bool = True,
|
|
1568
1568
|
*,
|
|
1569
1569
|
use_system_auth: bool = True,
|
|
@@ -1586,6 +1586,10 @@ def create_app(
|
|
|
1586
1586
|
if Config.WITH_WARNINGS and (image_user is None or image_token is None):
|
|
1587
1587
|
Config.logger.warning("image_auth not set")
|
|
1588
1588
|
json_image = JsonImage(ref=image_ref, user=image_user, token=image_token)
|
|
1589
|
+
if extra_collections_from is not None:
|
|
1590
|
+
for k, v in extra_collections_from.items():
|
|
1591
|
+
if isinstance(v, str):
|
|
1592
|
+
extra_collections_from[k] = [v]
|
|
1589
1593
|
data = UserApp(
|
|
1590
1594
|
appId=app_id,
|
|
1591
1595
|
inputId=input_id,
|
|
@@ -1613,7 +1617,7 @@ def update_app(
|
|
|
1613
1617
|
image_auth: Optional[AUTH] = None,
|
|
1614
1618
|
platform: str = "base",
|
|
1615
1619
|
platform_settings: Optional[str] = None,
|
|
1616
|
-
extra_collections_from: Optional[Dict[str, str]] = None,
|
|
1620
|
+
extra_collections_from: Optional[Dict[str, Union[List[str], str]]] = None,
|
|
1617
1621
|
wait: bool = True,
|
|
1618
1622
|
*,
|
|
1619
1623
|
use_system_auth: bool = True,
|
|
@@ -1635,6 +1639,10 @@ def update_app(
|
|
|
1635
1639
|
if Config.WITH_WARNINGS and (image_user is None or image_token is None):
|
|
1636
1640
|
Config.logger.warning("image_auth not set")
|
|
1637
1641
|
json_image = JsonImage(ref=image_ref, user=image_user, token=image_token)
|
|
1642
|
+
if extra_collections_from is not None:
|
|
1643
|
+
for k, v in extra_collections_from.items():
|
|
1644
|
+
if isinstance(v, str):
|
|
1645
|
+
extra_collections_from[k] = [v]
|
|
1638
1646
|
data = UserApp(
|
|
1639
1647
|
appId=app_id,
|
|
1640
1648
|
inputId=input_id,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.3.10
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/abstract/__init__.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/abstract/statuses.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/admin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/batch/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/funcs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/__init__.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/config.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/const.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/helpers.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/secondary/kafka_utils.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/tools/__init__.py
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools/tools/abstract.py
RENAMED
|
File without changes
|
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/requires.txt
RENAMED
|
File without changes
|
{malevich-coretools-0.3.10 → malevich_coretools-0.3.12}/malevich_coretools.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|