Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM alpine/git as git
WORKDIR /app
COPY .git /app/.git
RUN git describe --tags --always --dirty 2>/dev/null > /version || echo "0.1.0" > /version
RUN git describe --tags --always 2>/dev/null > /version || echo "0.1.0" > /version

FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim

Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ readme = "README.md"
authors = [
{ name = "hrodmn", email = "henry@developmentseed.org" }
]
requires-python = ">=3.13"
requires-python = ">=3.12"
dependencies = [
"httpx>=0.28.1",
"stac-fastapi-api>=6.0.0,<7.0",
Expand All @@ -20,6 +20,9 @@ server = [
"gunicorn>=23.0.0",
"uvicorn>=0.35.0",
]
lambda = [
"mangum>=0.19.0",
]

[build-system]
requires = ["pdm-backend"]
Expand Down Expand Up @@ -51,7 +54,6 @@ docs = [

[tool.pdm.version]
source = "scm"
fallback_version = "0.1.0"

[tool.mypy]
ignore_missing_imports = true
Expand Down
15 changes: 15 additions & 0 deletions src/stac_fastapi/collection_discovery/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
DESCRIPTION = f"""A collection-search-only STAC API that combines paginated search results
from multiple upstream STAC APIs.

**User Guide:** <https://developmentseed.org/stac-fastapi-collection-discovery/v{__version__}/>

## API Configuration

This API has been pre-configured to search this set of upstream STAC APIs by default:
Expand Down Expand Up @@ -277,3 +279,16 @@ def format_multiline_string(string: str) -> str:
)

app = api.app


def create_handler(app):
"""Create a handler to use with AWS Lambda if mangum available."""
try:
from mangum import Mangum

return Mangum(app)
except ImportError:
return None


handler = create_handler(app)
Loading