yandex_music.landing.chart_info#

class yandex_music.landing.chart_info.ChartInfo(id: str, type: str, type_for_from: str, title: str, menu: Optional[ChartInfoMenu], chart: Optional[Playlist], chart_description: Optional[str] = None, client: Optional[Client] = None)#

Bases: YandexMusicObject

Класс, представляющий чарт.

id#

Уникальный идентификатор блока.

Type

str

type#

Тип блока.

Type

str

type_for_from#

Откуда получен блок (как к нему пришли).

Type

str

title#

Заголовок.

Type

str

menu#

Меню TODO.

Type

yandex_music.ChartInfoMenu, optional

chart#

Плейлист.

Type

yandex_music.Playlist, optional

chart_description#

Описание.

Type

str, optional

client#

Клиент Yandex Music.

Type

yandex_music.Client, optional

chart: Optional[Playlist]#
chart_description: Optional[str] = None#
client: Optional[Client] = None#
classmethod de_json(data: dict, client: Client) Optional[ChartInfo]#

Десериализация объекта.

Parameters
  • data (dict) – Поля и значения десериализуемого объекта.

  • client (yandex_music.Client, optional) – Клиент Yandex Music.

Returns

Чарт.

Return type

yandex_music.ChartInfo

id: str#
menu: Optional[ChartInfoMenu]#
title: str#
type: str#
type_for_from: str#