flexmeasures.data.models.data_sources
Classes
- class flexmeasures.data.models.data_sources.DataGeneratorMixin
- class flexmeasures.data.models.data_sources.DataSource(name=None, type=None, user=None, **kwargs)
Each data source is a data-providing entity.
- __init__(name=None, type=None, user=None, **kwargs)
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- property description
Extended description
For example:
>>> DataSource("Seita", type="forecaster", model="naive", version="1.2").description <<< "Seita's naive model v1.2.0"
- id
- property label
Human-readable label (preferably not starting with a capital letter, so it can be used in a sentence).