Parse auth and storage STAC extension fields to Obstore

Open
#835 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend, cloud

Research direction

Start with Obstore's existing PlanetaryComputerCredentialProvider.from_asset method, then read the STAC storage and authentication extensions linked in the issue. The issue also points to xpystac and suggests odc-stac or lazycogs as references for mapping asset metadata to storage arguments. Done means providing a reusable mapping from those STAC fields to Obstore objects, though the exact supported fields and API shape still need to be worked out.

Written by the indexing model from the issue text.

Description

It would be useful to build the mapping from STAC storage extension and STAC authentication extension fields to Obstore objects. I think that would be a generally reusable construct. For instance it would be useful in stac-asset and xpystac and I think it'd make it trivial to open STAC assets that point to geoparquet files (not to be confused with stac-geoparquet) as geopandas objects.

It looks like Obstore already has a from_asset class method on the PlanetaryComputerCredentialProvider so maybe the other auth methods could have similar?

What exists in xpystac

xpystac has some ideas about how to store virtual store metadata in STAC and how to translate metadata from STAC auth and STAC storage extensions into the right arguments for xarray to call open_dataset. In xpystac, less work has gone into getting the mapping right for STAC assets that don't point to virtual icechunk, but odc-stac or lazycogs might have some relevant code.

Dominant language
Python
Stars
848
Forks
50
Avg merge
7h 58m
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developmentseed/obstore

All issues in developmentseed/obstore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.