malevich-coretools 0.2.5__py3-none-any.whl → 0.2.6__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.

@@ -797,6 +797,7 @@ def create_app(
797
797
  extra_collections_from: Optional[Dict[str, str]] = None,
798
798
  wait: bool = True,
799
799
  *,
800
+ use_system_auth: bool = True,
800
801
  auth: Optional[AUTH] = None,
801
802
  conn_url: Optional[str] = None,
802
803
  ) -> Alias.Id:
@@ -808,8 +809,8 @@ def create_app(
808
809
  platform in POSSIBLE_APPS_PLATFORMS
809
810
  ), f"wrong platform: {platform}, possible platforms: {POSSIBLE_APPS_PLATFORMS}"
810
811
  app_cfg_json = None if app_cfg is None else to_json(app_cfg)
811
- image_user = image_auth[0] if image_auth is not None else Config.USERNAME
812
- image_token = image_auth[1] if image_auth is not None else Config.TOKEN
812
+ image_user = image_auth[0] if image_auth is not None else Config.USERNAME if use_system_auth else None
813
+ image_token = image_auth[1] if image_auth is not None else Config.TOKEN if use_system_auth else None
813
814
  if Config.WITH_WARNINGS and (image_user is None or image_token is None):
814
815
  Config.logger.warning("image_auth not set")
815
816
  if image_ref is None:
@@ -847,6 +848,7 @@ def update_app(
847
848
  extra_collections_from: Optional[Dict[str, str]] = None,
848
849
  wait: bool = True,
849
850
  *,
851
+ use_system_auth: bool = True,
850
852
  auth: Optional[AUTH] = None,
851
853
  conn_url: Optional[str] = None,
852
854
  ) -> Alias.Info:
@@ -857,8 +859,8 @@ def update_app(
857
859
  platform in POSSIBLE_APPS_PLATFORMS
858
860
  ), f"wrong platform: {platform}, possible platforms: {POSSIBLE_APPS_PLATFORMS}"
859
861
  app_cfg_json = None if app_cfg is None else to_json(app_cfg)
860
- image_user = image_auth[0] if image_auth is not None else Config.USERNAME
861
- image_token = image_auth[1] if image_auth is not None else Config.TOKEN
862
+ image_user = image_auth[0] if image_auth is not None else Config.USERNAME if use_system_auth else None
863
+ image_token = image_auth[1] if image_auth is not None else Config.TOKEN if use_system_auth else None
862
864
  if Config.WITH_WARNINGS and (image_user is None or image_token is None):
863
865
  Config.logger.warning("image_auth not set")
864
866
  if image_ref is None:
@@ -1274,12 +1276,13 @@ def get_image_info(
1274
1276
  image_auth: Optional[AUTH] = None,
1275
1277
  parse: bool = False,
1276
1278
  *,
1279
+ use_system_auth: bool = False,
1277
1280
  auth: Optional[AUTH] = None,
1278
1281
  conn_url: Optional[str] = None,
1279
1282
  ) -> Union[Alias.Json, AppFunctionsInfo]:
1280
1283
  """return json with functions image info"""
1281
- image_user = image_auth[0] if image_auth is not None else Config.USERNAME
1282
- image_token = image_auth[1] if image_auth is not None else Config.TOKEN
1284
+ image_user = image_auth[0] if image_auth is not None else Config.USERNAME if use_system_auth else None
1285
+ image_token = image_auth[1] if image_auth is not None else Config.TOKEN if use_system_auth else None
1283
1286
  if Config.WITH_WARNINGS and (image_user is None or image_token is None):
1284
1287
  Config.logger.warning("image_auth not set")
1285
1288
  json_image = JsonImage(ref=image_ref, user=image_user, token=image_token)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: malevich-coretools
3
- Version: 0.2.5
3
+ Version: 0.2.6
4
4
  Author: Andrew Pogrebnoj
5
5
  Author-email: andrew@onjulius.co
6
6
  License-File: LICENSE
@@ -1,5 +1,5 @@
1
1
  malevich_coretools/__init__.py,sha256=88IRvwNti4YOMJc6RaVRutwurJzP23g30D-rgo04Fgc,82
2
- malevich_coretools/utils.py,sha256=aJ3e65LQuAa7VYz_J2YNOTMM3rBhlO2MvHNkkCoQY-Y,57661
2
+ malevich_coretools/utils.py,sha256=MTtfRbGHfNcNPOcF1Y55VMtiWsti1ZsMNUGs33b-VV4,57938
3
3
  malevich_coretools/abstract/__init__.py,sha256=ZWtP4gFLpNVFXzlMKXEK4iMnUqqMg07pL8yKGSJd6QI,38
4
4
  malevich_coretools/abstract/abstract.py,sha256=xqZwJ3CjC9IXNcXTrSSNj8J5JJ68IAtnfLcChZLZq8U,8760
5
5
  malevich_coretools/admin/__init__.py,sha256=zdIcHs3T_NZ8HYWts-O7OpBEWHIu779QDZMGF5HRCLg,35
@@ -13,8 +13,8 @@ malevich_coretools/secondary/const.py,sha256=b-0WYo13MtoQSzacKWiIJKF6rukBo-5Uylr
13
13
  malevich_coretools/secondary/helpers.py,sha256=yQiaG_Q_5sw04RFpZccoSryPBuoA25BpSmvzSyQtwK0,2937
14
14
  malevich_coretools/tools/__init__.py,sha256=jDxlCa5Dr6Y43qlI7JwsRAlBkKmFeTHTEnjNUvu-0iw,46
15
15
  malevich_coretools/tools/vast.py,sha256=u1cnfylSgq3nYfonXbTy1zwor3OPkhD3vRf2OnqlMZY,12504
16
- malevich_coretools-0.2.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
- malevich_coretools-0.2.5.dist-info/METADATA,sha256=JSZ9jMNxz1Gqp1zY-RY9OkrezmdO8a0hl_0pmc94umU,236
18
- malevich_coretools-0.2.5.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
19
- malevich_coretools-0.2.5.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
20
- malevich_coretools-0.2.5.dist-info/RECORD,,
16
+ malevich_coretools-0.2.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
17
+ malevich_coretools-0.2.6.dist-info/METADATA,sha256=tR9pQOmmVBK_A_IWoMa2j0XQ6h0UhQk5dKVwyWlSdWA,236
18
+ malevich_coretools-0.2.6.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
19
+ malevich_coretools-0.2.6.dist-info/top_level.txt,sha256=wDX3s1Tso0otBPNrFRfXqyNpm48W4Bp5v6JfbITO2Z8,19
20
+ malevich_coretools-0.2.6.dist-info/RECORD,,