bluer-objects 6.34.1__py3-none-any.whl → 6.35.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.
- bluer_objects/.abcli/alias.sh +1 -1
- bluer_objects/.abcli/metadata/get.sh +1 -1
- bluer_objects/.abcli/metadata/post.sh +1 -1
- bluer_objects/.abcli/metadata.sh +2 -2
- bluer_objects/.abcli/tests/metadata.sh +6 -6
- bluer_objects/__init__.py +1 -1
- bluer_objects/help/functions.py +2 -0
- bluer_objects/help/metadata.py +152 -0
- {bluer_objects-6.34.1.dist-info → bluer_objects-6.35.1.dist-info}/METADATA +2 -2
- {bluer_objects-6.34.1.dist-info → bluer_objects-6.35.1.dist-info}/RECORD +13 -12
- {bluer_objects-6.34.1.dist-info → bluer_objects-6.35.1.dist-info}/WHEEL +0 -0
- {bluer_objects-6.34.1.dist-info → bluer_objects-6.35.1.dist-info}/licenses/LICENSE +0 -0
- {bluer_objects-6.34.1.dist-info → bluer_objects-6.35.1.dist-info}/top_level.txt +0 -0
bluer_objects/.abcli/alias.sh
CHANGED
bluer_objects/.abcli/metadata.sh
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#! /usr/bin/env bash
|
|
2
2
|
|
|
3
|
-
function
|
|
3
|
+
function bluer_objects_metadata() {
|
|
4
4
|
local task=${1:-help}
|
|
5
5
|
|
|
6
|
-
local function_name="
|
|
6
|
+
local function_name="bluer_objects_metadata_$task"
|
|
7
7
|
if [[ $(type -t $function_name) == "function" ]]; then
|
|
8
8
|
$function_name "${@:2}"
|
|
9
9
|
return
|
|
@@ -11,21 +11,21 @@ function test_bluer_objects_metadata() {
|
|
|
11
11
|
local value=$(abcli_string_random)
|
|
12
12
|
|
|
13
13
|
[[ "$post_func" == 1 ]] &&
|
|
14
|
-
|
|
14
|
+
bluer_objects_metadata post \
|
|
15
15
|
$key $value \
|
|
16
16
|
filename \
|
|
17
17
|
$filename \
|
|
18
18
|
--verbose 1
|
|
19
19
|
|
|
20
20
|
[[ "$post_func" == 2 ]] &&
|
|
21
|
-
|
|
21
|
+
bluer_objects_metadata post \
|
|
22
22
|
$key $value \
|
|
23
23
|
object,filename=metadata.yaml \
|
|
24
24
|
$object_name \
|
|
25
25
|
--verbose 1
|
|
26
26
|
|
|
27
27
|
[[ "$post_func" == 3 ]] &&
|
|
28
|
-
|
|
28
|
+
bluer_objects_metadata post \
|
|
29
29
|
$key $value \
|
|
30
30
|
path,filename=metadata.yaml \
|
|
31
31
|
$object_path \
|
|
@@ -33,17 +33,17 @@ function test_bluer_objects_metadata() {
|
|
|
33
33
|
|
|
34
34
|
for get_func in {1..3}; do
|
|
35
35
|
[[ "$get_func" == 1 ]] &&
|
|
36
|
-
returned_value=$(
|
|
36
|
+
returned_value=$(bluer_objects_metadata get \
|
|
37
37
|
key=$key,filename \
|
|
38
38
|
$filename)
|
|
39
39
|
|
|
40
40
|
[[ "$get_func" == 2 ]] &&
|
|
41
|
-
returned_value=$(
|
|
41
|
+
returned_value=$(bluer_objects_metadata get \
|
|
42
42
|
key=$key,filename=metadata.yaml,object \
|
|
43
43
|
$object_name)
|
|
44
44
|
|
|
45
45
|
[[ "$get_func" == 3 ]] &&
|
|
46
|
-
returned_value=$(
|
|
46
|
+
returned_value=$(bluer_objects_metadata get \
|
|
47
47
|
key=$key,filename=metadata.yaml,path \
|
|
48
48
|
$object_path)
|
|
49
49
|
|
bluer_objects/__init__.py
CHANGED
bluer_objects/help/functions.py
CHANGED
|
@@ -3,6 +3,7 @@ from bluer_ai.help.generic import help_functions as generic_help_functions
|
|
|
3
3
|
from bluer_objects import ALIAS
|
|
4
4
|
from bluer_objects.help.clone import help_clone
|
|
5
5
|
from bluer_objects.help.download import help_download
|
|
6
|
+
from bluer_objects.help.metadata import help_functions as help_metadata
|
|
6
7
|
from bluer_objects.help.upload import help_upload
|
|
7
8
|
|
|
8
9
|
help_functions = generic_help_functions(plugin_name=ALIAS)
|
|
@@ -11,6 +12,7 @@ help_functions.update(
|
|
|
11
12
|
{
|
|
12
13
|
"clone": help_clone,
|
|
13
14
|
"download": help_download,
|
|
15
|
+
"metadata": help_metadata,
|
|
14
16
|
"upload": help_upload,
|
|
15
17
|
}
|
|
16
18
|
)
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
from typing import List
|
|
2
|
+
|
|
3
|
+
from bluer_options.terminal import show_usage, xtra
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def help_get(
|
|
7
|
+
tokens: List[str],
|
|
8
|
+
mono: bool,
|
|
9
|
+
) -> str:
|
|
10
|
+
# ---
|
|
11
|
+
options = "".join(
|
|
12
|
+
[
|
|
13
|
+
xtra("delim=+,dict.keys,dict.values,", mono=mono),
|
|
14
|
+
"filename,key=<key>",
|
|
15
|
+
]
|
|
16
|
+
)
|
|
17
|
+
usage_1 = show_usage(
|
|
18
|
+
[
|
|
19
|
+
"@metadata",
|
|
20
|
+
"get",
|
|
21
|
+
f"[{options}]",
|
|
22
|
+
"<filename.yaml>",
|
|
23
|
+
],
|
|
24
|
+
"get <filename.yaml>[<key>]",
|
|
25
|
+
mono=mono,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
# ---
|
|
29
|
+
options = "".join(
|
|
30
|
+
[
|
|
31
|
+
xtra("delim=+,dict.keys,dict.values,filename=<metadata.yaml>,", mono=mono),
|
|
32
|
+
"key=<key>,object",
|
|
33
|
+
]
|
|
34
|
+
)
|
|
35
|
+
usage_2 = show_usage(
|
|
36
|
+
[
|
|
37
|
+
"@metadata",
|
|
38
|
+
"get",
|
|
39
|
+
f"[{options}]",
|
|
40
|
+
"[.|<object-name>]",
|
|
41
|
+
],
|
|
42
|
+
"get <object-name>/metadata[<key>]",
|
|
43
|
+
mono=mono,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
# ---
|
|
47
|
+
options = "".join(
|
|
48
|
+
[
|
|
49
|
+
xtra("delim=+,dict.keys,dict.values,filename=<metadata.yaml>,", mono=mono),
|
|
50
|
+
"key=<key>,path",
|
|
51
|
+
]
|
|
52
|
+
)
|
|
53
|
+
usage_3 = show_usage(
|
|
54
|
+
[
|
|
55
|
+
"@metadata",
|
|
56
|
+
"get",
|
|
57
|
+
f"[{options}]",
|
|
58
|
+
"<path>",
|
|
59
|
+
],
|
|
60
|
+
"get <path>/metadata[<key>]",
|
|
61
|
+
mono=mono,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
return "\n".join(
|
|
65
|
+
[
|
|
66
|
+
usage_1,
|
|
67
|
+
usage_2,
|
|
68
|
+
usage_3,
|
|
69
|
+
]
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def help_post(
|
|
74
|
+
tokens: List[str],
|
|
75
|
+
mono: bool,
|
|
76
|
+
) -> str:
|
|
77
|
+
args = ["[--verbose 1]"]
|
|
78
|
+
|
|
79
|
+
# ---
|
|
80
|
+
options = "filename"
|
|
81
|
+
|
|
82
|
+
usage_1 = show_usage(
|
|
83
|
+
[
|
|
84
|
+
"@metadata",
|
|
85
|
+
"post",
|
|
86
|
+
"<key>",
|
|
87
|
+
"<value>",
|
|
88
|
+
f"{options}",
|
|
89
|
+
"<filename.yaml>",
|
|
90
|
+
]
|
|
91
|
+
+ args,
|
|
92
|
+
"<filename.yaml>[<key>] = <value>",
|
|
93
|
+
mono=mono,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
# ---
|
|
97
|
+
options = "".join(
|
|
98
|
+
[
|
|
99
|
+
"object",
|
|
100
|
+
xtra(",filename=<metadata.yaml>", mono=mono),
|
|
101
|
+
]
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
usage_2 = show_usage(
|
|
105
|
+
[
|
|
106
|
+
"@metadata",
|
|
107
|
+
"post",
|
|
108
|
+
"<key>",
|
|
109
|
+
"<value>",
|
|
110
|
+
f"{options}",
|
|
111
|
+
"[.|<object-name>]",
|
|
112
|
+
]
|
|
113
|
+
+ args,
|
|
114
|
+
"<object-name>[<key>] = <value>",
|
|
115
|
+
mono=mono,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
# ---
|
|
119
|
+
options = "".join(
|
|
120
|
+
[
|
|
121
|
+
"path",
|
|
122
|
+
xtra(",filename=<metadata.yaml>", mono=mono),
|
|
123
|
+
]
|
|
124
|
+
)
|
|
125
|
+
|
|
126
|
+
usage_3 = show_usage(
|
|
127
|
+
[
|
|
128
|
+
"@metadata",
|
|
129
|
+
"post",
|
|
130
|
+
"<key>",
|
|
131
|
+
"<value>",
|
|
132
|
+
f"{options}",
|
|
133
|
+
"<path>",
|
|
134
|
+
]
|
|
135
|
+
+ args,
|
|
136
|
+
"<path>[<key>] = <value>",
|
|
137
|
+
mono=mono,
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
return "\n".join(
|
|
141
|
+
[
|
|
142
|
+
usage_1,
|
|
143
|
+
usage_2,
|
|
144
|
+
usage_3,
|
|
145
|
+
]
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
help_functions = {
|
|
150
|
+
"get": help_get,
|
|
151
|
+
"post": help_post,
|
|
152
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.35.1
|
|
4
4
|
Summary: 🌀 data objects for Bash.
|
|
5
5
|
Home-page: https://github.com/kamangir/bluer-objects
|
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
|
@@ -53,6 +53,6 @@ Also home to [blue README](https://github.com/kamangir/bluer-objects/blob/main/b
|
|
|
53
53
|
|
|
54
54
|
[](https://github.com/kamangir/bluer-objects/actions/workflows/pylint.yml) [](https://github.com/kamangir/bluer-objects/actions/workflows/pytest.yml) [](https://github.com/kamangir/bluer-objects/actions/workflows/bashtest.yml) [](https://pypi.org/project/bluer-objects/) [](https://pypistats.org/packages/bluer-objects)
|
|
55
55
|
|
|
56
|
-
built by 🌀 [`bluer_options-5.28.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`bluer_objects-6.
|
|
56
|
+
built by 🌀 [`bluer_options-5.28.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`bluer_objects-6.35.1`](https://github.com/kamangir/bluer-objects).
|
|
57
57
|
|
|
58
58
|
built by 🌀 [`blueness-3.96.1`](https://github.com/kamangir/blueness).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
bluer_objects/__init__.py,sha256=
|
|
1
|
+
bluer_objects/__init__.py,sha256=vGAdU6nl1lUlHeC2Hbpb8H9voYMFyH5JeHneaKdCRAI,310
|
|
2
2
|
bluer_objects/__main__.py,sha256=Yqfov833_hJuRne19WrGhT5DWAPtdffpoMxeSXS7EGw,359
|
|
3
3
|
bluer_objects/config.env,sha256=TzX3WyJjwEs9V-NzK3FBUyePhb0i2ZoCja-lhDF_xJU,116
|
|
4
4
|
bluer_objects/env.py,sha256=4g_JNKr1uBh8bg39zXLYOCizlWD9_0fpDUYliNgpmj4,1225
|
|
@@ -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=
|
|
13
|
+
bluer_objects/.abcli/alias.sh,sha256=NBUIZWESFHu9kef_9YzsozHdLyw9gBvlC0ea-qFCxLU,584
|
|
14
14
|
bluer_objects/.abcli/bluer_objects.sh,sha256=24qMYZImMHREqtYRFdDwIP_TaRnb9RBtUL836RtZWG0,204
|
|
15
15
|
bluer_objects/.abcli/cache.sh,sha256=koMJSyjyQKIzwZ8RmtUEZOSjSRW6MEORSPRXiUdLX6k,77
|
|
16
16
|
bluer_objects/.abcli/clone.sh,sha256=emB-TWdDFlwAK_06_oADBLGhhO9nyTocHMGGsK2nrCs,1929
|
|
@@ -19,15 +19,15 @@ bluer_objects/.abcli/file.sh,sha256=djcHSFS8fqlCsoDyZKmimNTzd-jOUnxbOFpL7xq_hGk,
|
|
|
19
19
|
bluer_objects/.abcli/gif.sh,sha256=cSU4rDO_6LWnK1C9fUKpf1Gja8Nn0huIMsk0jhru84M,771
|
|
20
20
|
bluer_objects/.abcli/host.sh,sha256=k1fX5qAUKECxtIBmOP6U-CXHbEUEurjZUYlrVIjo7_Q,556
|
|
21
21
|
bluer_objects/.abcli/ls.sh,sha256=CG6tPvxkXxa7SqK9DwLJLyjaekqDpYJFLYdjuURzeIA,611
|
|
22
|
-
bluer_objects/.abcli/metadata.sh,sha256=
|
|
22
|
+
bluer_objects/.abcli/metadata.sh,sha256=BA1Mnf7_Zy7kiUp0UrDaJogTaBOtG-IwuTaeY8avbzI,374
|
|
23
23
|
bluer_objects/.abcli/mlflow.sh,sha256=x2KcXjp4qduri9XdnXOJkocxKJTdoUc7e6EYPuuh-cg,644
|
|
24
24
|
bluer_objects/.abcli/object.sh,sha256=nzXPfgS2nicI-3dNVjC-xw9QKdWN1mtUcy7VmLGyWR8,816
|
|
25
25
|
bluer_objects/.abcli/publish.sh,sha256=5PevHVqCJQAZfM78GjsOAfwFuu96yoH-wUK6RYaD688,1870
|
|
26
26
|
bluer_objects/.abcli/select.sh,sha256=oXT3KBaTDOd8xlurALDIxhzbOTVOFyGpLTseqPxtNqU,863
|
|
27
27
|
bluer_objects/.abcli/storage.sh,sha256=iYHxdXJI9sGR-WKxDuYKOB06FccSQ0G0-uZn9UJQGnc,321
|
|
28
28
|
bluer_objects/.abcli/upload.sh,sha256=_H1K8yCQiBykuJe0_AJW5SRBBwWbOI9rXat6MMzrTBc,515
|
|
29
|
-
bluer_objects/.abcli/metadata/get.sh,sha256=
|
|
30
|
-
bluer_objects/.abcli/metadata/post.sh,sha256=
|
|
29
|
+
bluer_objects/.abcli/metadata/get.sh,sha256=p8EmWVulzfim7cpyclhrmXvNBGEqtht51ohZV47MpwU,811
|
|
30
|
+
bluer_objects/.abcli/metadata/post.sh,sha256=qHTuFi8RdmIoAOTMstKNEe5R3dW4hT5NJrz7u0KB-AU,561
|
|
31
31
|
bluer_objects/.abcli/mlflow/browse.sh,sha256=PxImXtat6oMOHUHCiuAJeC8mDKaxQUvLa1YfOOq8deY,1149
|
|
32
32
|
bluer_objects/.abcli/mlflow/cache.sh,sha256=WxkC4mnhSLwdFThghXcmyuNhaLdEZ0Q_ItIL7fLiyy8,529
|
|
33
33
|
bluer_objects/.abcli/mlflow/list_registered_models.sh,sha256=7WwSvY4aYdXqgjjzTE0WzoGp5lomOk1JVmZOA_125EU,183
|
|
@@ -53,7 +53,7 @@ bluer_objects/.abcli/tests/gif.sh,sha256=bGDNvAsKBDsIdC_vBNzsNe7YC2jxBZdCo46LY9Y
|
|
|
53
53
|
bluer_objects/.abcli/tests/help.sh,sha256=K55yGyL7bIPYawEj5RYXgx47zKbsO8RFGrSZGBCKOR8,1799
|
|
54
54
|
bluer_objects/.abcli/tests/host.sh,sha256=yvWymyoJgdCjrNFQuvw9rB4GWakjgyuf4iqGhswC0QA,133
|
|
55
55
|
bluer_objects/.abcli/tests/ls.sh,sha256=CbJUpEhAinnK606oWmqTumOYw0YywOMOOPh4hX5ZVAs,198
|
|
56
|
-
bluer_objects/.abcli/tests/metadata.sh,sha256=
|
|
56
|
+
bluer_objects/.abcli/tests/metadata.sh,sha256=NsWYxHpBMFq9JpxsQS1u6lXYjBSZ41la49XtTrONMm8,1658
|
|
57
57
|
bluer_objects/.abcli/tests/mlflow_cache.sh,sha256=2tz5i7eLkpWvkYjCIll-kIrgmIip3juUpBQzmeJBc_Y,363
|
|
58
58
|
bluer_objects/.abcli/tests/mlflow_logging.sh,sha256=dCeUslVK7rWjTfXTQnGFUTYGsaKkuxHpaOllrf9HTc8,286
|
|
59
59
|
bluer_objects/.abcli/tests/mlflow_tags.sh,sha256=PW9OWKhyChpEYbSJH9waofSh6wA6ZekgOD4dExQ9QX0,764
|
|
@@ -80,7 +80,8 @@ bluer_objects/help/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
80
80
|
bluer_objects/help/__main__.py,sha256=Dxg-JpMOIlYWZklI_J2LyiHnRui5lUwWmfM7FLRzUXA,237
|
|
81
81
|
bluer_objects/help/clone.py,sha256=PDnQs7zc4sqmoBHPjVRfX7jIaePiohPGCNA5bxeerik,553
|
|
82
82
|
bluer_objects/help/download.py,sha256=1fw3ASOXUuXcNhm8y0AK7ZBmXzWwZvdo2hK9ZVbgteA,439
|
|
83
|
-
bluer_objects/help/functions.py,sha256=
|
|
83
|
+
bluer_objects/help/functions.py,sha256=niiBZy-Q7ceSdLPEDJDAHL9IGBovZOawpXnAtomVU3E,560
|
|
84
|
+
bluer_objects/help/metadata.py,sha256=fk22NasBcZU1ffY4fu6AxrCzMQtTI28p_ghaSVRrrPM,2811
|
|
84
85
|
bluer_objects/help/upload.py,sha256=p-nRw9d_S6PI7PcD0mBwWqQRPWQG4r3usjvOIzAbTeM,368
|
|
85
86
|
bluer_objects/host/__init__.py,sha256=Ko43SWnZNsGKuIPU_l0w17pYrxCgVHQx3_zEoUNaHZY,272
|
|
86
87
|
bluer_objects/host/__main__.py,sha256=J0MO2sUzrI_t_X4VVYyM6n41ND0yhhSXOmZSkDAC4rg,1751
|
|
@@ -130,8 +131,8 @@ bluer_objects/tests/test_path.py,sha256=JjONWyhZyMM_u1SzD1RI_iZ5vYJDUe-B51fbbHcz
|
|
|
130
131
|
bluer_objects/tests/test_storage.py,sha256=2tJ6Hev9ShId9Qn-0FXDw41HWjcl3wymcB_Bv1FJWi4,1127
|
|
131
132
|
bluer_objects/tests/test_testing.py,sha256=d2NH435yqJBl9wmfMqGGd-f0Y0jsL2QhHUXkty9AwPA,235
|
|
132
133
|
bluer_objects/tests/test_version.py,sha256=Lyf3PMcA22e17BNRk_2VgPrtao6dWEgVoXo68Uds8SE,75
|
|
133
|
-
bluer_objects-6.
|
|
134
|
-
bluer_objects-6.
|
|
135
|
-
bluer_objects-6.
|
|
136
|
-
bluer_objects-6.
|
|
137
|
-
bluer_objects-6.
|
|
134
|
+
bluer_objects-6.35.1.dist-info/licenses/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
|
|
135
|
+
bluer_objects-6.35.1.dist-info/METADATA,sha256=CLpe3jXpGMcb1zxfJ5zjDMOZPeXG5i8mZeQvtPIfJmQ,2748
|
|
136
|
+
bluer_objects-6.35.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
137
|
+
bluer_objects-6.35.1.dist-info/top_level.txt,sha256=RX2TpddbnRkurda3G_pAdyeTztP2IhhRPx949GlEvQo,14
|
|
138
|
+
bluer_objects-6.35.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|