opennem.core package

Submodules

opennem.core.datas module

opennem.core.endpoint module

class opennem.core.endpoint.EndpointType(value)

Bases: enum.Enum

An enumeration.

api = 'api'
data = 'data'
opennem.core.endpoint.get_opennem_endpoint(endpoint_type: opennem.core.endpoint.EndpointType, environment: opennem.schema.envs.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)opennem.schema.envs.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)dateutil.relativedelta.relativedelta

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

opennem.core.periods module

Module contents