bluer-objects 6.98.1__tar.gz → 6.103.1__tar.gz
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-6.98.1/bluer_objects.egg-info → bluer_objects-6.103.1}/PKG-INFO +2 -2
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/README.md +1 -1
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/clear.sh +9 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/__init__.py +1 -1
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/storage/WebDAVzip.py +39 -1
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/storage/__init__.py +8 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/storage/__main__.py +12 -2
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/storage/base.py +6 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1/bluer_objects.egg-info}/PKG-INFO +2 -2
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/LICENSE +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/MANIFEST.in +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/abcli.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/actions.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/aka.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/alias.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/bluer_objects.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/clone.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/download.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/file.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/gif.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/host.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/ls.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/metadata/get.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/metadata/post.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/metadata.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/browse.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/cache.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/deploy.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/list_registered_models.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/log_artifacts.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/log_run.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/run.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/tags/clone.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/tags/get.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/tags/search.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/tags/set.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/tags.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/test.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/transition.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/object.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/select.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/download_file.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/exists.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/list.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/rm.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/status.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/README.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/clone.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/gif.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/help.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/host.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/ls.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/metadata.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/mlflow_cache.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/mlflow_logging.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/mlflow_tags.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/mlflow_test.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/storage.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/tests/version.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/upload.sh +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/README/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/README/functions.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/README/items.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/config.env +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/env.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/file/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/file/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/file/classes.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/file/functions.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/file/load.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/file/save.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/frame.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/gif.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/screen.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/signature.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/graphics/text.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/clone.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/download.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/functions.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/gif.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/host.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/ls.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/metadata.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/mlflow/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/mlflow/cache.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/mlflow/tags.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/help/upload.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/host/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/host/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/host/functions.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/logger/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/logger/matrix.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/markdown.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/metadata/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/metadata/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/metadata/enums.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/metadata/get.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/metadata/post.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/cache.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/logging.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/models.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/objects.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/runs.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/tags.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/mlflow/testing.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/objects.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/path.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/sample.env +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/storage/WebDAV.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/testing/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/testing/__main__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/testing/functions.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/__init__.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_README.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_env.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_file_load_save.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_fullname.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics_frame.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics_gif.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics_screen.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics_signature.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics_text.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_logger.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_logger_matrix.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_markdown.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_metadata.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_mlflow.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_objects.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_path.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_storage.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_testing.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_version.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/urls.py +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects.egg-info/SOURCES.txt +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects.egg-info/dependency_links.txt +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects.egg-info/requires.txt +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects.egg-info/top_level.txt +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/pyproject.toml +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/requirements.txt +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/setup.cfg +0 -0
- {bluer_objects-6.98.1 → bluer_objects-6.103.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.103.1
|
|
4
4
|
Summary: 🌀 Object management in Bash.
|
|
5
5
|
Home-page: https://github.com/kamangir/bluer-objects
|
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
|
@@ -63,6 +63,6 @@ pip install bluer-objects
|
|
|
63
63
|
|
|
64
64
|
[](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)
|
|
65
65
|
|
|
66
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
66
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.103.1`](https://github.com/kamangir/bluer-objects).
|
|
67
67
|
|
|
68
68
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -30,4 +30,4 @@ pip install bluer-objects
|
|
|
30
30
|
|
|
31
31
|
[](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)
|
|
32
32
|
|
|
33
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
33
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.103.1`](https://github.com/kamangir/bluer-objects).
|
|
@@ -2,8 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
function bluer_ai_storage_clear() {
|
|
4
4
|
local options=$1
|
|
5
|
+
local do_cloud=$(bluer_ai_option_int "$options" cloud 0)
|
|
5
6
|
local do_dryrun=$(bluer_ai_option_int "$options" dryrun 1)
|
|
6
7
|
|
|
8
|
+
if [[ "$do_cloud" == 1 ]]; then
|
|
9
|
+
python3 -m bluer_objects.storage \
|
|
10
|
+
clear \
|
|
11
|
+
--do_dryrun $do_dryrun \
|
|
12
|
+
"${@:2}"
|
|
13
|
+
return
|
|
14
|
+
fi
|
|
15
|
+
|
|
7
16
|
if [[ "$abcli_is_rpi" == true ]]; then
|
|
8
17
|
bluer_ai_eval dryrun=$do_dryrun \
|
|
9
18
|
rm -rfv $ABCLI_OBJECT_ROOT
|
|
@@ -2,6 +2,7 @@ import glob
|
|
|
2
2
|
import os
|
|
3
3
|
from typing import Tuple, List
|
|
4
4
|
from webdav3.client import Client
|
|
5
|
+
from tqdm import tqdm
|
|
5
6
|
|
|
6
7
|
from bluer_objects.storage.base import StorageInterface
|
|
7
8
|
from bluer_objects import env, file, path
|
|
@@ -25,13 +26,50 @@ class WebDAVzipInterface(StorageInterface):
|
|
|
25
26
|
|
|
26
27
|
self.client = Client(config)
|
|
27
28
|
|
|
29
|
+
def clear(
|
|
30
|
+
self,
|
|
31
|
+
do_dryrun: bool = True,
|
|
32
|
+
) -> bool:
|
|
33
|
+
logger.info(
|
|
34
|
+
"{}.clear({})".format(
|
|
35
|
+
self.__class__.__name__,
|
|
36
|
+
"dryrun" if do_dryrun else "",
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
count: int = 0
|
|
41
|
+
for thing in tqdm(self.client.list()):
|
|
42
|
+
if not thing.endswith(".zip"):
|
|
43
|
+
continue
|
|
44
|
+
if not thing.startswith("test"):
|
|
45
|
+
continue
|
|
46
|
+
|
|
47
|
+
logger.info(thing)
|
|
48
|
+
if do_dryrun:
|
|
49
|
+
continue
|
|
50
|
+
|
|
51
|
+
try:
|
|
52
|
+
self.client.clean(remote_path=thing)
|
|
53
|
+
except Exception as e:
|
|
54
|
+
logger.error(e)
|
|
55
|
+
return False
|
|
56
|
+
|
|
57
|
+
count += 1
|
|
58
|
+
|
|
59
|
+
logger.info(f"deleted {count} object(s).")
|
|
60
|
+
|
|
61
|
+
return True
|
|
62
|
+
|
|
28
63
|
def download(
|
|
29
64
|
self,
|
|
30
65
|
object_name: str,
|
|
31
66
|
filename: str = "",
|
|
32
67
|
log: bool = True,
|
|
33
68
|
) -> bool:
|
|
34
|
-
object_path = objects.object_path(
|
|
69
|
+
object_path = objects.object_path(
|
|
70
|
+
object_name=object_name,
|
|
71
|
+
create=True,
|
|
72
|
+
)
|
|
35
73
|
zip_filename = f"{object_path}.zip"
|
|
36
74
|
|
|
37
75
|
try:
|
|
@@ -13,7 +13,7 @@ parser = argparse.ArgumentParser(NAME)
|
|
|
13
13
|
parser.add_argument(
|
|
14
14
|
"task",
|
|
15
15
|
type=str,
|
|
16
|
-
help="download | ls | upload",
|
|
16
|
+
help="clear | download | ls | upload",
|
|
17
17
|
)
|
|
18
18
|
parser.add_argument(
|
|
19
19
|
"--object_name",
|
|
@@ -41,12 +41,22 @@ parser.add_argument(
|
|
|
41
41
|
type=str,
|
|
42
42
|
default=",",
|
|
43
43
|
)
|
|
44
|
+
parser.add_argument(
|
|
45
|
+
"--do_dryrun",
|
|
46
|
+
type=int,
|
|
47
|
+
default=1,
|
|
48
|
+
help="0 | 1",
|
|
49
|
+
)
|
|
44
50
|
args = parser.parse_args()
|
|
45
51
|
|
|
46
52
|
delim = " " if args.delim == "space" else args.delim
|
|
47
53
|
|
|
48
54
|
success = False
|
|
49
|
-
if args.task == "
|
|
55
|
+
if args.task == "clear":
|
|
56
|
+
success = storage.clear(
|
|
57
|
+
do_dryrun=args.do_dryrun == 1,
|
|
58
|
+
)
|
|
59
|
+
elif args.task == "download":
|
|
50
60
|
success = storage.download(
|
|
51
61
|
object_name=args.object_name,
|
|
52
62
|
filename=args.filename,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.103.1
|
|
4
4
|
Summary: 🌀 Object management in Bash.
|
|
5
5
|
Home-page: https://github.com/kamangir/bluer-objects
|
|
6
6
|
Author: Arash Abadpour (Kamangir)
|
|
@@ -63,6 +63,6 @@ pip install bluer-objects
|
|
|
63
63
|
|
|
64
64
|
[](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)
|
|
65
65
|
|
|
66
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
66
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.103.1`](https://github.com/kamangir/bluer-objects).
|
|
67
67
|
|
|
68
68
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/mlflow/list_registered_models.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/.abcli/storage/download_file.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluer_objects-6.98.1 → bluer_objects-6.103.1}/bluer_objects/tests/test_graphics_signature.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|