sung.pydantic_models

Pydantic models generated by datamodel-codegen using the Spotify API OpenAPI spec.

python -m datamodel_code_generator –url https://raw.githubusercontent.com/sonallux/spotify-web-api/refs/heads/main/fixed-spotify-open-api.yml –input-file-type openapi –output pydantic_models.py

I used

https://raw.githubusercontent.com/sonallux/spotify-web-api/refs/heads/main/fixed-spotify-open-api.yml

because that version claims to be more correct than the official Spotify API spec:

https://developer.spotify.com/reference/web-api/open-api-schema.yaml

Classes

AlbumBase(*, album_type, total_tracks, ...)

AlbumGroup(*values)

AlbumObject(*, album_type, total_tracks, ...)

AlbumRestrictionObject(*[, reason])

AlbumType(*values)

ArtistDiscographyAlbumObject(*, album_type, ...)

ArtistObject(*[, external_urls, followers, ...])

AudioAnalysisObject(*[, meta, track, bars, ...])

AudioFeaturesObject(*[, acousticness, ...])

AudiobookBase(*, authors, available_markets, ...)

AudiobookObject(*, authors, ...[, edition])

AuthorObject(*[, name])

CategoryObject(*, href, icons, id, name)

ChapterBase(*, audio_preview_url[, ...])

ChapterObject(*, audio_preview_url[, ...])

ChapterRestrictionObject(*[, reason])

ContextObject(*[, type, href, ...])

CopyrightObject(*[, text, type])

CurrentlyPlayingContextObject(*[, device, ...])

CurrentlyPlayingObject(*[, context, ...])

CursorObject(*[, after, before])

CursorPagingObject(*[, href, limit, next, ...])

CursorPagingPlayHistoryObject(*[, href, ...])

CursorPagingSimplifiedArtistObject(*[, ...])

DeviceObject(*[, id, is_active, ...])

DisallowsObject(*[, interrupting_playback, ...])

EpisodeBase(*, audio_preview_url, ...[, ...])

EpisodeObject(*, audio_preview_url, ...[, ...])

EpisodeRestrictionObject(*[, reason])

ErrorObject(*, status, message)

ExplicitContentSettingsObject(*[, ...])

ExternalIdObject(*[, isrc, ean, upc])

ExternalUrlObject(*[, spotify])

FollowersObject(*[, href, total])

ImageObject(*, url, height, width)

Key([root])

LinkedTrackObject(*[, external_urls, href, ...])

Loudness([root])

Meta(*[, analyzer_version, platform, ...])

Mode([root])

Mode1(*values)

NarratorObject(*[, name])

PagingArtistDiscographyAlbumObject(*, href, ...)

PagingArtistObject(*, href, limit, next, ...)

PagingFeaturedPlaylistObject(*[, message, ...])

PagingObject(*, href, limit, next, offset, ...)

PagingPlaylistObject(*, href, limit, next, ...)

PagingPlaylistTrackObject(*, href, limit, ...)

PagingSavedAlbumObject(*, href, limit, next, ...)

PagingSavedAudiobookObject(*, href, limit, ...)

PagingSavedEpisodeObject(*, href, limit, ...)

PagingSavedShowObject(*, href, limit, next, ...)

PagingSavedTrackObject(*, href, limit, next, ...)

PagingSimplifiedAlbumObject(*, href, limit, ...)

PagingSimplifiedAudiobookObject(*, href, ...)

PagingSimplifiedChapterObject(*, href, ...)

PagingSimplifiedEpisodeObject(*, href, ...)

PagingSimplifiedShowObject(*, href, limit, ...)

PagingSimplifiedTrackObject(*, href, limit, ...)

PagingTrackObject(*, href, limit, next, ...)

PlayHistoryObject(*[, track, played_at, context])

PlaylistObject(*[, collaborative, ...])

PlaylistOwnerObject(*[, external_urls, ...])

PlaylistTrackObject(*[, added_at, added_by, ...])

PlaylistTracksRefObject(*[, href, total])

PlaylistUserObject(*[, external_urls, ...])

PrivateUserObject(*[, country, ...])

PublicUserObject(*[, display_name, ...])

Queue([root])

QueueObject(*[, currently_playing, queue])

Reason(*values)

RecommendationSeedObject(*[, ...])

RecommendationsObject(*, seeds, tracks)

ReleaseDatePrecision(*values)

ResumePointObject(*[, fully_played, ...])

SavedAlbumObject(*[, added_at, album])

SavedAudiobookObject(*[, added_at, audiobook])

SavedEpisodeObject(*[, added_at, episode])

SavedShowObject(*[, added_at, show])

SavedTrackObject(*[, added_at, track])

SectionObject(*[, start, duration, ...])

SegmentObject(*[, start, duration, ...])

ShowBase(*, available_markets, copyrights, ...)

ShowObject(*, available_markets, copyrights, ...)

SimplifiedAlbumObject(*, album_type, ...[, ...])

SimplifiedArtistObject(*[, external_urls, ...])

SimplifiedAudiobookObject(*, authors, ...[, ...])

SimplifiedChapterObject(*, audio_preview_url)

SimplifiedEpisodeObject(*, ...[, language, ...])

SimplifiedPlaylistObject(*[, collaborative, ...])

SimplifiedShowObject(*, available_markets, ...)

SimplifiedTrackObject(*[, artists, ...])

Tempo([root])

TimeIntervalObject(*[, start, duration, ...])

TimeSignature([root])

Track(*[, num_samples, duration, ...])

TrackObject(*[, album, artists, ...])

TrackRestrictionObject(*[, reason])

Type(*values)

Type10(*values)

Type2(*values)

Type3(*values)

Type4(*values)

Type5(*values)

Type6(*values)

Type7(*values)

Type8(*values)

Type9(*values)

class sung.pydantic_models.AlbumBase(*, album_type, total_tracks, available_markets, external_urls, href, id, images, name, release_date, release_date_precision, restrictions=None, type, uri)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AlbumGroup(*values)[source]

Bases: Enum

class sung.pydantic_models.AlbumObject(*, album_type, total_tracks, available_markets, external_urls, href, id, images, name, release_date, release_date_precision, restrictions=None, type, uri, artists, tracks, copyrights, external_ids, genres, label, popularity)[source]

Bases: AlbumBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AlbumRestrictionObject(*, reason=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AlbumType(*values)[source]

Bases: Enum

class sung.pydantic_models.ArtistDiscographyAlbumObject(*, album_type, total_tracks, available_markets, external_urls, href, id, images, name, release_date, release_date_precision, restrictions=None, type, uri, artists, album_group)[source]

Bases: SimplifiedAlbumObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ArtistObject(*, external_urls=None, followers=None, genres=None, href=None, id=None, images=None, name=None, popularity=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AudioAnalysisObject(*, meta=None, track=None, bars=None, beats=None, sections=None, segments=None, tatums=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AudioFeaturesObject(*, acousticness=None, analysis_url=None, danceability=None, duration_ms=None, energy=None, id=None, instrumentalness=None, key=None, liveness=None, loudness=None, mode=None, speechiness=None, tempo=None, time_signature=None, track_href=None, type=None, uri=None, valence=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AudiobookBase(*, authors, available_markets, copyrights, description, html_description, edition=None, explicit, external_urls, href, id, images, languages, media_type, name, narrators, publisher, type, uri, total_chapters)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AudiobookObject(*, authors, available_markets, copyrights, description, html_description, edition=None, explicit, external_urls, href, id, images, languages, media_type, name, narrators, publisher, type, uri, total_chapters, chapters)[source]

Bases: AudiobookBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.AuthorObject(*, name=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CategoryObject(*, href, icons, id, name)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ChapterBase(*, audio_preview_url, available_markets=None, chapter_number, description, html_description, duration_ms, explicit, external_urls, href, id, images, is_playable, languages, name, release_date, release_date_precision, resume_point=None, type, uri, restrictions=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ChapterObject(*, audio_preview_url, available_markets=None, chapter_number, description, html_description, duration_ms, explicit, external_urls, href, id, images, is_playable, languages, name, release_date, release_date_precision, resume_point=None, type, uri, restrictions=None, audiobook)[source]

Bases: ChapterBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ChapterRestrictionObject(*, reason=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ContextObject(*, type=None, href=None, external_urls=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CopyrightObject(*, text=None, type=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CurrentlyPlayingContextObject(*, device=None, repeat_state=None, shuffle_state=None, context=None, timestamp=None, progress_ms=None, is_playing=None, item=None, currently_playing_type=None, actions=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CurrentlyPlayingObject(*, context=None, timestamp=None, progress_ms=None, is_playing=None, item=None, currently_playing_type=None, actions=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CursorObject(*, after=None, before=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CursorPagingObject(*, href=None, limit=None, next=None, cursors=None, total=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CursorPagingPlayHistoryObject(*, href=None, limit=None, next=None, cursors=None, total=None, items=None)[source]

Bases: CursorPagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.CursorPagingSimplifiedArtistObject(*, href=None, limit=None, next=None, cursors=None, total=None, items=None)[source]

Bases: CursorPagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.DeviceObject(*, id=None, is_active=None, is_private_session=None, is_restricted=None, name=None, type=None, volume_percent=None, supports_volume=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.DisallowsObject(*, interrupting_playback=None, pausing=None, resuming=None, seeking=None, skipping_next=None, skipping_prev=None, toggling_repeat_context=None, toggling_shuffle=None, toggling_repeat_track=None, transferring_playback=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.EpisodeBase(*, audio_preview_url, description, html_description, duration_ms, explicit, external_urls, href, id, images, is_externally_hosted, is_playable, language=None, languages, name, release_date, release_date_precision, resume_point=None, type, uri, restrictions=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.EpisodeObject(*, audio_preview_url, description, html_description, duration_ms, explicit, external_urls, href, id, images, is_externally_hosted, is_playable, language=None, languages, name, release_date, release_date_precision, resume_point=None, type, uri, restrictions=None, show)[source]

Bases: EpisodeBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.EpisodeRestrictionObject(*, reason=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ErrorObject(*, status, message)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ExplicitContentSettingsObject(*, filter_enabled=None, filter_locked=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ExternalIdObject(*, isrc=None, ean=None, upc=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ExternalUrlObject(*, spotify=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.FollowersObject(*, href=None, total=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ImageObject(*, url, height, width)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Key(root=PydanticUndefined)[source]

Bases: RootModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.LinkedTrackObject(*, external_urls=None, href=None, id=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Loudness(root=PydanticUndefined)[source]

Bases: RootModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Meta(*, analyzer_version=None, platform=None, detailed_status=None, status_code=None, timestamp=None, analysis_time=None, input_process=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Mode(root=PydanticUndefined)[source]

Bases: RootModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Mode1(*values)[source]

Bases: Enum

class sung.pydantic_models.NarratorObject(*, name=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingArtistDiscographyAlbumObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingArtistObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingFeaturedPlaylistObject(*, message=None, playlists=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingObject(*, href, limit, next, offset, previous, total)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingPlaylistObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingPlaylistTrackObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSavedAlbumObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSavedAudiobookObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSavedEpisodeObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSavedShowObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSavedTrackObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSimplifiedAlbumObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSimplifiedAudiobookObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSimplifiedChapterObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSimplifiedEpisodeObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSimplifiedShowObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingSimplifiedTrackObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PagingTrackObject(*, href, limit, next, offset, previous, total, items=None)[source]

Bases: PagingObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PlayHistoryObject(*, track=None, played_at=None, context=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PlaylistObject(*, collaborative=None, description=None, external_urls=None, followers=None, href=None, id=None, images=None, name=None, owner=None, public=None, snapshot_id=None, tracks=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PlaylistOwnerObject(*, external_urls=None, followers=None, href=None, id=None, type=None, uri=None, display_name=None)[source]

Bases: PlaylistUserObject

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PlaylistTrackObject(*, added_at=None, added_by=None, is_local=None, track=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PlaylistTracksRefObject(*, href=None, total=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PlaylistUserObject(*, external_urls=None, followers=None, href=None, id=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PrivateUserObject(*, country=None, display_name=None, email=None, explicit_content=None, external_urls=None, followers=None, href=None, id=None, images=None, product=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.PublicUserObject(*, display_name=None, external_urls=None, followers=None, href=None, id=None, images=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Queue(root=PydanticUndefined)[source]

Bases: RootModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.QueueObject(*, currently_playing=None, queue=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Reason(*values)[source]

Bases: Enum

class sung.pydantic_models.RecommendationSeedObject(*, afterFilteringSize=None, afterRelinkingSize=None, href=None, id=None, initialPoolSize=None, type=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.RecommendationsObject(*, seeds, tracks)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ReleaseDatePrecision(*values)[source]

Bases: Enum

class sung.pydantic_models.ResumePointObject(*, fully_played=None, resume_position_ms=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SavedAlbumObject(*, added_at=None, album=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SavedAudiobookObject(*, added_at=None, audiobook=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SavedEpisodeObject(*, added_at=None, episode=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SavedShowObject(*, added_at=None, show=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SavedTrackObject(*, added_at=None, track=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SectionObject(*, start=None, duration=None, confidence=None, loudness=None, tempo=None, tempo_confidence=None, key=None, key_confidence=None, mode=None, mode_confidence=None, time_signature=None, time_signature_confidence=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SegmentObject(*, start=None, duration=None, confidence=None, loudness_start=None, loudness_max=None, loudness_max_time=None, loudness_end=None, pitches=None, timbre=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ShowBase(*, available_markets, copyrights, description, html_description, explicit, external_urls, href, id, images, is_externally_hosted, languages, media_type, name, publisher, type, uri, total_episodes)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.ShowObject(*, available_markets, copyrights, description, html_description, explicit, external_urls, href, id, images, is_externally_hosted, languages, media_type, name, publisher, type, uri, total_episodes, episodes)[source]

Bases: ShowBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedAlbumObject(*, album_type, total_tracks, available_markets, external_urls, href, id, images, name, release_date, release_date_precision, restrictions=None, type, uri, artists)[source]

Bases: AlbumBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedArtistObject(*, external_urls=None, href=None, id=None, name=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedAudiobookObject(*, authors, available_markets, copyrights, description, html_description, edition=None, explicit, external_urls, href, id, images, languages, media_type, name, narrators, publisher, type, uri, total_chapters)[source]

Bases: AudiobookBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedChapterObject(*, audio_preview_url, available_markets=None, chapter_number, description, html_description, duration_ms, explicit, external_urls, href, id, images, is_playable, languages, name, release_date, release_date_precision, resume_point=None, type, uri, restrictions=None)[source]

Bases: ChapterBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedEpisodeObject(*, audio_preview_url, description, html_description, duration_ms, explicit, external_urls, href, id, images, is_externally_hosted, is_playable, language=None, languages, name, release_date, release_date_precision, resume_point=None, type, uri, restrictions=None)[source]

Bases: EpisodeBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedPlaylistObject(*, collaborative=None, description=None, external_urls=None, href=None, id=None, images=None, name=None, owner=None, public=None, snapshot_id=None, tracks=None, type=None, uri=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedShowObject(*, available_markets, copyrights, description, html_description, explicit, external_urls, href, id, images, is_externally_hosted, languages, media_type, name, publisher, type, uri, total_episodes)[source]

Bases: ShowBase

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.SimplifiedTrackObject(*, artists=None, available_markets=None, disc_number=None, duration_ms=None, explicit=None, external_urls=None, href=None, id=None, is_playable=None, linked_from=None, restrictions=None, name=None, preview_url=None, track_number=None, type=None, uri=None, is_local=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Tempo(root=PydanticUndefined)[source]

Bases: RootModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.TimeIntervalObject(*, start=None, duration=None, confidence=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.TimeSignature(root=PydanticUndefined)[source]

Bases: RootModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Track(*, num_samples=None, duration=None, sample_md5=None, offset_seconds=None, window_seconds=None, analysis_sample_rate=None, analysis_channels=None, end_of_fade_in=None, start_of_fade_out=None, loudness=None, tempo=None, tempo_confidence=None, time_signature=None, time_signature_confidence=None, key=None, key_confidence=None, mode=None, mode_confidence=None, codestring=None, code_version=None, echoprintstring=None, echoprint_version=None, synchstring=None, synch_version=None, rhythmstring=None, rhythm_version=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.TrackObject(*, album=None, artists=None, available_markets=None, disc_number=None, duration_ms=None, explicit=None, external_ids=None, external_urls=None, href=None, id=None, is_playable=None, linked_from=None, restrictions=None, name=None, popularity=None, preview_url=None, track_number=None, type, uri=None, is_local=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.TrackRestrictionObject(*, reason=None)[source]

Bases: BaseModel

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class sung.pydantic_models.Type(*values)[source]

Bases: Enum

class sung.pydantic_models.Type10(*values)[source]

Bases: Enum

class sung.pydantic_models.Type2(*values)[source]

Bases: Enum

class sung.pydantic_models.Type3(*values)[source]

Bases: Enum

class sung.pydantic_models.Type4(*values)[source]

Bases: Enum

class sung.pydantic_models.Type5(*values)[source]

Bases: Enum

class sung.pydantic_models.Type6(*values)[source]

Bases: Enum

class sung.pydantic_models.Type7(*values)[source]

Bases: Enum

class sung.pydantic_models.Type8(*values)[source]

Bases: Enum

class sung.pydantic_models.Type9(*values)[source]

Bases: Enum