from typing import List from delphi_api.const import DEFAULT_PAGE_SIZE from delphi_api.v3.view_models.helpers import jsonify_collection_response from delphi_api.v3.view_models.stream import StreamsViewModel class StreamsView: """Streams view container""" @staticmethod def search(start_date: str, end_date: str, artist_id: str = None, isrc: List[str] = None, country_code: str = None, dsp: List[str] = None, track_id: List[str] = None, playlist_id: List[str] = None, chart_id: List[str] = None, agg_by: str = None, include: str = None, group_by: str = None, subset: str = None, limit: int = DEFAULT_PAGE_SIZE, offset: int = 0, sort_by: str = None, sort_order: str = None, ): result = StreamsViewModel.get_many(locals()) return jsonify_collection_response(result)