Skip to content

Commit

Permalink
blue_geo-4.122.1 build - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Jul 22, 2024
1 parent 07c8cea commit 5f6ecf8
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 15 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@ AI for precise geospatial data analysis and visualization.
pip install blue-geo
```

🔹 🧊 [datacube](https://github.com/kamangir/blue-geo/tree/main/blue_geo/.abcli/datacube) 🔹

| | | |
|-|-|-|
| 🌐 [QGIS](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/QGIS/README.md) | 🇺🇦 [ukraine-timemap](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/ukraine-timemap/README.md) | 🌈 [vancouver-watching](https://github.com/kamangir/Vancouver-Watching) |
| [![image](https://raw.githubusercontent.com/kamangir/assets/main/blue-geo/QGIS.jpg)](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/QGIS/README.md) | [![image](https://github.com/kamangir/assets/blob/main/nbs/ukraine-timemap/QGIS.png?raw=true)](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/ukraine-timemap/README.md) | [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/test_vancouver_watching_ingest/animation.gif?raw=true)](https://github.com/kamangir/Vancouver-Watching) |
| an AI terraform for [QGIS](https://www.qgis.org/). | `ingest` for the [Bellingcat](https://www.bellingcat.com/) [Civilian Harm in Ukraine TimeMap](https://github.com/bellingcat/ukraine-timemap) dataset, available through [this UI](https://ukraine.bellingcat.com/) and [this API](https://bellingcat-embeds.ams3.cdn.digitaloceanspaces.com/production/ukr/timemap/api.json). | 🌈 Vancouver watching with AI, last build: [🔗](https://kamangir-public.s3.ca-central-1.amazonaws.com/test_vancouver_watching_ingest/animation.gif). | |
| | | |
| 🌐 [firms](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/datacube/firms/README.md) | | |
| [![image](https://raw.githubusercontent.com/kamangir/assets/main/blue-geo/firms.jpg)](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/datacube/firms/README.md) | | |
| `ingest` for [FIRMS](https://firms.modaps.eosdis.nasa.gov): Fire Information for Resource Management System. | | |
| | | |
| --- | --- | --- |
| 🌐[`QGIS`](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/QGIS/README.md) [![image](https://raw.githubusercontent.com/kamangir/assets/main/blue-geo/QGIS.jpg)](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/QGIS/README.md) an AI terraform for [QGIS](https://www.qgis.org/). | 🧊[`datacube`](https://github.com/kamangir/blue-geo/tree/main/blue_geo/.abcli/datacube) [![image](https://github.com/kamangir/assets/blob/main/blue-geo/datacube.png?raw=true)](https://github.com/kamangir/blue-geo/tree/main/blue_geo/.abcli/datacube) a datacube for geospatial AI | 🌐[`firms-area`](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/datacube/firms/README.md) [![image](https://raw.githubusercontent.com/kamangir/assets/main/blue-geo/datacube-firms_area.jpg)](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/datacube/firms/README.md) Fire Information for Resource Management System ([FIRMS](https://firms.modaps.eosdis.nasa.gov)) datacubes. |
| 🇺🇦[`ukraine-timemap`](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/ukraine-timemap/README.md) [![image](https://github.com/kamangir/assets/blob/main/nbs/ukraine-timemap/QGIS.png?raw=true)](https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/ukraine-timemap/README.md) `ingest` for the [Bellingcat](https://www.bellingcat.com/) [Civilian Harm in Ukraine TimeMap](https://github.com/bellingcat/ukraine-timemap) dataset, available through [this UI](https://ukraine.bellingcat.com/) and [this API](https://bellingcat-embeds.ams3.cdn.digitaloceanspaces.com/production/ukr/timemap/api.json). | 🌈[`vancouver-watching`](https://github.com/kamangir/Vancouver-Watching) [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/test_vancouver_watching_ingest/animation.gif?raw=true)](https://github.com/kamangir/Vancouver-Watching) 🌈 Vancouver watching with AI, last build: [🔗](https://kamangir-public.s3.ca-central-1.amazonaws.com/test_vancouver_watching_ingest/animation.gif). | |

---

Expand All @@ -27,3 +20,6 @@ pip install blue-geo
---

To use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-name>` with the name of the plugin and follow [these instructions](https://github.com/kamangir/notebooks-and-scripts/blob/main/SageMaker.md).

---
built by [`abcli-9.182.1-markdown-2024-07-21-a`](https://github.com/kamangir/awesome-bash-cli), based on [`blue_geo-4.122.1`](https://github.com/kamangir/blue_plugin).
88 changes: 88 additions & 0 deletions blue_geo/README.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
import os
import abcli
from abcli import file
from abcli.file.functions import build_from_template
from abcli.plugins import markdown
from blue_geo import NAME, VERSION, ICON
from blue_geo.logger import logger

features = {
"QGIS": {
"description": "an AI terraform for [QGIS](https://www.qgis.org/).",
"icon": "🌐",
"thumbnail": "https://raw.githubusercontent.com/kamangir/assets/main/blue-geo/QGIS.jpg",
"url": "https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/QGIS/README.md",
},
"datacube": {
"description": "a datacube for geospatial AI",
"icon": "🧊",
"thumbnail": "https://github.com/kamangir/assets/blob/main/blue-geo/datacube.png?raw=true",
"url": "https://github.com/kamangir/blue-geo/tree/main/blue_geo/.abcli/datacube",
},
"firms-area": {
"description": "Fire Information for Resource Management System ([FIRMS](https://firms.modaps.eosdis.nasa.gov)) datacubes.",
"icon": "🌐",
"thumbnail": "https://raw.githubusercontent.com/kamangir/assets/main/blue-geo/datacube-firms_area.jpg",
"url": "https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/datacube/firms/README.md",
},
"ukraine-timemap": {
"description": "`ingest` for the [Bellingcat](https://www.bellingcat.com/) [Civilian Harm in Ukraine TimeMap](https://github.com/bellingcat/ukraine-timemap) dataset, available through [this UI](https://ukraine.bellingcat.com/) and [this API](https://bellingcat-embeds.ams3.cdn.digitaloceanspaces.com/production/ukr/timemap/api.json).",
"icon": "🇺🇦",
"thumbnail": "https://github.com/kamangir/assets/blob/main/nbs/ukraine-timemap/QGIS.png?raw=true",
"url": "https://github.com/kamangir/blue-geo/blob/main/blue_geo/.abcli/ukraine-timemap/README.md",
},
"vancouver-watching": {
"description": "🌈 Vancouver watching with AI, last build: [🔗](https://kamangir-public.s3.ca-central-1.amazonaws.com/test_vancouver_watching_ingest/animation.gif).",
"icon": "🌈",
"thumbnail": "https://kamangir-public.s3.ca-central-1.amazonaws.com/test_vancouver_watching_ingest/animation.gif?raw=true",
"url": "https://github.com/kamangir/Vancouver-Watching",
},
"template": {
"description": "",
"icon": "",
"thumbnail": "",
"url": "",
},
}


def build(filename: str = ""):
if not filename:
filename = os.path.join(file.path(__file__), "../README.md")

logger.info(f"{NAME}.build: {filename}")

items = [
"{}[`{}`]({}) [![image]({})]({}) {}".format(
details["icon"],
feature,
details["url"],
details["thumbnail"],
details["url"],
details["description"],
)
for feature, details in features.items()
if feature != "template"
]

table = markdown.generate_table(items)

signature = [
"---",
"built by [`{}`]({}), based on [`{}-{}`]({}).".format(
abcli.fullname(),
"https://github.com/kamangir/awesome-bash-cli",
NAME,
VERSION,
"https://github.com/kamangir/blue_plugin",
),
]

return file.build_from_template(
os.path.join(file.path(__file__), "./assets/README.md"),
{
"--table--": table,
"--signature": signature,
},
filename,
)
2 changes: 1 addition & 1 deletion blue_geo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DESCRIPTION = f"{ICON} AI for precise geospatial data analysis and visualization."

VERSION = "4.122.1"
VERSION = "4.123.1"

REPO_NAME = "blue-geo"

Expand Down
14 changes: 11 additions & 3 deletions blue_geo/__main__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
from blue_geo import NAME, VERSION, DESCRIPTION, ICON
from blue_geo.logger import logger
from blue_geo import README
from blueness.argparse.generic import main

success, message = main(__file__, NAME, VERSION, DESCRIPTION, ICON)
success, message = main(
__file__,
NAME,
VERSION,
DESCRIPTION,
ICON,
{
"build_README": lambda _: README.build(),
},
)
if not success:
logger.error(message)


21 changes: 21 additions & 0 deletions blue_geo/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 🌐 Blue-GEO

AI for precise geospatial data analysis and visualization.

```bash
pip install blue-geo
```

--table--

---

[![PyPI version](https://img.shields.io/pypi/v/blue-geo.svg)](https://pypi.org/project/blue-geo/)

📜 [metadata](./metadata.yaml)

---

To use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-name>` with the name of the plugin and follow [these instructions](https://github.com/kamangir/notebooks-and-scripts/blob/main/SageMaker.md).

--signature--

0 comments on commit 5f6ecf8

Please sign in to comment.