Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 05a24da

Browse files
authored
chore: update deps and docs (#81)
1 parent 0a45629 commit 05a24da

File tree

5 files changed

+35
-29
lines changed

5 files changed

+35
-29
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/developmentseed/labs-375-stac-geoparquet-backend/ci.yml?style=for-the-badge)](https://github.com/developmentseed/labs-375-stac-geoparquet-backend/actions/workflows/ci.yml)
44

55
We've built a [service](https://github.com/stac-utils/stac-fastapi-geoparquet) to search [stac-geoparquet](https://github.com/stac-utils/stac-geoparquet) with a STAC API [query](https://api.stacspec.org/v1.0.0/item-search/).
6+
A development version is available at <https://stac-geoparquet.labs.eoapi.dev/>.
7+
8+
@gadomski presented on this lab at the [2025 Cloud-Native Geospatial Conference](https://conference.cloudnativegeo.org/CNGConference2025).
9+
His slides are [here](https://www.gadom.ski/presentations/2025-04-30-CNG.html).
10+
11+
> [!WARNING]
12+
> This project was a science experiment, and will not be actively maintained after April 2025.
13+
> These instructions and code will bitrot and fall out-of-date.
14+
> We preserve them in case they're useful to future adventurers.
615
716
## Usage
817

docs/katas/0_full_scan.ipynb

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@
2424
"source": [
2525
"from pystac_client import Client\n",
2626
"\n",
27-
"from labs_375 import STAC_FASTAPI_GEOPARQUET_URI, Timer, STAC_FASTAPI_PGSTAC_URI, NAIP_GEOPARQUET_URI"
27+
"from labs_375 import (\n",
28+
" NAIP_GEOPARQUET_URI,\n",
29+
" STAC_FASTAPI_GEOPARQUET_URI,\n",
30+
" STAC_FASTAPI_PGSTAC_URI,\n",
31+
" Timer,\n",
32+
")"
2833
]
2934
},
3035
{
@@ -176,8 +181,6 @@
176181
"source": [
177182
"from rustac import DuckdbClient\n",
178183
"\n",
179-
"from labs_375 import NAIP_GEOPARQUET_URI\n",
180-
"\n",
181184
"client = DuckdbClient()\n",
182185
"client.execute(\"CREATE SECRET (TYPE S3, PROVIDER CREDENTIAL_CHAIN)\")\n",
183186
"with Timer() as timer:\n",
@@ -214,8 +217,6 @@
214217
}
215218
],
216219
"source": [
217-
"from labs_375 import STAC_FASTAPI_PGSTAC_URI\n",
218-
"\n",
219220
"client = Client.open(STAC_FASTAPI_PGSTAC_URI)\n",
220221
"\n",
221222
"with Timer() as timer:\n",
@@ -1347,9 +1348,7 @@
13471348
" pgstac_results.append(timer.report(items))\n",
13481349
"\n",
13491350
"with Timer() as timer:\n",
1350-
" items = duckdb_client.search(\n",
1351-
" NAIP_GEOPARQUET_URI, max_items=2000, limit=2000\n",
1352-
" )\n",
1351+
" items = duckdb_client.search(NAIP_GEOPARQUET_URI, max_items=2000, limit=2000)\n",
13531352
" duckdb_results.append(timer.report(items))\n",
13541353
"with Timer() as timer:\n",
13551354
" items = duckdb_client.search(\n",
@@ -1678,8 +1677,8 @@
16781677
}
16791678
],
16801679
"source": [
1681-
"from matplotlib import pyplot\n",
16821680
"import numpy\n",
1681+
"from matplotlib import pyplot\n",
16831682
"\n",
16841683
"x = numpy.arange(2)\n",
16851684
"width = 0.25\n",

docs/katas/1_needle_heystack.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
" items = list(\n",
5252
" pgstac_client.search(collections=[\"naip\"], intersects=LONGMONT).items_as_dicts()\n",
5353
" )\n",
54-
" pgstac_results.append(timer.report(items))\n"
54+
" pgstac_results.append(timer.report(items))"
5555
]
5656
},
5757
{
@@ -432,8 +432,8 @@
432432
}
433433
],
434434
"source": [
435-
"from matplotlib import pyplot\n",
436435
"import numpy\n",
436+
"from matplotlib import pyplot\n",
437437
"\n",
438438
"x = numpy.arange(2)\n",
439439
"width = 0.25\n",

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description = "Test the performance of stac-fastapi-geoparquet"
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8-
"stac-fastapi-geoparquet",
9-
"rustac",
8+
"stac-fastapi-geoparquet==0.0.2",
9+
"rustac>=0.7.0",
1010
"pypgstac>=0.9.6",
1111
"psycopg[pool]>=3.2.6",
1212
]
@@ -42,7 +42,6 @@ katas = [
4242
"planetary-computer>=1.0.0",
4343
"pyarrow>=20.0.0",
4444
"pystac-client>=0.8.5",
45-
"rustac==0.7.0b6",
4645
"tqdm>=4.67.1",
4746
]
4847

@@ -58,9 +57,6 @@ ignore_missing_imports = true
5857
[tool.ruff.lint]
5958
select = ["E", "F", "I"]
6059

61-
[tool.uv.sources]
62-
stac-fastapi-geoparquet = { git = "https://github.com/stac-utils/stac-fastapi-geoparquet", rev = "3fe12e85b11fc6de16d601a1e5f29a8b2159e9ea" }
63-
6460
[build-system]
6561
requires = ["setuptools"]
6662
build-backend = "setuptools.build_meta"

uv.lock

Lines changed: 14 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)