bluer-objects 6.170.1__py3-none-any.whl → 6.173.1__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 bluer-objects might be problematic. Click here for more details.

@@ -2,15 +2,28 @@
2
2
 
3
3
  function bluer_objects_mlflow_deploy() {
4
4
  local options=$1
5
- local do_dryrun=$(bluer_ai_option_int "$options" dryrun 0)
6
- local do_local=$(bluer_ai_option_int "$options" local 1)
7
- local port=$(bluer_ai_option "$options" port 5001)
5
+ local do_set=$(bluer_ai_option_int "$options" set 0)
6
+
7
+ if [[ "$do_set" == 1 ]]; then
8
+ local url=$2
9
+ if [[ -z "$url" ]]; then
10
+ bluer_ai_log_error "url not found."
11
+ return 1
12
+ fi
13
+
14
+ pushd $abcli_path_git/bluer-objects >/dev/null
15
+ dotenv set \
16
+ MLFLOW_DEPLOYMENT \
17
+ $url
18
+ popd >/dev/null
8
19
 
9
- if [[ "$do_local" == 0 ]]; then
10
- bluer_ai_log_error "only local deployment is supported."
11
- return 1
20
+ bluer_objects init
21
+ return
12
22
  fi
13
23
 
24
+ local do_dryrun=$(bluer_ai_option_int "$options" dryrun 0)
25
+ local port=$(bluer_ai_option "$options" port 5001)
26
+
14
27
  [[ "$MLFLOW_DEPLOYMENT" != "local" ]] &&
15
28
  bluer_ai_log_warning "MLFLOW_DEPLOYMENT is not local".
16
29
 
@@ -49,6 +49,7 @@ function test_bluer_objects_help() {
49
49
  "@mlflow browse" \
50
50
  "@mlflow cache" \
51
51
  "@mlflow deploy" \
52
+ "@mlflow deploy set" \
52
53
  "@mlflow get_id" \
53
54
  "@mlflow get_run_id" \
54
55
  "@mlflow list_registered_models" \
bluer_objects/__init__.py CHANGED
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} Object management in Bash."
6
6
 
7
- VERSION = "6.170.1"
7
+ VERSION = "6.173.1"
8
8
 
9
9
  REPO_NAME = "bluer-objects"
10
10
 
@@ -30,7 +30,7 @@ def help_deploy(
30
30
  tokens: List[str],
31
31
  mono: bool,
32
32
  ) -> str:
33
- options = xtra("dryrun,~local,port=<5001>", mono=mono)
33
+ options = xtra("dryrun,port=<5001>", mono=mono)
34
34
 
35
35
  return show_usage(
36
36
  [
@@ -43,6 +43,22 @@ def help_deploy(
43
43
  )
44
44
 
45
45
 
46
+ def help_deploy_set(
47
+ tokens: List[str],
48
+ mono: bool,
49
+ ) -> str:
50
+ return show_usage(
51
+ [
52
+ "@mlflow",
53
+ "deploy",
54
+ "set",
55
+ "<url> | local",
56
+ ],
57
+ "set mlflow deployment.",
58
+ mono=mono,
59
+ )
60
+
61
+
46
62
  def help_get_id(
47
63
  tokens: List[str],
48
64
  mono: bool,
@@ -199,7 +215,10 @@ def help_transition(
199
215
  help_functions = {
200
216
  "browse": help_browse,
201
217
  "cache": help_cache,
202
- "deploy": help_deploy,
218
+ "deploy": {
219
+ "": help_deploy,
220
+ "set": help_deploy_set,
221
+ },
203
222
  "get_id": help_get_id,
204
223
  "get_run_id": help_get_run_id,
205
224
  "list_registered_models": help_list_registered_models,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bluer_objects
3
- Version: 6.170.1
3
+ Version: 6.173.1
4
4
  Summary: 🌀 Object management in Bash.
5
5
  Home-page: https://github.com/kamangir/bluer-objects
6
6
  Author: Arash Abadpour (Kamangir)
@@ -64,6 +64,6 @@ pip install bluer-objects
64
64
 
65
65
  [![pylint](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/bluer-objects.svg)](https://pypi.org/project/bluer-objects/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/bluer-objects)](https://pypistats.org/packages/bluer-objects)
66
66
 
67
- built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.170.1`](https://github.com/kamangir/bluer-objects).
67
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.173.1`](https://github.com/kamangir/bluer-objects).
68
68
 
69
69
  built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
@@ -1,4 +1,4 @@
1
- bluer_objects/__init__.py,sha256=Up7uiCfpaTfzOTrjFhSTVfEQQ9DtDCzeqOFsRvZ45Gw,315
1
+ bluer_objects/__init__.py,sha256=FuQqMlclJN9Q7bmq3oPirgnoHA5U7TYxDe_Ojz4-SM4,315
2
2
  bluer_objects/__main__.py,sha256=Yqfov833_hJuRne19WrGhT5DWAPtdffpoMxeSXS7EGw,359
3
3
  bluer_objects/config.env,sha256=cpmtTuKHIBvVjX30MpAImFgwM0g24qTHwoO-lCJRInA,175
4
4
  bluer_objects/env.py,sha256=aImjtNh8NKaua2rpQVFXWp86QF7nY87fDuMOO14O58E,1956
@@ -29,7 +29,7 @@ bluer_objects/.abcli/metadata/get.sh,sha256=6W9x0akZwwozTyOlKCW_0MndYVUAL4v1HSUP
29
29
  bluer_objects/.abcli/metadata/post.sh,sha256=UdvZNuRu6_NcyRVvDMFZ9GEwOm3K8rsNqM0FFr9LskA,570
30
30
  bluer_objects/.abcli/mlflow/browse.sh,sha256=jPHAKLgG7yDLCdSAW5acVmCOcOltAkZQ8FrttrX401s,1166
31
31
  bluer_objects/.abcli/mlflow/cache.sh,sha256=tpdCqL3jMFpfRmYS6UTgLiycv43_z_N_J1ux2XsDgdA,556
32
- bluer_objects/.abcli/mlflow/deploy.sh,sha256=oTdFUDOAtDhREstbQCOZkgwJgdua9Tp8w9aYSV-C4yc,772
32
+ bluer_objects/.abcli/mlflow/deploy.sh,sha256=O8JuyIE2NgA8YVZnAX1y9WPkz9gQcZHC2SvU-UckDRo,1012
33
33
  bluer_objects/.abcli/mlflow/list_registered_models.sh,sha256=cZGtAzfLx-kW3-zi0mLrfhzk4B8KyUL2sq2tD7lK5q8,191
34
34
  bluer_objects/.abcli/mlflow/lock.sh,sha256=MXq8srb4qAq5gZb0QC4Nkf6x7mME9L0cf46nGkTkbYY,340
35
35
  bluer_objects/.abcli/mlflow/log_artifacts.sh,sha256=3sCdDHoRVFqCg_DPF8zw3HSAj8Grr-Mbwmf0iUlDmrk,243
@@ -54,7 +54,7 @@ bluer_objects/.abcli/tests/README.sh,sha256=gk2KuNLFTuV3qdVgH8BNfJmur3gZoSV8EwLb
54
54
  bluer_objects/.abcli/tests/clone.sh,sha256=Rl9pHvmRJ4H-y-iMA80q11UdSZFrguNaMTez0LTtJjA,473
55
55
  bluer_objects/.abcli/tests/create_test_asset.sh,sha256=onRGc3VjDWA7On3isxKD3J7mxA6n349AVXRj90Z3Jzc,386
56
56
  bluer_objects/.abcli/tests/gif.sh,sha256=2FvcomiyYTzJa527a7Wk2EJt5N9_vZt8tmQD1QVetDg,461
57
- bluer_objects/.abcli/tests/help.sh,sha256=g3sBEvdkvUWPuxPF_yFdkxiuCAssJ1_8lc7dvOC_q5E,1859
57
+ bluer_objects/.abcli/tests/help.sh,sha256=ViyFns-27DKGh7dOSSvOHTlbE4qLw9YzhCxmVe87vJo,1890
58
58
  bluer_objects/.abcli/tests/host.sh,sha256=GBuTLNw1sU3fAb5jS-ew_qAfovVCQ5CLaz5ad04IkoA,144
59
59
  bluer_objects/.abcli/tests/ls.sh,sha256=oOvcnEQZgnNlwCK4SvkdAjCBs2_z0qBOhgFLsXDBSXM,555
60
60
  bluer_objects/.abcli/tests/metadata.sh,sha256=OP1c0h0TSlDycrv0UglKLyBtTQwqh9M0nqVAdQUzkno,1723
@@ -92,7 +92,7 @@ bluer_objects/help/host.py,sha256=4t4yrPGjTbnFtODcuBjfIzpA5pmmvc5s4QrjIqPPVsM,98
92
92
  bluer_objects/help/ls.py,sha256=acvRLDxjJOzQ1a9ZQ4Mn9aBZ8Vf17IDHcAxC2O3R33Y,627
93
93
  bluer_objects/help/metadata.py,sha256=fk22NasBcZU1ffY4fu6AxrCzMQtTI28p_ghaSVRrrPM,2811
94
94
  bluer_objects/help/upload.py,sha256=p-nRw9d_S6PI7PcD0mBwWqQRPWQG4r3usjvOIzAbTeM,368
95
- bluer_objects/help/mlflow/__init__.py,sha256=xox0NM53OIRxpvWzDJh8DYspwIX_teNsQlEeGZdWgWk,4113
95
+ bluer_objects/help/mlflow/__init__.py,sha256=fvnGg8l24oGWKd7lbVm32GHyrE3eBlholj4RFrjFNuw,4427
96
96
  bluer_objects/help/mlflow/cache.py,sha256=O8O1oaiq1e1z2HCi8fRe4hjSNimzvCaCAIu-u2GDHkE,704
97
97
  bluer_objects/help/mlflow/lock.py,sha256=REdB4LmlHu2_6SF1nDA50KBbYtNIKRDbYH7KduUnuEg,848
98
98
  bluer_objects/help/mlflow/tags.py,sha256=C3FcMRe-JhelhCQkAyZ5jlxGtgYxhNjtIhxka8k_ytI,2137
@@ -156,8 +156,8 @@ bluer_objects/tests/test_storage_webdav_request.py,sha256=h2b8PeIx0-hQ2d6PmQcJZy
156
156
  bluer_objects/tests/test_storage_webdav_zip.py,sha256=C19qxhkcHyTwVFzW35vL85SOcXJPkqXXaWUNll0Uyqc,1017
157
157
  bluer_objects/tests/test_testing.py,sha256=d2NH435yqJBl9wmfMqGGd-f0Y0jsL2QhHUXkty9AwPA,235
158
158
  bluer_objects/tests/test_version.py,sha256=Lyf3PMcA22e17BNRk_2VgPrtao6dWEgVoXo68Uds8SE,75
159
- bluer_objects-6.170.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
160
- bluer_objects-6.170.1.dist-info/METADATA,sha256=ELD0riVQPhS4tFIUH_2uAloiFQl-_KJuL7nc5xozizw,3678
161
- bluer_objects-6.170.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- bluer_objects-6.170.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
163
- bluer_objects-6.170.1.dist-info/RECORD,,
159
+ bluer_objects-6.173.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
160
+ bluer_objects-6.173.1.dist-info/METADATA,sha256=OLLh2xnv4pEfkGW-bS3XZCYFacJUP6BaPllGtL-dsVA,3678
161
+ bluer_objects-6.173.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ bluer_objects-6.173.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
163
+ bluer_objects-6.173.1.dist-info/RECORD,,