pystac.provider#
- class pystac.provider.Provider(name: str, description: Optional[str] = None, roles: Optional[List[pystac.provider.ProviderRole]] = None, url: Optional[str] = None, extra_fields: Optional[Dict[str, Any]] = None)[source]
Provides information about a provider of STAC data. A provider is any of the organizations that captured or processed the content of the collection and therefore influenced the data offered by this collection. May also include information about the final storage provider hosting the data.
- Parameters
name – The name of the organization or the individual.
description – Optional multi-line description to add further provider information such as processing details for processors and producers, hosting details for hosts or basic contact information.
roles – Optional roles of the provider. Any of licensor, producer, processor or host.
url – Optional homepage on which the provider describes the dataset and publishes contact information.
extra_fields – Optional dictionary containing additional top-level fields defined on the Provider object.
- description: Optional[str]
Optional multi-line description to add further provider information such as processing details for processors and producers, hosting details for hosts or basic contact information.
- extra_fields: Dict[str, Any]
Dictionary containing additional top-level fields defined on the Provider object.
- static from_dict(d: Dict[str, Any]) pystac.provider.Provider [source]
Constructs an Provider from a dict.
- Returns
The Provider deserialized from the JSON dict.
- Return type
- name: str
The name of the organization or the individual.
- roles: Optional[List[pystac.provider.ProviderRole]]
Optional roles of the provider. Any of licensor, producer, processor or host.
- to_dict() Dict[str, Any] [source]
Generate a dictionary representing the JSON of this Provider.
- Returns
A serialization of the Provider that can be written out as JSON.
- Return type
- url: Optional[str]
Optional homepage on which the provider describes the dataset and publishes contact information.
- class pystac.provider.ProviderRole(value)[source]
Enumerates the allows values of the Provider “role” field.
- HOST = 'host'
- LICENSOR = 'licensor'
- PROCESSOR = 'processor'
- PRODUCER = 'producer'