class pystac.summaries.RangeSummary(minimum: pystac.summaries.T, maximum: pystac.summaries.T)[source]
classmethod from_dict(d: Dict[str, Any]) pystac.summaries.RangeSummary[pystac.summaries.T][source]
maximum: pystac.summaries.T
minimum: pystac.summaries.T
to_dict() Dict[str, Any][source]
update_with_value(v: pystac.summaries.T) None[source]
class pystac.summaries.Summaries(summaries: Dict[str, Any], maxcount: int = 25)[source]
add(prop_key: str, summary: Union[List[Any], pystac.summaries.RangeSummary[Any], Dict[str, Any]]) None[source]
clone() pystac.summaries.Summaries[source]

Clones this object.


The clone of this object

Return type


combine(summaries: pystac.summaries.Summaries) None[source]
classmethod empty() pystac.summaries.Summaries[source]
get_list(prop: str) Optional[List[Any]][source]
get_range(prop: str) Optional[pystac.summaries.RangeSummary[Any]][source]
get_schema(prop: str) Optional[Dict[str, Any]][source]
is_empty() bool[source]
lists: Dict[str, List[Any]]
maxcount: int
other: Dict[str, Any]
ranges: Dict[str, pystac.summaries.RangeSummary[Any]]
remove(prop_key: str) None[source]
schemas: Dict[str, Dict[str, Any]]
to_dict() Dict[str, Any][source]
update(summaries: pystac.summaries.Summaries) None[source]
class pystac.summaries.Summarizer(fields: Optional[str] = None)[source]

The Summarizer computes summaries from values, following the definition of fields to summarize provided in a json file.

For more information about the structure of the fields json file, see:

  • fields (str) – the path to the json file with field descriptions.

  • passed (If no file is) –

  • used. (a default one will be) –

summarize(source: Union[Collection_Type, Iterable[Item_Type]]) Summaries[source]

Creates summaries from items

summaryfields: Dict[str, pystac.summaries.SummaryStrategy]
class pystac.summaries.SummaryStrategy(value)[source]

An enumeration.

ARRAY = 'v'
RANGE = 'r'
SCHEMA = 's'