Files
musicseerr/backend/repositories/protocols/youtube.py
T
2026-04-03 15:53:00 +01:00

27 lines
557 B
Python

from typing import Protocol
from models.youtube import YouTubeQuotaResponse
class YouTubeRepositoryProtocol(Protocol):
def configure(self, api_key: str) -> None:
...
@property
def is_configured(self) -> bool:
...
@property
def quota_remaining(self) -> int:
...
async def search_video(self, artist: str, album: str) -> str | None:
...
async def search_track(self, artist: str, track_name: str) -> str | None:
...
def get_quota_status(self) -> YouTubeQuotaResponse:
...