bluer-objects 6.151.1__tar.gz → 6.155.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.151.1/bluer_objects.egg-info → bluer_objects-6.155.1}/PKG-INFO +2 -2
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/README.md +1 -1
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/__init__.py +1 -1
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/env.py +1 -0
- bluer_objects-6.155.1/bluer_objects/mlflow/logging.py +87 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1/bluer_objects.egg-info}/PKG-INFO +2 -2
- bluer_objects-6.151.1/bluer_objects/mlflow/logging.py +0 -81
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/LICENSE +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/MANIFEST.in +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/abcli.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/actions.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/aka.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/alias.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/bluer_objects.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/clone.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/create_test_asset.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/download.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/file.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/gif.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/host.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/ls.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/metadata/get.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/metadata/post.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/metadata.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/browse.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/cache.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/deploy.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/list_registered_models.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/log_artifacts.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/log_run.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/run.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/tags/clone.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/tags/get.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/tags/search.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/tags/set.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/tags.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/test.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/transition.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/object.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/select.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage/clear.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage/download_file.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage/exists.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage/list.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage/rm.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage/status.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/storage.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/README.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/clone.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/create_test_asset.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/gif.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/help.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/host.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/ls.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/metadata.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/mlflow_cache.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/mlflow_logging.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/mlflow_tags.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/mlflow_test.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/storage.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/version.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/upload.sh +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/README/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/README/functions.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/README/items.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/config.env +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/file/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/file/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/file/classes.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/file/functions.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/file/load.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/file/save.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/frame.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/gif.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/screen.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/signature.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/graphics/text.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/clone.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/create_test_asset.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/download.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/functions.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/gif.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/host.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/ls.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/metadata.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/mlflow/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/mlflow/cache.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/mlflow/tags.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/help/upload.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/host/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/host/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/host/functions.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/logger/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/logger/matrix.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/markdown.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/metadata/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/metadata/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/metadata/enums.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/metadata/get.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/metadata/post.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/cache.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/models.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/objects.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/runs.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/tags.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/mlflow/testing.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/objects.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/path.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/sample.env +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/WebDAV.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/WebDAVrequest.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/WebDAVzip.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/base.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/storage/s3.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/testing/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/testing/__main__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/testing/functions.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/__init__.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_README.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_env.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_file_download.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_file_load_save.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_file_load_save_text.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_fullname.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_graphics.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_graphics_frame.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_graphics_gif.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_graphics_screen.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_graphics_signature.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_graphics_text.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_logger.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_logger_matrix.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_markdown.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_metadata.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_mlflow.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_objects.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_path.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage_base.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage_s3.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage_webdav_request.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage_webdav_zip.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_testing.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_version.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/urls.py +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects.egg-info/SOURCES.txt +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects.egg-info/dependency_links.txt +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects.egg-info/requires.txt +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects.egg-info/top_level.txt +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/pyproject.toml +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/requirements.txt +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.1}/setup.cfg +0 -0
- {bluer_objects-6.151.1 → bluer_objects-6.155.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.155.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
|
[](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)
|
|
66
66
|
|
|
67
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
67
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.155.1`](https://github.com/kamangir/bluer-objects).
|
|
68
68
|
|
|
69
69
|
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.155.1`](https://github.com/kamangir/bluer-objects).
|
|
@@ -52,6 +52,7 @@ if MLFLOW_DEPLOYMENT == "local":
|
|
|
52
52
|
else:
|
|
53
53
|
MLFLOW_TRACKING_URI = MLFLOW_DEPLOYMENT
|
|
54
54
|
os.environ["MLFLOW_TRACKING_URI"] = MLFLOW_TRACKING_URI
|
|
55
|
+
MLFLOW_LOG_ARTIFACTS = "arvan" not in MLFLOW_DEPLOYMENT
|
|
55
56
|
|
|
56
57
|
WEBDAV_HOSTNAME = get_env("WEBDAV_HOSTNAME")
|
|
57
58
|
WEBDAV_LOGIN = get_env("WEBDAV_LOGIN")
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
from typing import Dict
|
|
2
|
+
import os
|
|
3
|
+
import glob
|
|
4
|
+
import mlflow
|
|
5
|
+
|
|
6
|
+
from blueness import module
|
|
7
|
+
from bluer_options.logger import crash_report
|
|
8
|
+
|
|
9
|
+
from bluer_objects import file, objects, NAME, env
|
|
10
|
+
from bluer_objects.mlflow.runs import start_run, end_run
|
|
11
|
+
from bluer_objects.logger import logger
|
|
12
|
+
|
|
13
|
+
NAME = module.name(__file__, NAME)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def log_artifacts(
|
|
17
|
+
object_name: str,
|
|
18
|
+
model_name: str = "",
|
|
19
|
+
) -> bool:
|
|
20
|
+
if not start_run(object_name):
|
|
21
|
+
return False
|
|
22
|
+
|
|
23
|
+
object_path = objects.object_path(object_name, create=True)
|
|
24
|
+
|
|
25
|
+
if env.MLFLOW_LOG_ARTIFACTS:
|
|
26
|
+
try:
|
|
27
|
+
mlflow.log_artifacts(object_path)
|
|
28
|
+
|
|
29
|
+
logger.info("⬆️ {}".format(object_name))
|
|
30
|
+
|
|
31
|
+
# https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.register_model
|
|
32
|
+
# https://stackoverflow.com/a/71447758/17619982
|
|
33
|
+
if model_name:
|
|
34
|
+
mv = mlflow.register_model(
|
|
35
|
+
"runs:/{}".format(mlflow.active_run().info.run_id),
|
|
36
|
+
model_name,
|
|
37
|
+
await_registration_for=0,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
logger.info("*️⃣ {} -> {}.{}".format(object_name, mv.name, mv.version))
|
|
41
|
+
|
|
42
|
+
except:
|
|
43
|
+
crash_report(f"{NAME}.log_artifacts({object_name})")
|
|
44
|
+
return False
|
|
45
|
+
else:
|
|
46
|
+
logger.info("skipped log artifacts.")
|
|
47
|
+
|
|
48
|
+
return end_run(object_name)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def log_run(object_name: str) -> bool:
|
|
52
|
+
if not start_run(object_name):
|
|
53
|
+
return False
|
|
54
|
+
|
|
55
|
+
object_path = objects.object_path(object_name, create=True)
|
|
56
|
+
|
|
57
|
+
if env.MLFLOW_LOG_ARTIFACTS:
|
|
58
|
+
counts: Dict[str, int] = {}
|
|
59
|
+
skipped_count = 0
|
|
60
|
+
for extension in "dot,gif,jpeg,jpg,json,png,sh,xml,yaml".split(","):
|
|
61
|
+
for filename in glob.glob(
|
|
62
|
+
os.path.join(object_path, f"*.{extension}"),
|
|
63
|
+
):
|
|
64
|
+
filename_name = file.name(filename)
|
|
65
|
+
|
|
66
|
+
counts[len(filename_name)] = counts.get(len(filename_name), 0) + 1
|
|
67
|
+
|
|
68
|
+
if any(
|
|
69
|
+
[
|
|
70
|
+
file.size(filename) > 10 * 1024 * 1024,
|
|
71
|
+
filename_name.startswith("thumbnail"),
|
|
72
|
+
counts[len(filename_name)] > 20,
|
|
73
|
+
]
|
|
74
|
+
):
|
|
75
|
+
logger.info(f"skipping {filename}")
|
|
76
|
+
skipped_count += 1
|
|
77
|
+
continue
|
|
78
|
+
|
|
79
|
+
mlflow.log_artifact(filename)
|
|
80
|
+
logger.info(f"⬆️ {filename}")
|
|
81
|
+
|
|
82
|
+
if skipped_count:
|
|
83
|
+
logger.info(f"skipped {skipped_count:,} file(s).")
|
|
84
|
+
else:
|
|
85
|
+
logger.info("skipped log artifacts.")
|
|
86
|
+
|
|
87
|
+
return end_run(object_name)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bluer_objects
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.155.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
|
[](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)
|
|
66
66
|
|
|
67
|
-
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.
|
|
67
|
+
built by 🌀 [`bluer README`](https://github.com/kamangir/bluer-objects/tree/main/bluer_objects/README), based on 🌀 [`bluer_objects-6.155.1`](https://github.com/kamangir/bluer-objects).
|
|
68
68
|
|
|
69
69
|
built by 🌀 [`blueness-3.118.1`](https://github.com/kamangir/blueness).
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
from typing import Dict
|
|
2
|
-
import os
|
|
3
|
-
import glob
|
|
4
|
-
import mlflow
|
|
5
|
-
|
|
6
|
-
from blueness import module
|
|
7
|
-
from bluer_options.logger import crash_report
|
|
8
|
-
|
|
9
|
-
from bluer_objects import file, objects, NAME
|
|
10
|
-
from bluer_objects.mlflow.runs import start_run, end_run
|
|
11
|
-
from bluer_objects.logger import logger
|
|
12
|
-
|
|
13
|
-
NAME = module.name(__file__, NAME)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def log_artifacts(
|
|
17
|
-
object_name: str,
|
|
18
|
-
model_name: str = "",
|
|
19
|
-
) -> bool:
|
|
20
|
-
if not start_run(object_name):
|
|
21
|
-
return False
|
|
22
|
-
|
|
23
|
-
object_path = objects.object_path(object_name, create=True)
|
|
24
|
-
|
|
25
|
-
try:
|
|
26
|
-
mlflow.log_artifacts(object_path)
|
|
27
|
-
|
|
28
|
-
logger.info("⬆️ {}".format(object_name))
|
|
29
|
-
|
|
30
|
-
# https://mlflow.org/docs/latest/python_api/mlflow.html#mlflow.register_model
|
|
31
|
-
# https://stackoverflow.com/a/71447758/17619982
|
|
32
|
-
if model_name:
|
|
33
|
-
mv = mlflow.register_model(
|
|
34
|
-
"runs:/{}".format(mlflow.active_run().info.run_id),
|
|
35
|
-
model_name,
|
|
36
|
-
await_registration_for=0,
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
logger.info("*️⃣ {} -> {}.{}".format(object_name, mv.name, mv.version))
|
|
40
|
-
|
|
41
|
-
except:
|
|
42
|
-
crash_report(f"{NAME}.log_artifacts({object_name})")
|
|
43
|
-
return False
|
|
44
|
-
|
|
45
|
-
return end_run(object_name)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
def log_run(object_name: str) -> bool:
|
|
49
|
-
if not start_run(object_name):
|
|
50
|
-
return False
|
|
51
|
-
|
|
52
|
-
object_path = objects.object_path(object_name, create=True)
|
|
53
|
-
|
|
54
|
-
counts: Dict[str, int] = {}
|
|
55
|
-
skipped_count = 0
|
|
56
|
-
for extension in "dot,gif,jpeg,jpg,json,png,sh,xml,yaml".split(","):
|
|
57
|
-
for filename in glob.glob(
|
|
58
|
-
os.path.join(object_path, f"*.{extension}"),
|
|
59
|
-
):
|
|
60
|
-
filename_name = file.name(filename)
|
|
61
|
-
|
|
62
|
-
counts[len(filename_name)] = counts.get(len(filename_name), 0) + 1
|
|
63
|
-
|
|
64
|
-
if any(
|
|
65
|
-
[
|
|
66
|
-
file.size(filename) > 10 * 1024 * 1024,
|
|
67
|
-
filename_name.startswith("thumbnail"),
|
|
68
|
-
counts[len(filename_name)] > 20,
|
|
69
|
-
]
|
|
70
|
-
):
|
|
71
|
-
logger.info(f"skipping {filename}")
|
|
72
|
-
skipped_count += 1
|
|
73
|
-
continue
|
|
74
|
-
|
|
75
|
-
mlflow.log_artifact(filename)
|
|
76
|
-
logger.info(f"⬆️ {filename}")
|
|
77
|
-
|
|
78
|
-
if skipped_count:
|
|
79
|
-
logger.info(f"skipped {skipped_count:,} file(s).")
|
|
80
|
-
|
|
81
|
-
return end_run(object_name)
|
|
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.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/mlflow/log_artifacts.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.151.1 → bluer_objects-6.155.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
|
{bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/create_test_asset.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/.abcli/tests/mlflow_logging.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
|
{bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_file_load_save_text.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bluer_objects-6.151.1 → bluer_objects-6.155.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
|
{bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage_webdav_request.py
RENAMED
|
File without changes
|
{bluer_objects-6.151.1 → bluer_objects-6.155.1}/bluer_objects/tests/test_storage_webdav_zip.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
|