mlrun 1.6.2rc3__py3-none-any.whl → 1.6.2rc5__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.
- mlrun/config.py +1 -1
- mlrun/datastore/base.py +22 -16
- mlrun/utils/version/version.json +2 -2
- {mlrun-1.6.2rc3.dist-info → mlrun-1.6.2rc5.dist-info}/METADATA +1 -1
- {mlrun-1.6.2rc3.dist-info → mlrun-1.6.2rc5.dist-info}/RECORD +9 -9
- {mlrun-1.6.2rc3.dist-info → mlrun-1.6.2rc5.dist-info}/WHEEL +1 -1
- {mlrun-1.6.2rc3.dist-info → mlrun-1.6.2rc5.dist-info}/LICENSE +0 -0
- {mlrun-1.6.2rc3.dist-info → mlrun-1.6.2rc5.dist-info}/entry_points.txt +0 -0
- {mlrun-1.6.2rc3.dist-info → mlrun-1.6.2rc5.dist-info}/top_level.txt +0 -0
mlrun/config.py
CHANGED
|
@@ -444,7 +444,7 @@ default_config = {
|
|
|
444
444
|
# pip install <requirement_specifier>, e.g. mlrun==0.5.4, mlrun~=0.5,
|
|
445
445
|
# git+https://github.com/mlrun/mlrun@development. by default uses the version
|
|
446
446
|
"mlrun_version_specifier": "",
|
|
447
|
-
"kaniko_image": "gcr.io/kaniko-project/executor:v1.
|
|
447
|
+
"kaniko_image": "gcr.io/kaniko-project/executor:v1.21.1", # kaniko builder image
|
|
448
448
|
"kaniko_init_container_image": "alpine:3.18",
|
|
449
449
|
# image for kaniko init container when docker registry is ECR
|
|
450
450
|
"kaniko_aws_cli_image": "amazon/aws-cli:2.7.10",
|
mlrun/datastore/base.py
CHANGED
|
@@ -27,6 +27,7 @@ import requests
|
|
|
27
27
|
import urllib3
|
|
28
28
|
from deprecated import deprecated
|
|
29
29
|
|
|
30
|
+
import mlrun.config
|
|
30
31
|
import mlrun.errors
|
|
31
32
|
from mlrun.errors import err_to_str
|
|
32
33
|
from mlrun.utils import StorePrefix, is_ipython, logger
|
|
@@ -34,10 +35,6 @@ from mlrun.utils import StorePrefix, is_ipython, logger
|
|
|
34
35
|
from .store_resources import is_store_uri, parse_store_uri
|
|
35
36
|
from .utils import filter_df_start_end_time, select_columns_from_df
|
|
36
37
|
|
|
37
|
-
verify_ssl = False
|
|
38
|
-
if not verify_ssl:
|
|
39
|
-
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
40
|
-
|
|
41
38
|
|
|
42
39
|
class FileStats:
|
|
43
40
|
def __init__(self, size, modified, content_type=None):
|
|
@@ -643,17 +640,6 @@ def basic_auth_header(user, password):
|
|
|
643
640
|
return {"Authorization": authstr}
|
|
644
641
|
|
|
645
642
|
|
|
646
|
-
def http_get(url, headers=None, auth=None):
|
|
647
|
-
try:
|
|
648
|
-
response = requests.get(url, headers=headers, auth=auth, verify=verify_ssl)
|
|
649
|
-
except OSError as exc:
|
|
650
|
-
raise OSError(f"error: cannot connect to {url}: {err_to_str(exc)}")
|
|
651
|
-
|
|
652
|
-
mlrun.errors.raise_for_status(response)
|
|
653
|
-
|
|
654
|
-
return response.content
|
|
655
|
-
|
|
656
|
-
|
|
657
643
|
class HttpStore(DataStore):
|
|
658
644
|
def __init__(self, parent, schema, name, endpoint="", secrets: dict = None):
|
|
659
645
|
super().__init__(parent, name, schema, endpoint, secrets)
|
|
@@ -681,7 +667,7 @@ class HttpStore(DataStore):
|
|
|
681
667
|
raise ValueError("unimplemented")
|
|
682
668
|
|
|
683
669
|
def get(self, key, size=None, offset=0):
|
|
684
|
-
data =
|
|
670
|
+
data = self._http_get(self.url + self._join(key), self._headers, self.auth)
|
|
685
671
|
if offset:
|
|
686
672
|
data = data[offset:]
|
|
687
673
|
if size:
|
|
@@ -701,6 +687,26 @@ class HttpStore(DataStore):
|
|
|
701
687
|
f"schema as it is not secure and is not recommended."
|
|
702
688
|
)
|
|
703
689
|
|
|
690
|
+
def _http_get(
|
|
691
|
+
self,
|
|
692
|
+
url,
|
|
693
|
+
headers=None,
|
|
694
|
+
auth=None,
|
|
695
|
+
):
|
|
696
|
+
# import here to prevent import cycle
|
|
697
|
+
from mlrun.config import config as mlconf
|
|
698
|
+
|
|
699
|
+
verify_ssl = mlconf.httpdb.http.verify
|
|
700
|
+
try:
|
|
701
|
+
if not verify_ssl:
|
|
702
|
+
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
703
|
+
response = requests.get(url, headers=headers, auth=auth, verify=verify_ssl)
|
|
704
|
+
except OSError as exc:
|
|
705
|
+
raise OSError(f"error: cannot connect to {url}: {err_to_str(exc)}")
|
|
706
|
+
|
|
707
|
+
mlrun.errors.raise_for_status(response)
|
|
708
|
+
return response.content
|
|
709
|
+
|
|
704
710
|
|
|
705
711
|
# This wrapper class is designed to extract the 'ds' schema and profile name from URL-formatted paths.
|
|
706
712
|
# Within fsspec, the AbstractFileSystem::_strip_protocol() internal method is used to handle complete URL paths.
|
mlrun/utils/version/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
mlrun/__init__.py,sha256=o9dHUfVFADfsi6GnOPLr2OkfkHdPvOnA7rkoECen0-I,7248
|
|
2
2
|
mlrun/__main__.py,sha256=zd-o0SkFH69HhIWKhqXnNURsrtpIcOJYYq50JfAxW7k,49234
|
|
3
|
-
mlrun/config.py,sha256=
|
|
3
|
+
mlrun/config.py,sha256=h-ibiSUHu3RoJlYR84uzBQ4XaBP1gqbh5V9wLfztnkY,62699
|
|
4
4
|
mlrun/errors.py,sha256=YdUtkN3qJ6yrseNygmKxmSWOfQ_RdKBhRxwwyMlTQCM,7106
|
|
5
5
|
mlrun/execution.py,sha256=tgp6PcujZvGhDDVzPNs32YH_JNzaxfSd25yeuLwmjzg,40880
|
|
6
6
|
mlrun/features.py,sha256=UQQ2uh5Xh9XsMGiYBqh3bKgDhOHANjv1gQgWyId9qQE,15624
|
|
@@ -66,7 +66,7 @@ mlrun/data_types/spark.py,sha256=qKQ2TIAPQWDgmIOmpyV5_uuyUX3AnXWSq6GPpVjVIek,945
|
|
|
66
66
|
mlrun/data_types/to_pandas.py,sha256=uq7y1svEzaDaPg92YP3p3k3BDI48XWZ2bDdH6aJSvso,9991
|
|
67
67
|
mlrun/datastore/__init__.py,sha256=bsRzu39UOocQAAl_nOKCbhxrZhWUEXrAc8WV3zs0VyI,4118
|
|
68
68
|
mlrun/datastore/azure_blob.py,sha256=pnl7XITAxz7MMp7owgKWIM0nTMUlMCMvlqZW2fpKkus,8734
|
|
69
|
-
mlrun/datastore/base.py,sha256=
|
|
69
|
+
mlrun/datastore/base.py,sha256=ldisbMJ-Cy6EbayrXwcakRjx1ETpA4TIYlLTFx59arI,24996
|
|
70
70
|
mlrun/datastore/datastore.py,sha256=xnK-zKrDwTkiZQgzLpcz8d629avpjYtU9UN3WZpdjww,8810
|
|
71
71
|
mlrun/datastore/datastore_profile.py,sha256=vBpkAcnGiYUO09ihg_jPgPdpo2GVBrOOSHYWWttqBag,14899
|
|
72
72
|
mlrun/datastore/dbfs_store.py,sha256=5IkxnFQXkW0fdx-ca5jjQnUdTsTfNdJzMvV31ZpDNrM,6634
|
|
@@ -304,11 +304,11 @@ mlrun/utils/notifications/notification/ipython.py,sha256=qrBmtECiRG6sZpCIVMg7RZc
|
|
|
304
304
|
mlrun/utils/notifications/notification/slack.py,sha256=5JysqIpUYUZKXPSeeZtbl7qb2L9dj7p2NvnEBcEsZkA,3898
|
|
305
305
|
mlrun/utils/notifications/notification/webhook.py,sha256=QHezCuN5uXkLcroAGxGrhGHaxAdUvkDLIsp27_Yrfd4,2390
|
|
306
306
|
mlrun/utils/version/__init__.py,sha256=7kkrB7hEZ3cLXoWj1kPoDwo4MaswsI2JVOBpbKgPAgc,614
|
|
307
|
-
mlrun/utils/version/version.json,sha256=
|
|
307
|
+
mlrun/utils/version/version.json,sha256=YIkVDLi1JX_TONuWPjSwtFW540w1375CUcgwIAjAQg8,88
|
|
308
308
|
mlrun/utils/version/version.py,sha256=HMwseV8xjTQ__6T6yUWojx_z6yUj7Io7O4NcCCH_sz8,1970
|
|
309
|
-
mlrun-1.6.
|
|
310
|
-
mlrun-1.6.
|
|
311
|
-
mlrun-1.6.
|
|
312
|
-
mlrun-1.6.
|
|
313
|
-
mlrun-1.6.
|
|
314
|
-
mlrun-1.6.
|
|
309
|
+
mlrun-1.6.2rc5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
310
|
+
mlrun-1.6.2rc5.dist-info/METADATA,sha256=HWiySCk5hexzTIkyKNMeoBE9OZMp00kj0f9BlmCO7IM,18291
|
|
311
|
+
mlrun-1.6.2rc5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
312
|
+
mlrun-1.6.2rc5.dist-info/entry_points.txt,sha256=1Owd16eAclD5pfRCoJpYC2ZJSyGNTtUr0nCELMioMmU,46
|
|
313
|
+
mlrun-1.6.2rc5.dist-info/top_level.txt,sha256=NObLzw3maSF9wVrgSeYBv-fgnHkAJ1kEkh12DLdd5KM,6
|
|
314
|
+
mlrun-1.6.2rc5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|