# dm.selectors.from_server package

## Submodules

## dm.selectors.from_server.CachedDataFromServer module

Selector that gets data from server.

class `dm.selectors.from_server.CachedDataFromServer.``CachedDataFromServer`

  Bases: `dm.selectors.AbstractSelector.AbstractSelector`

  `init_cache`(measured, weather)

    It initializes cache using measured data and weather data.

    Parameters

      - measured – list of measured data

      - weather – list of weather data

    Returns

      None

  `interval`(column_name, start, end)

    It selects an interval from cache.

    Parameters

      - column_name – name of column that contains required values

      - start – timestamp that denotes start of the required interval

      - end – timestamp that denotes end of the required interval

    Returns

      data from the column in given interval (start, end)

  `row`(column_name, time)

    It selects one row from cache.

    Parameters

      - column_name – name of column that contains required values

      - time – timestamp of required data

    Returns

      data from the column in given time

## Module contents