[SOLVED] CS from dataclasses import dataclass, field

$25

File Name: CS_from_dataclasses_import_dataclass,_field.zip
File Size: 405.06 KB

5/5 - (1 vote)

from dataclasses import dataclass, field
from typing import List, Tuple

@dataclass
class Artist:
id: str
name: str
genres: List[str]

@dataclass
class AudioFeatures:
danceability: float
energy: float
key: int
loudness: float
mode: int
speechiness: float
acousticness: float
instrumentalness: float
liveness: float
valence: float
tempo: float
duration_ms: int
time_signature: int
id: str

@dataclass
class Track:
id: str
name: str
artists: List[Artist]
audio_features: AudioFeatures

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS from dataclasses import dataclass, field
$25