stac-utils / stac-utils/rustac-py
Add collection search
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 54
- Forks
- 5
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
Discussed in https://github.com/stac-utils/rustac-py/discussions/213
Originally posted by scottyhq January 5, 2026
For APIs with a lot of STAC collections, you might not know your desired collection ID in advance. pystac_client has a get_collections() function to facilitate this kind of workflow.
I'm increasingly using rustac to search, but find myself using pystac_client only to quickly discover collection IDs and metadata. I'm wondering if such a function could be added to the API here? For example a replacement for this bit of code to iterate over pages of collections:
catalog = pystac_client.Client.open("https://cmr.earthdata.nasa.gov/stac/ASF")
collections = list(catalog.get_collections())
print(f"Found {len(collections)} collections")
# Found 153 collections
df_collections = pd.DataFrame([x.to_dict() for x in collections])
df_collections.head()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing rustac-py client API and compare the requested behavior with pystac_client.Client.get_collections(), especially its paginated collection iteration. Define how the new function exposes collection metadata and when iteration is complete; the example using Client.open() and the expected count of 153 collections provide the acceptance target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100