opennem.core package

Submodules

opennem.core.datas module

opennem.core.endpoint module

class opennem.core.endpoint.EndpointType(value)

Bases: Enum

An enumeration.

api = 'api'
data = 'data'
opennem.core.endpoint.get_opennem_endpoint(endpoint_type: EndpointType, environment: Environment, skip_env: bool = False) str

Replace environment in URL

opennem.core.environment module

exception opennem.core.environment.EnvironmentNotFound

Bases: Exception

opennem.core.environment.get_environment(environment_name: str) Environment

Returns an environment type definition from a string environment name

opennem.core.intervals module

opennem.core.offsets module

opennem.core.offsets.delta_from_human_interval(interval_human: str) relativedelta

Parses a human interval like 1m or 1Y into a timedelta or datedelta

opennem.core.periods module

Module contents