scrappi.product

scrappi.product#

Product item and product set utilities.

This module defines ProductItem and ProductItemSet, the canonical in- memory representations of catalogue search results in scrappi. A ProductItem encapsulates spatial/temporal metadata, asset hrefs and provider-specific metadata. ProductItemSet is a light-weight container with helpers for filtering, sorting and STAC materialisation.

Functions

from_stac(cls, item_or_path[, context])

Construct a ProductItem from a STAC Item or file.

open_product_item(path[, filesystem, api])

Returns ProductItem object from JSON file

open_product_item_set(path[, filesystem, api])

Returns ProductItemSet object from JSON file

product_item_from_dict(product_item_dict[, ...])

Returns ProductItem object from defining dictionary

product_item_from_stac(item_or_path[, context])

Create a ProductItem from a STAC Item or from a path to an Item JSON file.

product_item_set_from_dict(product_item_set_dict)

Returns ProductItemSet object from defining dictionary

Classes

ProductItem(constellation, platform, ...[, ...])

Object representing a product item in a data catalogue

ProductItemSet([products])

Container for a set of ProductItem