This commit is contained in:
2025-01-13 20:47:39 -05:00
parent 945a3d9bf6
commit 86946f0316
8 changed files with 292 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env python3.12
from dataclasses import dataclass, asdict
@dataclass
class LyricsResult:
"""Class for returned Lyrics Results"""
artist: str
song: str
src: str
lyrics: str
confidence: float
def dict(self):
"""Return as dict"""
return {k: str(v) for k, v in asdict(self).items()}