Skip to content

Conversation

hrodmn
Copy link
Contributor

@hrodmn hrodmn commented Jul 16, 2025

I have been wanting to try this out for a while! The goal is to create a legit collection-search-only STAC API that hits the /collections endpoint on multiple APIs and returns the concatenated results. It's not very safe yet (still need to add a check that the collection-search and free-text extensions are enabled) but it works!

TODO:

  • add tests
  • add docker-compose.yml with stac-browser

ref: developmentseed/federated-collection-discovery#102

@hrodmn hrodmn requested a review from gadomski July 16, 2025 02:07
Copy link

@gadomski gadomski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes a ton of sense to me, and gets us closer to the "One STAC to rule them all."

I'm wondering if we even need to pre-configure the child APIs? Could we allow request.app.state.settings.child_api_urls to be overriden by the request?


async def fetch_api_data(
client, api: str, url: str
) -> Tuple[str, Dict[str, Any]]:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: we can just use tuple and dict as of Python 3.10.

Suggested change
) -> Tuple[str, Dict[str, Any]]:
) -> tuple[str, dict[str, Any]]:

@hrodmn hrodmn self-assigned this Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants