Types¶
TypedDict hints for every object — verified against live API responses. The client
returns plain dicts; these exist for typing, autocompletion, and docs.
deezify.types
¶
Typed hints for every Deezer API object.
Field coverage below was verified against live https://api.deezer.com
responses (not just the docs tables), so nested shapes — e.g. the artist
inside a :class:Track, or the per-kind sub-lists of :class:Chart — match
what the API actually returns.
Runtime behavior is unchanged: the client returns plain dict objects (and
:class:~deezify.paginator.PaginatedList for collections). These
TypedDict classes exist for static typing, IDE autocompletion and
documentation. Every class has total=False because the API only ever
returns a subset of fields depending on context (a track inside an album
carries fewer keys than a full track.get()).
Generic aliases at the bottom describe the shapes of paginated envelopes and write-action results:
PaginatedTracksetc. — whatclient.*.<connection>()items look like once iterated (each item is the corresponding object type).ChartBundle— the dict returned byclient.chart.get().
Contributor
¶
Bases: _Entity
An artist contributor entry (track.contributors[]).
Source code in deezify/types.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
GenreRef
¶
Bases: _Entity
Genre entry inside album.genres.data[].
Source code in deezify/types.py
60 61 62 63 64 | |
ArtistRef
¶
Bases: _Entity
Compact artist nested in tracks/albums/charts.
Source code in deezify/types.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
Artist
¶
Bases: ArtistRef
Full artist object (GET /artist/{id}).
Source code in deezify/types.py
95 96 | |
AlbumRef
¶
Bases: _Entity
Compact album nested in tracks/charts.
Source code in deezify/types.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
AlbumTrack
¶
Bases: _Entity
Track entry inside album.tracks.data[] / playlist listings.
Source code in deezify/types.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
Album
¶
Bases: AlbumRef
Full album object (GET /album/{id}).
Source code in deezify/types.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |
Track
¶
Bases: _Entity
Full track object (GET /track/{id}).
Source code in deezify/types.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
ChartTrack
¶
Bases: Track
Track entry inside chart listings (adds position).
Source code in deezify/types.py
207 208 209 210 | |
CreatorRef
¶
Bases: _Entity
Playlist creator (playlist.creator).
Source code in deezify/types.py
218 219 220 221 222 | |
PlaylistRef
¶
Bases: _Entity
Compact playlist nested in charts / user listings.
Source code in deezify/types.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | |
Playlist
¶
Bases: PlaylistRef
Full playlist object (GET /playlist/{id}).
Source code in deezify/types.py
250 251 252 253 254 255 256 257 258 259 | |
UserRef
¶
Bases: _Entity
Public user nested in fans/creators (GET /user/{id} unauthenticated).
Source code in deezify/types.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 | |
User
¶
Bases: UserRef
Full user object (extra fields need an access token).
Source code in deezify/types.py
283 284 285 286 287 288 289 290 291 292 293 294 | |
PodcastRef
¶
Bases: _Entity
Compact podcast nested in charts / episode payloads.
Source code in deezify/types.py
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | |
Podcast
¶
Bases: PodcastRef
Full podcast object (GET /podcast/{id}).
Source code in deezify/types.py
323 324 | |
EpisodeRef
¶
Bases: _Entity
Compact episode inside podcast.episodes listings.
Source code in deezify/types.py
327 328 329 330 331 332 333 334 335 336 337 | |
Episode
¶
Bases: EpisodeRef
Full episode object (GET /episode/{id}).
Source code in deezify/types.py
340 341 342 343 344 345 346 347 348 349 | |
Radio
¶
Bases: _Entity
Radio object (GET /radio / GET /radio/{id}).
Source code in deezify/types.py
362 363 364 365 366 367 368 369 370 371 372 373 374 | |
Genre
¶
Bases: _Entity
Genre object (GET /genre / GET /genre/{id}).
Source code in deezify/types.py
377 378 379 380 381 382 383 384 385 | |
Editorial
¶
Bases: _Entity
Editorial object (GET /editorial).
Source code in deezify/types.py
388 389 390 391 392 393 394 395 396 | |
Chart
¶
Bases: TypedDict
Bundle returned by GET /chart and GET /chart/{genre_id}.
Source code in deezify/types.py
429 430 431 432 433 434 435 436 | |
EditorialCharts
¶
Bases: TypedDict
Bundle returned by GET /editorial/{id}/charts.
Source code in deezify/types.py
439 440 441 442 443 444 445 | |
Infos
¶
Bases: TypedDict
GET /infos — country/API information.
Source code in deezify/types.py
463 464 465 466 467 468 469 470 471 472 473 474 475 476 | |
Options
¶
Bases: TypedDict
GET /options — current-user streaming capabilities.
Source code in deezify/types.py
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 | |
OEmbed
¶
Bases: TypedDict
GET /oembed?url=... — widget metadata.
Source code in deezify/types.py
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 | |
CreatePlaylistResult
¶
Bases: _Entity
Created playlist id returned by POST /user/{id}/playlists.
Source code in deezify/types.py
523 524 525 526 | |
PaginatedEnvelope
¶
Bases: TypedDict, Generic[T]
Raw shape of a list envelope (data/total/next/prev).
Source code in deezify/types.py
549 550 551 552 553 554 555 556 | |