blue-sandbox 5.267.1__tar.gz → 5.288.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.
Files changed (73) hide show
  1. {blue_sandbox-5.267.1/blue_sandbox.egg-info → blue_sandbox-5.288.1}/PKG-INFO +2 -2
  2. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/README.md +1 -1
  3. blue_sandbox-5.288.1/blue_sandbox/.abcli/palisades/predict.sh +49 -0
  4. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/palisades_predict.sh +2 -1
  5. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/__init__.py +1 -1
  6. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/help/palisades.py +8 -0
  7. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1/blue_sandbox.egg-info}/PKG-INFO +2 -2
  8. blue_sandbox-5.267.1/blue_sandbox/.abcli/palisades/predict.sh +0 -35
  9. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/LICENSE +0 -0
  10. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/MANIFEST.in +0 -0
  11. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/abcli.sh +0 -0
  12. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/actions.sh +0 -0
  13. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/aka.sh +0 -0
  14. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/alias.sh +0 -0
  15. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/blue_sandbox.sh +0 -0
  16. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/browse.sh +0 -0
  17. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/cemetery/inference/cloudwatch.sh +0 -0
  18. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/cemetery/inference/inference.sh +0 -0
  19. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/install.sh +0 -0
  20. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh +0 -0
  21. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest.sh +0 -0
  22. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/install.sh +0 -0
  23. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/label.sh +0 -0
  24. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/tensorboard.sh +0 -0
  25. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/train.sh +0 -0
  26. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment.sh +0 -0
  27. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/palisades/ingest.sh +0 -0
  28. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/palisades/label.sh +0 -0
  29. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/palisades/train.sh +0 -0
  30. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/palisades.sh +0 -0
  31. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/sagesemseg/cache_dataset.sh +0 -0
  32. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/sagesemseg/consts.sh +0 -0
  33. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/sagesemseg/train.sh +0 -0
  34. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/sagesemseg/upload_dataset.sh +0 -0
  35. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/README.sh +0 -0
  36. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/help.sh +0 -0
  37. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest.sh +0 -0
  38. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh +0 -0
  39. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_label.sh +0 -0
  40. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_train.sh +0 -0
  41. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/palisades_ingest.sh +0 -0
  42. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/palisades_label.sh +0 -0
  43. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/palisades_train.sh +0 -0
  44. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/sagesemseg_train.sh +0 -0
  45. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/.abcli/tests/version.sh +0 -0
  46. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/README.py +0 -0
  47. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/__main__.py +0 -0
  48. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/config.env +0 -0
  49. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/env.py +0 -0
  50. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/functions.py +0 -0
  51. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/help/__init__.py +0 -0
  52. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/help/__main__.py +0 -0
  53. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/help/functions.py +0 -0
  54. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/host.py +0 -0
  55. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/list.py +0 -0
  56. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/logger.py +0 -0
  57. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/README.py +0 -0
  58. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/__init__.py +0 -0
  59. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/__main__.py +0 -0
  60. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/ingest.py +0 -0
  61. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/label.py +0 -0
  62. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/sas_token.py +0 -0
  63. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/microsoft_building_damage_assessment/train.py +0 -0
  64. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/sample.env +0 -0
  65. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox/urls.py +0 -0
  66. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox.egg-info/SOURCES.txt +0 -0
  67. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox.egg-info/dependency_links.txt +0 -0
  68. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox.egg-info/requires.txt +0 -0
  69. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/blue_sandbox.egg-info/top_level.txt +0 -0
  70. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/pyproject.toml +0 -0
  71. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/requirements.txt +0 -0
  72. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/setup.cfg +0 -0
  73. {blue_sandbox-5.267.1 → blue_sandbox-5.288.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_sandbox
3
- Version: 5.267.1
3
+ Version: 5.288.1
4
4
  Summary: 🌀 A sandbox for ideas and experiments.
5
5
  Home-page: https://github.com/kamangir/blue-sandbox
6
6
  Author: Arash Abadpour (Kamangir)
@@ -64,4 +64,4 @@ pip install blue-sandbox
64
64
 
65
65
  [![pylint](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-sandbox.svg)](https://pypi.org/project/blue-sandbox/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-sandbox)](https://pypistats.org/packages/blue-sandbox)
66
66
 
67
- built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.267.1`](https://github.com/kamangir/blue-sandbox).
67
+ built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.288.1`](https://github.com/kamangir/blue-sandbox).
@@ -16,4 +16,4 @@ pip install blue-sandbox
16
16
 
17
17
  [![pylint](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-sandbox.svg)](https://pypi.org/project/blue-sandbox/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-sandbox)](https://pypistats.org/packages/blue-sandbox)
18
18
 
19
- built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.267.1`](https://github.com/kamangir/blue-sandbox).
19
+ built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.288.1`](https://github.com/kamangir/blue-sandbox).
@@ -0,0 +1,49 @@
1
+ #! /usr/bin/env bash
2
+
3
+ function blue_sandbox_palisades_predict() {
4
+ local options=$1
5
+ local do_ingest=$(abcli_option_int "$options" ingest 0)
6
+ local do_tag=$(abcli_option_int "$options" tag 1)
7
+
8
+ local predict_options=$2
9
+ $abcli_gpu_status_cache && local device=cuda || local device=cpu
10
+ local device=$(abcli_option "$predict_options" device $device)
11
+ local do_dryrun=$(abcli_option_int "$predict_options" dryrun 0)
12
+ local do_download=$(abcli_option_int "$predict_options" download $(abcli_not $do_dryrun))
13
+ local do_upload=$(abcli_option_int "$predict_options" upload $(abcli_not $do_dryrun))
14
+ local profile=$(abcli_option "$predict_options" profile VALIDATION)
15
+
16
+ local model_object_name=$(abcli_clarify_object $3 ..)
17
+ [[ "$do_download" == 1 ]] &&
18
+ abcli_download - $model_object_name
19
+
20
+ local datacube_id=$(abcli_clarify_object $4 .)
21
+ [[ "$do_ingest" == 1 ]] &&
22
+ blue_geo_datacube_ingest \
23
+ scope=rgb \
24
+ $datacube_id
25
+
26
+ local prediction_object_name=$(abcli_clarify_object $5 predict-$datacube_id-$(abcli_string_timestamp_short))
27
+
28
+ abcli_log "semseg[$model_object_name].predict($datacube_id) -$device-@-$profile-> $prediction_object_name."
29
+
30
+ abcli_eval dryrun=$do_dryrun \
31
+ python3 -m blue_sandbox.palisades predict \
32
+ --device $device \
33
+ --model_object_name $model_object_name \
34
+ --datacube_id $datacube_id \
35
+ --prediction_object_name $prediction_object_name \
36
+ --profile $profile \
37
+ "${@:6}"
38
+ local status="$?"
39
+
40
+ [[ "$do_tag" == 1 ]] &&
41
+ abcli_mlflow_tags_set \
42
+ $prediction_object_name \
43
+ datacube_id=$datacube_id,model=$model_object_name,profile=$profile
44
+
45
+ [[ "$do_upload" == 1 ]] &&
46
+ abcli_upload - $prediction_object_name
47
+
48
+ return $status
49
+ }
@@ -4,7 +4,8 @@ function test_blue_sandbox_palisades_predict() {
4
4
  local options=$1
5
5
 
6
6
  blue_sandbox_palisades_predict \
7
- ,$options \
7
+ ingest,$options \
8
+ - \
8
9
  palisades-dataset-v1-ingest-2025-01-20-520ze1-model-2025-01-20-s5xtkp \
9
10
  datacube-maxar_open_data-WildFires-LosAngeles-Jan-2025-11-031311102213-103001010B9A1B00
10
11
  }
@@ -4,7 +4,7 @@ ICON = "🌀"
4
4
 
5
5
  DESCRIPTION = f"{ICON} A sandbox for ideas and experiments."
6
6
 
7
- VERSION = "5.267.1"
7
+ VERSION = "5.288.1"
8
8
 
9
9
  REPO_NAME = "blue-sandbox"
10
10
 
@@ -75,10 +75,18 @@ def help_predict(
75
75
  tokens: List[str],
76
76
  mono: bool,
77
77
  ) -> str:
78
+ options = "".join(
79
+ [
80
+ "ingest",
81
+ xtra(",~tag", mono=mono),
82
+ ]
83
+ )
84
+
78
85
  return show_usage(
79
86
  [
80
87
  "palisades",
81
88
  "predict",
89
+ f"[{options}]",
82
90
  f"[{predict_options(mono=mono)}]",
83
91
  "[..|<model-object-name>]",
84
92
  "[.|<datacube-id>]",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: blue_sandbox
3
- Version: 5.267.1
3
+ Version: 5.288.1
4
4
  Summary: 🌀 A sandbox for ideas and experiments.
5
5
  Home-page: https://github.com/kamangir/blue-sandbox
6
6
  Author: Arash Abadpour (Kamangir)
@@ -64,4 +64,4 @@ pip install blue-sandbox
64
64
 
65
65
  [![pylint](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/blue-sandbox/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/blue-sandbox.svg)](https://pypi.org/project/blue-sandbox/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/blue-sandbox)](https://pypistats.org/packages/blue-sandbox)
66
66
 
67
- built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.267.1`](https://github.com/kamangir/blue-sandbox).
67
+ built by 🌀 [`blue_options-4.192.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.288.1`](https://github.com/kamangir/blue-sandbox).
@@ -1,35 +0,0 @@
1
- #! /usr/bin/env bash
2
-
3
- function blue_sandbox_palisades_predict() {
4
- local options=$1
5
- $abcli_gpu_status_cache && local device=cuda || local device=cpu
6
- local device=$(abcli_option "$options" device $device)
7
- local do_dryrun=$(abcli_option_int "$options" dryrun 0)
8
- local do_download=$(abcli_option_int "$options" download $(abcli_not $do_dryrun))
9
- local do_upload=$(abcli_option_int "$options" upload $(abcli_not $do_dryrun))
10
-
11
- local model_object_name=$(abcli_clarify_object $2 ..)
12
- [[ "$do_download" == 1 ]] &&
13
- abcli_download - $model_object_name
14
-
15
- local datacube_id=$(abcli_clarify_object $3 .)
16
-
17
- local prediction_object_name=$(abcli_clarify_object $4 predict-$datacube_id-$(abcli_string_timestamp_short))
18
-
19
- abcli_log "semseg[$model_object_name].predict($datacube_id) -$device-> $prediction_object_name."
20
-
21
- abcli_eval dryrun=$do_dryrun \
22
- python3 -m blue_sandbox.palisades predict \
23
- --device $device \
24
- --model_object_name $model_object_name \
25
- --datacube_id $datacube_id \
26
- --prediction_object_name $prediction_object_name \
27
- --profile $(abcli_option "$options" profile VALIDATION) \
28
- "${@:5}"
29
- local status="$?"
30
-
31
- [[ "$do_upload" == 1 ]] &&
32
- abcli_upload - $prediction_object_name
33
-
34
- return $status
35
- }
File without changes
File without changes
File without changes