bluer-objects 6.77.1__py3-none-any.whl → 6.83.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.

@@ -6,8 +6,6 @@ alias @download=bluer_objects_download
6
6
 
7
7
  alias @gif=bluer_objects_gif
8
8
 
9
- alias @assets=bluer_objects_assets
10
-
11
9
  alias @cache=bluer_objects_mlflow_cache
12
10
  alias @ref="bluer_objects_mlflow_cache read"
13
11
  alias @tags=bluer_objects_mlflow_tags
@@ -4,12 +4,10 @@ function bluer_objects_mlflow_browse() {
4
4
  local options=$1
5
5
  local browse_experiment=$(bluer_ai_option_int "$options" experiment 0)
6
6
 
7
- local url=$DATABRICKS_HOST/$ABCLI_MLFLOW_URL_SUBDOMAIN
7
+ local url=http://localhost:5001/#
8
8
 
9
9
  if [ $(bluer_ai_option_int "$options" databricks 0) == 1 ]; then
10
10
  url="https://accounts.cloud.databricks.com/"
11
- elif [ $(bluer_ai_option_int "$options" host 0) == 1 ]; then
12
- : # do nothing
13
11
  elif [ $(bluer_ai_option_int "$options" models 0) == 1 ]; then
14
12
  url="$url/models"
15
13
  else
@@ -0,0 +1,24 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function bluer_objects_mlflow_deploy() {
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)
8
+
9
+ if [[ "$do_local" == 0 ]]; then
10
+ bluer_ai_log_error "only local deployment is supported."
11
+ return 1
12
+ fi
13
+
14
+ bluer_ai_badge "🤖"
15
+
16
+ bluer_ai_eval dryrun=$do_dryrun \
17
+ mlflow ui \
18
+ --backend-store-uri $MLFLOW_TRACKING_URI \
19
+ --default-artifact-root file://$MLFLOW_TRACKING_URI \
20
+ --host 0.0.0.0 \
21
+ --port $port
22
+
23
+ bluer_ai_badge "💻"
24
+ }
@@ -1,6 +1,6 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
- export MLFLOW_TRACKING_URI=$HOME/mlruns
3
+ export MLFLOW_TRACKING_URI=$HOME/mlflow
4
4
 
5
5
  function bluer_objects_mlflow() {
6
6
  local task=$1
@@ -8,9 +8,6 @@ function test_bluer_objects_help() {
8
8
 
9
9
  local module
10
10
  for module in \
11
- "@assets" \
12
- "@assets publish" \
13
- \
14
11
  "@cp" \
15
12
  \
16
13
  "@objects" \
@@ -45,6 +42,7 @@ function test_bluer_objects_help() {
45
42
  "@mlflow" \
46
43
  "@mlflow browse" \
47
44
  "@mlflow cache" \
45
+ "@mlflow deploy" \
48
46
  "@mlflow get_id" \
49
47
  "@mlflow get_run_id" \
50
48
  "@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.77.1"
7
+ VERSION = "6.83.1"
8
8
 
9
9
  REPO_NAME = "bluer-objects"
10
10
 
bluer_objects/config.env CHANGED
@@ -1,5 +1,3 @@
1
- ABCLI_MLFLOW_URL_SUBDOMAIN=ml
2
-
3
1
  ABCLI_MLFLOW_EXPERIMENT_PREFIX=experiment/
4
2
 
5
3
  BLUER_OBJECTS_STORAGE_INTERFACE=webdavzip
@@ -1,7 +1,6 @@
1
1
  from bluer_ai.help.generic import help_functions as generic_help_functions
2
2
 
3
3
  from bluer_objects import ALIAS
4
- from bluer_objects.help.assets import help_functions as help_assets
5
4
  from bluer_objects.help.clone import help_clone
6
5
  from bluer_objects.help.download import help_download
7
6
  from bluer_objects.help.gif import help_gif
@@ -15,7 +14,6 @@ help_functions = generic_help_functions(plugin_name=ALIAS)
15
14
 
16
15
  help_functions.update(
17
16
  {
18
- "assets": help_assets,
19
17
  "clone": help_clone,
20
18
  "download": help_download,
21
19
  "gif": help_gif,
@@ -11,7 +11,7 @@ def help_browse(
11
11
  tokens: List[str],
12
12
  mono: bool,
13
13
  ) -> str:
14
- options = "databricks,experiment,host,models"
14
+ options = xtra("experiment,models", mono=mono)
15
15
 
16
16
  return show_usage(
17
17
  [
@@ -25,6 +25,23 @@ def help_browse(
25
25
  )
26
26
 
27
27
 
28
+ def help_deploy(
29
+ tokens: List[str],
30
+ mono: bool,
31
+ ) -> str:
32
+ options = xtra("dryrun,~local,port=<5001>", mono=mono)
33
+
34
+ return show_usage(
35
+ [
36
+ "@mlflow",
37
+ "deploy",
38
+ f"[{options}]",
39
+ ],
40
+ "deploy mlflow.",
41
+ mono=mono,
42
+ )
43
+
44
+
28
45
  def help_get_id(
29
46
  tokens: List[str],
30
47
  mono: bool,
@@ -181,6 +198,7 @@ def help_transition(
181
198
  help_functions = {
182
199
  "browse": help_browse,
183
200
  "cache": help_cache,
201
+ "deploy": help_deploy,
184
202
  "get_id": help_get_id,
185
203
  "get_run_id": help_get_run_id,
186
204
  "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.77.1
3
+ Version: 6.83.1
4
4
  Summary: 🌀 Object management in Bash.
5
5
  Home-page: https://github.com/kamangir/bluer-objects
6
6
  Author: Arash Abadpour (Kamangir)
@@ -52,6 +52,6 @@ Also home to 🌀 [bluer README](https://github.com/kamangir/bluer-objects/blob/
52
52
 
53
53
  [![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)
54
54
 
55
- built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.77.1`](https://github.com/kamangir/bluer-objects).
55
+ built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.83.1`](https://github.com/kamangir/bluer-objects).
56
56
 
57
57
  built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
@@ -1,6 +1,6 @@
1
- bluer_objects/__init__.py,sha256=6RC-PQUfkGWLYP2ze5q0JQfKAJMivtqG4dF9WO5e5As,314
1
+ bluer_objects/__init__.py,sha256=I9a6tu5rwHgTouWl9Qejlsrac7YqkL8tKuUz9fMX7kk,314
2
2
  bluer_objects/__main__.py,sha256=Yqfov833_hJuRne19WrGhT5DWAPtdffpoMxeSXS7EGw,359
3
- bluer_objects/config.env,sha256=TzX3WyJjwEs9V-NzK3FBUyePhb0i2ZoCja-lhDF_xJU,116
3
+ bluer_objects/config.env,sha256=cMVT0kVQ00xGUoQyUqC8jpqkhR13Kpkl1-0sKQlxQAI,85
4
4
  bluer_objects/env.py,sha256=J5LklWyWT-Yvvoe8MVCZQ3iqRqyDutq6IbNYNj9A1VM,1183
5
5
  bluer_objects/markdown.py,sha256=PhAwCTHIisO9qOpKHeb63U5oD9Zi8LnIQKTx_OWS4wE,938
6
6
  bluer_objects/objects.py,sha256=EYzA1vKngY2c_gdMKnUfrKVUcf-5wpFKgBFaVJA4cLE,1626
@@ -10,7 +10,7 @@ bluer_objects/urls.py,sha256=paHaYlLMQOI46-EYNch5ohu9Q09BMkF2vvJy1QufrVI,19
10
10
  bluer_objects/.abcli/abcli.sh,sha256=8RDi_vCZfB6JOeGSJWcmmzZv2pS4o-_j250rFYG7Ljc,202
11
11
  bluer_objects/.abcli/actions.sh,sha256=HZI-X5KUy6bXEHmxywfBN1zbHalU0mcTblTQ2HvIfOE,236
12
12
  bluer_objects/.abcli/aka.sh,sha256=odRbw4KZb9Ld7uXny6H2pPi64_5kowKX3s68N6YvRmI,23
13
- bluer_objects/.abcli/alias.sh,sha256=wroySjiDZ04QpTIO-MU9dVvJD26FlIbTf4WgF_IW5Jc,626
13
+ bluer_objects/.abcli/alias.sh,sha256=CO4-rI5PvB0c2EhuQQtB5Xl0EgNJRNgihSwtvPJ_M1Q,590
14
14
  bluer_objects/.abcli/bluer_objects.sh,sha256=x7qf8hSAp3dAl0Hes4J07vL6qP-mWFUkJhvUXzTJC_8,210
15
15
  bluer_objects/.abcli/clone.sh,sha256=KqC5d4MAXwo7UZGhKnfCq9k9CCSl3I1dpU1igYs0Yrs,1975
16
16
  bluer_objects/.abcli/download.sh,sha256=77Bak3TATDrDNpBWM8bvbU1MdsuTCENyqdBJNx_Wsa0,564
@@ -19,15 +19,16 @@ bluer_objects/.abcli/gif.sh,sha256=sZZZWAvwR7bTf6gF70b0l_1tw4-HOswh93iwUAQilEI,8
19
19
  bluer_objects/.abcli/host.sh,sha256=N-Gdsk-mR2V2MvFlwlIVwaiGkQyV1DoM5UdhQrpUsls,573
20
20
  bluer_objects/.abcli/ls.sh,sha256=-jkT5anPqnTMTzvJZXujmXE705YprYCUbxOQTNFCTrc,417
21
21
  bluer_objects/.abcli/metadata.sh,sha256=EXBB39nn5PRRryIlfetIpR4fPQ-4eDg7Hnee9g1JXrI,377
22
- bluer_objects/.abcli/mlflow.sh,sha256=6CEKiyP8YgBRXVmEQ15EHh_eHgAfjajZPE9Re2bvMNM,666
22
+ bluer_objects/.abcli/mlflow.sh,sha256=CtTC6wqc3-08T221Lu2H2HlsbDc2TI8POYqDhHWfaLY,666
23
23
  bluer_objects/.abcli/object.sh,sha256=Zh2ZMFqBSIOHwwwLegCMxJRfaYCbPp1EJMT3LvcFzhE,739
24
24
  bluer_objects/.abcli/select.sh,sha256=CVcqVRN6bMLtEo0SptZS_QGY90_lT1Su71DlcVyddXo,878
25
25
  bluer_objects/.abcli/storage.sh,sha256=iYHxdXJI9sGR-WKxDuYKOB06FccSQ0G0-uZn9UJQGnc,321
26
26
  bluer_objects/.abcli/upload.sh,sha256=vRkzfDzze0MYMoUalzY6QzNC2DXlTFfm2nSMfNSB-9k,529
27
27
  bluer_objects/.abcli/metadata/get.sh,sha256=6W9x0akZwwozTyOlKCW_0MndYVUAL4v1HSUPxTAsfKA,835
28
28
  bluer_objects/.abcli/metadata/post.sh,sha256=UdvZNuRu6_NcyRVvDMFZ9GEwOm3K8rsNqM0FFr9LskA,570
29
- bluer_objects/.abcli/mlflow/browse.sh,sha256=0k7luJ2e7XFmdszYOBmDnL5YUeDxA4Fq18s_sgOyJIU,1197
29
+ bluer_objects/.abcli/mlflow/browse.sh,sha256=24aB7sUHYX1UM_VbfWh_50f_BnM3fQTzUnFuI7AuqMo,1088
30
30
  bluer_objects/.abcli/mlflow/cache.sh,sha256=tpdCqL3jMFpfRmYS6UTgLiycv43_z_N_J1ux2XsDgdA,556
31
+ bluer_objects/.abcli/mlflow/deploy.sh,sha256=SiuQPzqpDz4TLJFU_zXobYFkqeIe_4mKMgAB4CX7e5k,663
31
32
  bluer_objects/.abcli/mlflow/list_registered_models.sh,sha256=cZGtAzfLx-kW3-zi0mLrfhzk4B8KyUL2sq2tD7lK5q8,191
32
33
  bluer_objects/.abcli/mlflow/log_artifacts.sh,sha256=3sCdDHoRVFqCg_DPF8zw3HSAj8Grr-Mbwmf0iUlDmrk,243
33
34
  bluer_objects/.abcli/mlflow/log_run.sh,sha256=-oDsAxVnw3wot-Jk4mju_6fgW_6K2VnhlWtAtom-tlc,231
@@ -48,7 +49,7 @@ bluer_objects/.abcli/storage/status.sh,sha256=HRbQq9EhoZ1S-GHXOTeclSOTbV-hrEieGA
48
49
  bluer_objects/.abcli/tests/README.sh,sha256=gk2KuNLFTuV3qdVgH8BNfJmur3gZoSV8EwLboVjrCgM,150
49
50
  bluer_objects/.abcli/tests/clone.sh,sha256=4FfZPySVz0ptrYPRktomAYtQWZiSMM0JWWqpDCjo8Zk,516
50
51
  bluer_objects/.abcli/tests/gif.sh,sha256=2KbHki5Vb1lFacRhdmtyCZFkoyl1GXBaseN9Bvbj2NQ,504
51
- bluer_objects/.abcli/tests/help.sh,sha256=O10t4Q32bWXyrV9IXbGDSM1HzLtBu0dL2Btp69mv8ng,1773
52
+ bluer_objects/.abcli/tests/help.sh,sha256=hIBglHiZDaIyCnxh1y02288gTvt9Il_sk-DGuv-L6jk,1742
52
53
  bluer_objects/.abcli/tests/host.sh,sha256=GBuTLNw1sU3fAb5jS-ew_qAfovVCQ5CLaz5ad04IkoA,144
53
54
  bluer_objects/.abcli/tests/ls.sh,sha256=GeNMX37aXHR8SksD4ASkWHx1iD3Z7eb-AFQR6yZzN9g,598
54
55
  bluer_objects/.abcli/tests/metadata.sh,sha256=OP1c0h0TSlDycrv0UglKLyBtTQwqh9M0nqVAdQUzkno,1723
@@ -76,16 +77,15 @@ bluer_objects/graphics/signature.py,sha256=9Mtx3OrPTmxV_VytkVcZKOfjOnkqbTLakVNL7
76
77
  bluer_objects/graphics/text.py,sha256=nnJrLUD4LIurBntSeUFwBOsbhzALXrzHzfDnBVEcFKA,4382
77
78
  bluer_objects/help/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
78
79
  bluer_objects/help/__main__.py,sha256=Dxg-JpMOIlYWZklI_J2LyiHnRui5lUwWmfM7FLRzUXA,237
79
- bluer_objects/help/assets.py,sha256=qOXKckbcl_4I-iUbUYAVOm9B6Cd3l1l0Z61hZU9G2fo,675
80
80
  bluer_objects/help/clone.py,sha256=PDnQs7zc4sqmoBHPjVRfX7jIaePiohPGCNA5bxeerik,553
81
81
  bluer_objects/help/download.py,sha256=1fw3ASOXUuXcNhm8y0AK7ZBmXzWwZvdo2hK9ZVbgteA,439
82
- bluer_objects/help/functions.py,sha256=y_k_koMMdDRj7sBhaugofrk1KGfNk_okNIFHZLRJSmM,983
82
+ bluer_objects/help/functions.py,sha256=gcQq4prGv-eOZ1gU-qMItFXceZixaYNw5yBWqobSjr8,884
83
83
  bluer_objects/help/gif.py,sha256=gKV6vNT4bEC2Ch3QIb3Yc5DqzAH_UvAVCsuvzXeF1Sc,564
84
84
  bluer_objects/help/host.py,sha256=4t4yrPGjTbnFtODcuBjfIzpA5pmmvc5s4QrjIqPPVsM,988
85
85
  bluer_objects/help/ls.py,sha256=acvRLDxjJOzQ1a9ZQ4Mn9aBZ8Vf17IDHcAxC2O3R33Y,627
86
86
  bluer_objects/help/metadata.py,sha256=fk22NasBcZU1ffY4fu6AxrCzMQtTI28p_ghaSVRrrPM,2811
87
87
  bluer_objects/help/upload.py,sha256=p-nRw9d_S6PI7PcD0mBwWqQRPWQG4r3usjvOIzAbTeM,368
88
- bluer_objects/help/mlflow/__init__.py,sha256=RMYjQDHw-gBTi4PAw9Mgdq4s5N7E0h-1dJ80EaVh5Uw,3695
88
+ bluer_objects/help/mlflow/__init__.py,sha256=oimroGIHpMzvP3iTT99mUk3MA2BfaSWA2B8hSq3uCUA,4019
89
89
  bluer_objects/help/mlflow/cache.py,sha256=O8O1oaiq1e1z2HCi8fRe4hjSNimzvCaCAIu-u2GDHkE,704
90
90
  bluer_objects/help/mlflow/tags.py,sha256=C3FcMRe-JhelhCQkAyZ5jlxGtgYxhNjtIhxka8k_ytI,2137
91
91
  bluer_objects/host/__init__.py,sha256=Ko43SWnZNsGKuIPU_l0w17pYrxCgVHQx3_zEoUNaHZY,272
@@ -136,8 +136,8 @@ bluer_objects/tests/test_path.py,sha256=JjONWyhZyMM_u1SzD1RI_iZ5vYJDUe-B51fbbHcz
136
136
  bluer_objects/tests/test_storage.py,sha256=2tJ6Hev9ShId9Qn-0FXDw41HWjcl3wymcB_Bv1FJWi4,1127
137
137
  bluer_objects/tests/test_testing.py,sha256=d2NH435yqJBl9wmfMqGGd-f0Y0jsL2QhHUXkty9AwPA,235
138
138
  bluer_objects/tests/test_version.py,sha256=Lyf3PMcA22e17BNRk_2VgPrtao6dWEgVoXo68Uds8SE,75
139
- bluer_objects-6.77.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
140
- bluer_objects-6.77.1.dist-info/METADATA,sha256=1Aq2PlAQXe9CMO32EGZZ0AWTOBmLy4LxjsI7lFuXbdU,2742
141
- bluer_objects-6.77.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
142
- bluer_objects-6.77.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
143
- bluer_objects-6.77.1.dist-info/RECORD,,
139
+ bluer_objects-6.83.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
140
+ bluer_objects-6.83.1.dist-info/METADATA,sha256=xh0TuG-E6hC7nBGQIXoG0LrTfTd8e22uPQvmWbPz_wQ,2742
141
+ bluer_objects-6.83.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
142
+ bluer_objects-6.83.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
143
+ bluer_objects-6.83.1.dist-info/RECORD,,
@@ -1,38 +0,0 @@
1
- from typing import List
2
-
3
- from bluer_options.terminal import show_usage, xtra
4
-
5
-
6
- def help_publish(
7
- tokens: List[str],
8
- mono: bool,
9
- ) -> str:
10
- options = "".join(
11
- [
12
- xtra("download,", mono=mono),
13
- "extensions=png+geojson",
14
- xtra(",~pull,", mono=mono),
15
- "push",
16
- ]
17
- )
18
-
19
- args = [
20
- "[--prefix <prefix>]",
21
- ]
22
-
23
- return show_usage(
24
- [
25
- "@assets",
26
- "publish",
27
- f"[{options}]",
28
- "[.|<object-name>]",
29
- ]
30
- + args,
31
- "<object-name>/<prefix> -> assets.",
32
- mono=mono,
33
- )
34
-
35
-
36
- help_functions = {
37
- "publish": help_publish,
38
- }