Skip to content
Discussion options

You must be logged in to vote

@scottyhq for the first one (walking all items) try https://pypi.org/project/stacrs/0.5.9b0/ (python -m pip install --pre --upgrade stacrs). Iterating all items would look like:

catalog = await stacrs.read("https://stacrs.test/catalog.json")
all_items = []
async for _, _, items in stacrs.walk(catalog):
    all_items.extend(items)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gadomski
Comment options

Answer selected by scottyhq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants