mlrun 1.7.0rc25__py3-none-any.whl → 1.7.0rc26__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 mlrun might be problematic. Click here for more details.

@@ -55,8 +55,12 @@ class GoogleCloudStorageStore(DataStore):
55
55
  ) or self._get_secret_or_env("GOOGLE_APPLICATION_CREDENTIALS")
56
56
  if credentials:
57
57
  try:
58
- # Try to handle credentials as a json connection string
59
- token = json.loads(credentials)
58
+ # Try to handle credentials as a json connection string or do nothing if already a dict
59
+ token = (
60
+ credentials
61
+ if isinstance(credentials, dict)
62
+ else json.loads(credentials)
63
+ )
60
64
  except json.JSONDecodeError:
61
65
  # If it's not json, handle it as a filename
62
66
  token = credentials
mlrun/db/base.py CHANGED
@@ -138,6 +138,7 @@ class RunDBInterface(ABC):
138
138
  category: Union[str, mlrun.common.schemas.ArtifactCategories] = None,
139
139
  tree: str = None,
140
140
  format_: mlrun.common.formatters.ArtifactFormat = mlrun.common.formatters.ArtifactFormat.full,
141
+ limit: int = None,
141
142
  ):
142
143
  pass
143
144
 
mlrun/db/httpdb.py CHANGED
@@ -963,7 +963,7 @@ class HTTPRunDB(RunDBInterface):
963
963
 
964
964
  # we do this because previously the 'uid' name was used for the 'tree' parameter
965
965
  tree = tree or uid
966
-
966
+ project = project or mlrun.mlconf.default_project
967
967
  endpoint_path = f"projects/{project}/artifacts/{key}"
968
968
 
969
969
  error = f"store artifact {project}/{key}"
@@ -1002,7 +1002,7 @@ class HTTPRunDB(RunDBInterface):
1002
1002
  :param format_: The format in which to return the artifact. Default is 'full'.
1003
1003
  """
1004
1004
 
1005
- project = project or config.default_project
1005
+ project = project or mlrun.mlconf.default_project
1006
1006
  tag = tag or "latest"
1007
1007
  endpoint_path = f"projects/{project}/artifacts/{key}"
1008
1008
  error = f"read artifact {project}/{key}"
@@ -1039,7 +1039,7 @@ class HTTPRunDB(RunDBInterface):
1039
1039
  :param deletion_strategy: The artifact deletion strategy types.
1040
1040
  :param secrets: Credentials needed to access the artifact data.
1041
1041
  """
1042
-
1042
+ project = project or mlrun.mlconf.default_project
1043
1043
  endpoint_path = f"projects/{project}/artifacts/{key}"
1044
1044
  params = {
1045
1045
  "key": key,
@@ -1073,6 +1073,7 @@ class HTTPRunDB(RunDBInterface):
1073
1073
  tree: str = None,
1074
1074
  producer_uri: str = None,
1075
1075
  format_: mlrun.common.formatters.ArtifactFormat = mlrun.common.formatters.ArtifactFormat.full,
1076
+ limit: int = None,
1076
1077
  ) -> ArtifactList:
1077
1078
  """List artifacts filtered by various parameters.
1078
1079
 
@@ -1108,6 +1109,7 @@ class HTTPRunDB(RunDBInterface):
1108
1109
  points to a run and is used to filter artifacts by the run that produced them when the artifact producer id
1109
1110
  is a workflow id (artifact was created as part of a workflow).
1110
1111
  :param format_: The format in which to return the artifacts. Default is 'full'.
1112
+ :param limit: Maximum number of artifacts to return.
1111
1113
  """
1112
1114
 
1113
1115
  project = project or config.default_project
@@ -1127,6 +1129,7 @@ class HTTPRunDB(RunDBInterface):
1127
1129
  "tree": tree,
1128
1130
  "format": format_,
1129
1131
  "producer_uri": producer_uri,
1132
+ "limit": limit,
1130
1133
  }
1131
1134
  error = "list artifacts"
1132
1135
  endpoint_path = f"projects/{project}/artifacts"
mlrun/db/nopdb.py CHANGED
@@ -147,6 +147,7 @@ class NopDB(RunDBInterface):
147
147
  category: Union[str, mlrun.common.schemas.ArtifactCategories] = None,
148
148
  tree: str = None,
149
149
  format_: mlrun.common.formatters.ArtifactFormat = mlrun.common.formatters.ArtifactFormat.full,
150
+ limit: int = None,
150
151
  ):
151
152
  pass
152
153
 
mlrun/projects/project.py CHANGED
@@ -2337,7 +2337,8 @@ class MlrunProject(ModelObj):
2337
2337
  Default: job
2338
2338
  :param image: Docker image to be used, can also be specified in the function object/yaml
2339
2339
  :param handler: Default function handler to invoke (can only be set with .py/.ipynb files)
2340
- :param with_repo: Add (clone) the current repo to the build source
2340
+ :param with_repo: Add (clone) the current repo to the build source - use when the function code is in
2341
+ the project repo (project.spec.source).
2341
2342
  :param tag: Function version tag to set (none for current or 'latest')
2342
2343
  Specifying a tag as a parameter will update the project's tagged function
2343
2344
  (myfunc:v1) and the untagged function (myfunc)
@@ -3663,6 +3664,7 @@ class MlrunProject(ModelObj):
3663
3664
  kind: str = None,
3664
3665
  category: typing.Union[str, mlrun.common.schemas.ArtifactCategories] = None,
3665
3666
  tree: str = None,
3667
+ limit: int = None,
3666
3668
  ) -> mlrun.lists.ArtifactList:
3667
3669
  """List artifacts filtered by various parameters.
3668
3670
 
@@ -3692,6 +3694,7 @@ class MlrunProject(ModelObj):
3692
3694
  :param kind: Return artifacts of the requested kind.
3693
3695
  :param category: Return artifacts of the requested category.
3694
3696
  :param tree: Return artifacts of the requested tree.
3697
+ :param limit: Maximum number of artifacts to return.
3695
3698
  """
3696
3699
  db = mlrun.db.get_run_db(secrets=self._secrets)
3697
3700
  return db.list_artifacts(
@@ -3706,6 +3709,7 @@ class MlrunProject(ModelObj):
3706
3709
  kind=kind,
3707
3710
  category=category,
3708
3711
  tree=tree,
3712
+ limit=limit,
3709
3713
  )
3710
3714
 
3711
3715
  def list_models(
@@ -1,4 +1,4 @@
1
1
  {
2
- "git_commit": "a0adb214a48c9a8ba1e379d27e0f62bd20fd55a1",
3
- "version": "1.7.0-rc25"
2
+ "git_commit": "f9d693aaac742edd784874d3f949053e9a5881e4",
3
+ "version": "1.7.0-rc26"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mlrun
3
- Version: 1.7.0rc25
3
+ Version: 1.7.0rc26
4
4
  Summary: Tracking and config of machine learning runs
5
5
  Home-page: https://github.com/mlrun/mlrun
6
6
  Author: Yaron Haviv
@@ -50,8 +50,8 @@ Requires-Dist: setuptools ~=69.1
50
50
  Requires-Dist: deprecated ~=1.2
51
51
  Requires-Dist: jinja2 >=3.1.3,~=3.1
52
52
  Requires-Dist: orjson <4,>=3.9.15
53
- Requires-Dist: mlrun-pipelines-kfp-common >0.1.0,~=0.1.1
54
- Requires-Dist: mlrun-pipelines-kfp-v1-8 >0.1.0,~=0.1.1
53
+ Requires-Dist: mlrun-pipelines-kfp-common ~=0.1.2
54
+ Requires-Dist: mlrun-pipelines-kfp-v1-8 ~=0.1.2
55
55
  Provides-Extra: alibaba-oss
56
56
  Requires-Dist: ossfs ==2023.12.0 ; extra == 'alibaba-oss'
57
57
  Requires-Dist: oss2 ==2.18.1 ; extra == 'alibaba-oss'
@@ -84,7 +84,7 @@ mlrun/datastore/datastore.py,sha256=XCXJaHQAJRW-6EPjq-bHCPV5gA5BfHuNr6tUV_xn2Cc,
84
84
  mlrun/datastore/datastore_profile.py,sha256=9g467ic1vuTP_HY101mMXG_smnLxkjhuBp6dR4_LIkg,18937
85
85
  mlrun/datastore/dbfs_store.py,sha256=5IkxnFQXkW0fdx-ca5jjQnUdTsTfNdJzMvV31ZpDNrM,6634
86
86
  mlrun/datastore/filestore.py,sha256=nS3Ie6jG41NDiW_as9tF8Nu5maaSVEKYKUr1IQtPhuA,3767
87
- mlrun/datastore/google_cloud_storage.py,sha256=Du5qYYUCSkLt9acQDeQ-PgEjttsE7D2eAoLebO43kiw,6110
87
+ mlrun/datastore/google_cloud_storage.py,sha256=ctcfnZ41-uyNd3qjPe-VO9DAtfikhpNPPb8L9coKcr0,6272
88
88
  mlrun/datastore/hdfs.py,sha256=TfL1zUWVRxEHF9kswZtOzrMdDmhSfiSVIAjz7fxWyVw,1876
89
89
  mlrun/datastore/inmem.py,sha256=PQAbNbjQvDhtCQrvPTCuUWRwGVe4a7nB5E84l8C20pQ,2802
90
90
  mlrun/datastore/redis.py,sha256=OKMkDCU3APhxfo65SyJq605u1DsfOYH0fODnCXZRqEU,5575
@@ -101,10 +101,10 @@ mlrun/datastore/wasbfs/__init__.py,sha256=s5Ul-0kAhYqFjKDR2X0O2vDGDbLQQduElb32Ev
101
101
  mlrun/datastore/wasbfs/fs.py,sha256=MnSj7Q4OKA2L55ihCmUnj2t3GA3B77oLMdAw-yxvN9w,6151
102
102
  mlrun/db/__init__.py,sha256=WqJ4x8lqJ7ZoKbhEyFqkYADd9P6E3citckx9e9ZLcIU,1163
103
103
  mlrun/db/auth_utils.py,sha256=hpg8D2r82oN0BWabuWN04BTNZ7jYMAF242YSUpK7LFM,5211
104
- mlrun/db/base.py,sha256=N3y6YzTuEohZufQidU4Yfe2fn4SSsQ6WQHM5-KP6p9I,23751
104
+ mlrun/db/base.py,sha256=onmHoJkjf_F0UrsFrkmU1MhB30alonnr4GeWXQ-ngr0,23778
105
105
  mlrun/db/factory.py,sha256=ibIrE5QkIIyzDU1FXKrfbc31cZiRLYKDZb8dqCpQwyU,2397
106
- mlrun/db/httpdb.py,sha256=Ei49Xta7JRYnsAbZ3zIU0nfq9YVj-ceLHwegK_aLGuo,182913
107
- mlrun/db/nopdb.py,sha256=UwFtaqKDRdYojpUVSzHf0UMyBCJ4YIxdlV9QTOz_FUI,20498
106
+ mlrun/db/httpdb.py,sha256=lClPOmGLz9nzaROeboxSm0eFcpnuEG1PIRFlIW7aIDA,183159
107
+ mlrun/db/nopdb.py,sha256=usWWKZp2Sh_3HHkGN63I9sM7Y9Bb3xIgZ1IICNE_hE0,20525
108
108
  mlrun/feature_store/__init__.py,sha256=FhHRc8NdqL_HWpCs7A8dKruxJS5wEm55Gs3dcgBiRUg,1522
109
109
  mlrun/feature_store/api.py,sha256=uYheyPkJOVCrz1jivvpGatgy_JBAq0It0XZqPpNVQkE,48699
110
110
  mlrun/feature_store/common.py,sha256=DKmoRk04NCS1gv7qZuEUa2-g8WsfR6IWjYctcrqKVlg,12853
@@ -276,7 +276,7 @@ mlrun/platforms/iguazio.py,sha256=1h5BpdAEQJBg2vIt7ySjUADU0ip5OkaMYr0_VREi9ys,13
276
276
  mlrun/projects/__init__.py,sha256=Lv5rfxyXJrw6WGOWJKhBz66M6t3_zsNMCfUD6waPwx4,1153
277
277
  mlrun/projects/operations.py,sha256=NEN4PmSvLO9QMwSG4TncmBgTKC9wJp7hGo5lA7OYN_Q,19199
278
278
  mlrun/projects/pipelines.py,sha256=Xc9tQSBBPEg1Yxn-b4RseFdfO7SvrYC-ekdw_hAcPH8,40006
279
- mlrun/projects/project.py,sha256=QG0jCz6ZIWTHTWAJWlP7fM_BjJmTLLvihgBzkPPa_P0,182082
279
+ mlrun/projects/project.py,sha256=RbTI7YUc3FUmOgsbgvrb_WRpSzFV0F4hL5Y4V1km84c,182306
280
280
  mlrun/runtimes/__init__.py,sha256=0-tYDkew-Cr4DM-wztvMbzDA5xq385Jjo-GrtO_84Sc,8741
281
281
  mlrun/runtimes/base.py,sha256=yw5SceU2Js1AOr4f0ByZ3l1VsZUAnKKeC41DRTmNi68,37633
282
282
  mlrun/runtimes/daskjob.py,sha256=_3jQIEroNxG587ZJ0cW5nVJVBb1IcOECor_bkgZHtMk,19194
@@ -344,11 +344,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=ZtVL30B_Ha0VGoo4LxO-voT
344
344
  mlrun/utils/notifications/notification/slack.py,sha256=EXhIDyhFkwCSzq8trX3TqGHh5ppFKzMxItxM0s0-ukM,6728
345
345
  mlrun/utils/notifications/notification/webhook.py,sha256=WgfxX1cpm8n2A-O08pwnsP4tzbxxv_vNUSnyXG4uKts,2752
346
346
  mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
347
- mlrun/utils/version/version.json,sha256=8ClI6i_4ST4Ev0HbJS7s14XSY9TLmGymVG1d_AIzQJQ,89
347
+ mlrun/utils/version/version.json,sha256=ocVP16iqoQ2XPtQjK6WdVszGB8_5cAuccktEmVW1QHs,89
348
348
  mlrun/utils/version/version.py,sha256=eEW0tqIAkU9Xifxv8Z9_qsYnNhn3YH7NRAfM-pPLt1g,1878
349
- mlrun-1.7.0rc25.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
350
- mlrun-1.7.0rc25.dist-info/METADATA,sha256=kqDt9YgQWFkfTvBOHEveq_nSYnbrd0u7UZ83Dht_vfs,19237
351
- mlrun-1.7.0rc25.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
352
- mlrun-1.7.0rc25.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
353
- mlrun-1.7.0rc25.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
354
- mlrun-1.7.0rc25.dist-info/RECORD,,
349
+ mlrun-1.7.0rc26.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
350
+ mlrun-1.7.0rc26.dist-info/METADATA,sha256=h4uXn912_-AohFXUCuvt9Vdf2E0xAVuO983wiGu-vqQ,19223
351
+ mlrun-1.7.0rc26.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
352
+ mlrun-1.7.0rc26.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
353
+ mlrun-1.7.0rc26.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
354
+ mlrun-1.7.0rc26.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.0)
2
+ Generator: setuptools (70.1.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5