blue-sandbox 5.38.1__tar.gz → 5.47.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {blue_sandbox-5.38.1/blue_sandbox.egg-info → blue_sandbox-5.47.1}/PKG-INFO +2 -2
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/README.md +1 -1
- blue_sandbox-5.47.1/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh +21 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest.sh +11 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/tests/help.sh +1 -0
- blue_sandbox-5.47.1/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh +19 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/__init__.py +1 -1
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1/blue_sandbox.egg-info}/PKG-INFO +2 -2
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox.egg-info/SOURCES.txt +2 -1
- blue_sandbox-5.38.1/blue_sandbox/help/microsoft_building_damage_assessment.py +0 -42
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/LICENSE +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/MANIFEST.in +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/abcli.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/actions.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/aka.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/alias.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/blue_sandbox.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/browse.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/install.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/microsoft_building_damage_assessment.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/tests/README.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/.abcli/tests/version.sh +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/README.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/__main__.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/config.env +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/env.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/functions.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/help/__init__.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/help/__main__.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/help/functions.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/host.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/logger.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/microsoft_building_damage_assessment/README.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/microsoft_building_damage_assessment/__init__.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/microsoft_building_damage_assessment/__main__.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/microsoft_building_damage_assessment/ingest.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/sample.env +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox/urls.py +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox.egg-info/dependency_links.txt +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox.egg-info/requires.txt +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/blue_sandbox.egg-info/top_level.txt +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/pyproject.toml +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/requirements.txt +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/setup.cfg +0 -0
- {blue_sandbox-5.38.1 → blue_sandbox-5.47.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_sandbox
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.47.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)
|
@@ -54,4 +54,4 @@ pip install blue-sandbox
|
|
54
54
|
|
55
55
|
[![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)
|
56
56
|
|
57
|
-
built by 🌀 [`blue_options-4.177.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.
|
57
|
+
built by 🌀 [`blue_options-4.177.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.47.1`](https://github.com/kamangir/blue-sandbox).
|
@@ -15,4 +15,4 @@ pip install blue-sandbox
|
|
15
15
|
|
16
16
|
[![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)
|
17
17
|
|
18
|
-
built by 🌀 [`blue_options-4.177.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.
|
18
|
+
built by 🌀 [`blue_options-4.177.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.47.1`](https://github.com/kamangir/blue-sandbox).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#! /usr/bin/env bash
|
2
|
+
|
3
|
+
function blue_sandbox_microsoft_building_damage_assessment_ingest_list() {
|
4
|
+
local options=$1
|
5
|
+
local event_name=$(abcli_option "$options" event all)
|
6
|
+
|
7
|
+
local suffix=$2
|
8
|
+
|
9
|
+
local url="s3://maxar-opendata/events/"
|
10
|
+
|
11
|
+
[[ "$event_name" != all ]] &&
|
12
|
+
url="$url$event_name/ard/"
|
13
|
+
|
14
|
+
[[ ! -z "$suffix" ]] &&
|
15
|
+
url="$url$suffix"
|
16
|
+
|
17
|
+
abcli_eval ,$options \
|
18
|
+
aws s3 ls --no-sign-request $url
|
19
|
+
|
20
|
+
return 0
|
21
|
+
}
|
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
function blue_sandbox_microsoft_building_damage_assessment_ingest() {
|
4
4
|
local options=$1
|
5
|
+
|
6
|
+
local show_list=$(abcli_option_int "$options" list 0)
|
7
|
+
if [[ "$show_list" == 1 ]]; then
|
8
|
+
blue_sandbox_microsoft_building_damage_assessment_ingest_list "${@:2}"
|
9
|
+
return
|
10
|
+
fi
|
11
|
+
|
5
12
|
local do_dryrun=$(abcli_option_int "$options" dryrun 0)
|
6
13
|
local do_download=$(abcli_option_int "$options" download $(abcli_not $do_dryrun))
|
7
14
|
local do_gdal=$(abcli_option_int "$options" gdal 1)
|
@@ -23,6 +30,8 @@ function blue_sandbox_microsoft_building_damage_assessment_ingest() {
|
|
23
30
|
cd data/demo/raw/
|
24
31
|
|
25
32
|
if [[ "$do_download" == 1 ]]; then
|
33
|
+
# TODO: use $event_name and $count (options +=)
|
34
|
+
|
26
35
|
abcli_eval ,$options \
|
27
36
|
wget https://maxar-opendata.s3.amazonaws.com/events/Maui-Hawaii-fires-Aug-23/ard/04/122000330002/2023-08-12/10300100EB15FF00-visual.tif
|
28
37
|
[[ $? -ne 0 ]] && return 1
|
@@ -65,3 +74,5 @@ function blue_sandbox_microsoft_building_damage_assessment_ingest() {
|
|
65
74
|
|
66
75
|
return $status
|
67
76
|
}
|
77
|
+
|
78
|
+
abcli_source_caller_suffix_path /ingest
|
blue_sandbox-5.47.1/blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#! /usr/bin/env bash
|
2
|
+
|
3
|
+
function test_blue_sandbox_microsoft_building_damage_assessment_ingest_list() {
|
4
|
+
local options=$1
|
5
|
+
|
6
|
+
abcli_eval ,$options \
|
7
|
+
blue_sandbox_microsoft_building_damage_assessment_ingest list
|
8
|
+
[[ $? -ne 0 ]] && return 1
|
9
|
+
|
10
|
+
abcli_eval ,$options \
|
11
|
+
blue_sandbox_microsoft_building_damage_assessment_ingest list \
|
12
|
+
event=Maui-Hawaii-fires-Aug-23
|
13
|
+
[[ $? -ne 0 ]] && return 1
|
14
|
+
|
15
|
+
abcli_eval ,$options \
|
16
|
+
blue_sandbox_microsoft_building_damage_assessment_ingest list \
|
17
|
+
event=Maui-Hawaii-fires-Aug-23 \
|
18
|
+
04/
|
19
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: blue_sandbox
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.47.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)
|
@@ -54,4 +54,4 @@ pip install blue-sandbox
|
|
54
54
|
|
55
55
|
[![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)
|
56
56
|
|
57
|
-
built by 🌀 [`blue_options-4.177.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.
|
57
|
+
built by 🌀 [`blue_options-4.177.1`](https://github.com/kamangir/awesome-bash-cli), based on 🌀 [`blue_sandbox-5.47.1`](https://github.com/kamangir/blue-sandbox).
|
@@ -28,14 +28,15 @@ blue_sandbox/.abcli/browse.sh
|
|
28
28
|
blue_sandbox/.abcli/install.sh
|
29
29
|
blue_sandbox/.abcli/microsoft_building_damage_assessment.sh
|
30
30
|
blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest.sh
|
31
|
+
blue_sandbox/.abcli/microsoft_building_damage_assessment/ingest/list.sh
|
31
32
|
blue_sandbox/.abcli/tests/README.sh
|
32
33
|
blue_sandbox/.abcli/tests/help.sh
|
33
34
|
blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest.sh
|
35
|
+
blue_sandbox/.abcli/tests/microsoft_building_damage_assessment_ingest_list.sh
|
34
36
|
blue_sandbox/.abcli/tests/version.sh
|
35
37
|
blue_sandbox/help/__init__.py
|
36
38
|
blue_sandbox/help/__main__.py
|
37
39
|
blue_sandbox/help/functions.py
|
38
|
-
blue_sandbox/help/microsoft_building_damage_assessment.py
|
39
40
|
blue_sandbox/microsoft_building_damage_assessment/README.py
|
40
41
|
blue_sandbox/microsoft_building_damage_assessment/__init__.py
|
41
42
|
blue_sandbox/microsoft_building_damage_assessment/__main__.py
|
@@ -1,42 +0,0 @@
|
|
1
|
-
from typing import List
|
2
|
-
|
3
|
-
from blue_options.terminal import show_usage, xtra
|
4
|
-
|
5
|
-
list_of_events = ["Maui-Hawaii-fires-Aug-23"]
|
6
|
-
|
7
|
-
|
8
|
-
def help_ingest(
|
9
|
-
tokens: List[str],
|
10
|
-
mono: bool,
|
11
|
-
) -> str:
|
12
|
-
options = "".join(
|
13
|
-
[
|
14
|
-
xtra("~download,dryrun,", mono=mono),
|
15
|
-
"event=<event>",
|
16
|
-
xtra(",~gdal,~rm,~upload", mono=mono),
|
17
|
-
]
|
18
|
-
)
|
19
|
-
|
20
|
-
args = [
|
21
|
-
"[--verbose 1]",
|
22
|
-
]
|
23
|
-
|
24
|
-
return show_usage(
|
25
|
-
[
|
26
|
-
"@damage",
|
27
|
-
"ingest",
|
28
|
-
f"[{options}]",
|
29
|
-
"[-|<object-name>]",
|
30
|
-
]
|
31
|
-
+ args,
|
32
|
-
"ingest <event> -> <object-name>.",
|
33
|
-
{
|
34
|
-
"event: {}".format(" | ".join(list_of_events)): [],
|
35
|
-
},
|
36
|
-
mono=mono,
|
37
|
-
)
|
38
|
-
|
39
|
-
|
40
|
-
help_functions = {
|
41
|
-
"ingest": help_ingest,
|
42
|
-
}
|
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
|