pigeonpy.data.epddata.source.apiepdsource module

Defines the abstract base class for EPD API data sources.

class pigeonpy.data.epddata.source.apiepdsource.ApiEpdSource[source]

Bases: EpdSource

Abstract class for EPD API sources.

contains_dataset(epd_id) → bool

Method that checks if the respective source contains a dataset specified by the given epd_id.

load(dataset_template)

Initializes the datasource, e.g. by loading file bindings for the database.

Parameters:

dataset_template (EpdDataset) – The dataset template is used to determine the standard for the datasource.

load_epd(epd_dataset, epd_id, scenario)

Method to load the EPD dataset given by an epd_id from the respective source.

Parameters:
  • epd_dataset (EpdDataset) – Instance to store the loaded EPD data.

  • epd_id (str) – Identifier, e.g. UUID, for finding an EPD dataset within a source.

  • scenario (str) – Used to select the scenario for an EPD dataset, if scenarios are present.