Skip to main content
`Ctrl`+`K`

# pystac.extensions.item_assets

Implements the Item Assets Definition Extension.

class pystac.extensions.item_assets.AssetDefinition(*args: Any, **kwargs: Any)

  DEPRECATED

  Deprecated since version 1.12.0: Use `ItemAssetDefinition` instead.

class pystac.extensions.item_assets.ItemAssetsExtension(collection: Collection)

  DEPRECATED

  Deprecated since version 1.12.0: Use `item_assets` instead.

  collection: Collection
  classmethod ext(obj: Collection, add_if_missing: bool = False) → ItemAssetsExtension

    Extends the given `Collection` with properties from the Item Assets Extension.

    Raises:

      pystac.ExtensionTypeError – If an invalid object type is passed.

  classmethod get_schema_uri() → str

    Gets the schema URI associated with this extension.

  property item_assets: dict[str, ItemAssetDefinition]

    Gets or sets a dictionary of assets that can be found in member Items. Maps the asset key to an `AssetDefinition` instance.

  name: Literal['item_assets'] = 'item_assets'

class pystac.extensions.item_assets.ItemAssetsExtensionHooks
  migrate(obj: dict[str, Any], version: STACVersionID, info: STACJSONDescription) → None

    Migrate a STAC Object in dict format from a previous version. The base implementation will update the stac_extensions to the latest schema ID. This method will only be called for STAC objects that have been identified as a previous version of STAC. Implementations should directly manipulate the obj dict. Remember to call super() in order to change out the old ‘stac_extension’ entry with the latest schema URI.

  prev_extension_ids = {'asset', 'item-assets'}
  schema_uri: str = 'https://stac-extensions.github.io/item-assets/v1.0.0/schema.json'
  stac_object_types = {'Collection'}