OpenNEM Package
Subpackages
- opennem.core package
- opennem.schema package
- Submodules
- opennem.schema.core module
- opennem.schema.dataset module
OpennemData
OpennemDataHistory
OpennemDataSet
OpennemDataSet.code
OpennemDataSet.created_at
OpennemDataSet.data
OpennemDataSet.get_by_network_id()
OpennemDataSet.get_by_network_region()
OpennemDataSet.get_by_stat_type()
OpennemDataSet.get_by_year()
OpennemDataSet.get_by_years()
OpennemDataSet.get_id()
OpennemDataSet.network
OpennemDataSet.region
OpennemDataSet.type
OpennemDataSet.version
- opennem.schema.envs module
- opennem.schema.interval module
- opennem.schema.network module
- opennem.schema.period module
- opennem.schema.stat module
- opennem.schema.validators module
- Module contents
- opennem.settings package
- Submodules
- opennem.settings.log module
- opennem.settings.schema module
OpennemSettings
OpennemSettings.Config
OpennemSettings.db_debug
OpennemSettings.debug
OpennemSettings.endpoint
OpennemSettings.env
OpennemSettings.http_cache_local
OpennemSettings.http_retries
OpennemSettings.http_timeout
OpennemSettings.log_level
OpennemSettings.precision_default
OpennemSettings.requests_cache_path
OpennemSettings.validate_log_level()
- opennem.settings.utils module
- Module contents
- opennem.utils package
Submodules
opennem.cli module
opennem.client module
OpenNEM API Client Library.
Define the primary API client class for accessing API and data methods of OpenNEM.
- class opennem.client.OpenNEMClient(base_url: Optional[str] = None)
Bases:
object
OpenNEM Core API Client.
Access API endpoints with an instance of the API client
- emission_factors(network_id: str) OpennemDataSet
Get last 7 days of 30 minute emission factors for a network.
- Parameters
network_id (str) – The network code
- Raises
Exception – Base response
- Returns
The data set in OpenNEM Data Set format.
- Return type
- fueltechs() List[FueltechSchema]
Return fueltechs.
- network_regions(network_id: str) List[NetworkRegionSchema]
Return network regions.
- networks() List[NetworkSchema]
Return networks.
- power_network_fueltech(network_id: str, network_region_code: str) OpennemDataSet
Get last 7 days of power generation per fueltech.
- Parameters
network_id (str) – The network code
network_region_code – The network region code
- Raises
Exception – Base response
- Returns
The data set in OpenNEM Data Set format.
- Return type
- price(network_id: str) OpennemDataSet
Get price for a network.
- Parameters
network_id (str) – The network code
- Raises
Exception – Base response
- Returns
The data set in OpenNEM Data Set format.
- Return type
- class opennem.client.OpenNEMStats(opennem_client)
Bases:
object
OpenNEM Stats Client.
Module contents
OpenNEM Python Client Library