pysatl_tsp.core.data_providers.abstract
Module Contents
Classes
Abstract base class for time series data providers. |
Data
API
- class pysatl_tsp.core.data_providers.abstract.DataProvider[source]
Bases:
pysatl_tsp.core.Handler[None,pysatl_tsp.core.T]Abstract base class for time series data providers.
DataProvider serves as a root handler in a processing pipeline, responsible for sourcing the initial time series data. As the first element in the chain, it doesn’t receive input from any preceding handler and acts as the data origin.
This class is designed to be subclassed with specific implementations for different data sources such as files, databases, APIs, or generated data.
Initialization
Initialize a data provider with no source.
Data providers are always root handlers and cannot have a source.
- abstractmethod __iter__() collections.abc.Iterator[pysatl_tsp.core.T][source]
Create an iterator over the time series data provided by this data source.
Each subclass must implement this method to define how data is sourced and potentially pre-processed before being passed to subsequent handlers.
- Returns:
An iterator yielding time series data items
- pysatl_tsp.core.data_providers.abstract.__all__ = ['DataProvider', 'T']