Spaces:
Build error
Build error
File size: 1,012 Bytes
b1d075d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | """
API Module
Unified API layer for all external service clients.
Provides consistent HTTP handling, rate limiting, and error handling.
"""
from .base_client import BaseAPIClient
from .rate_limiter import UnifiedRateLimiter, RateLimitConfig
from .lastfm_client import LastFmClient, TrackMetadata, ArtistMetadata
from .spotify_client import SpotifyClient, SpotifyTrack, AudioFeatures
from .client_factory import (
APIClientFactory,
get_client_factory,
reset_client_factory,
create_lastfm_client,
create_spotify_client
)
__all__ = [
# Base infrastructure
"BaseAPIClient",
"UnifiedRateLimiter",
"RateLimitConfig",
# LastFM client and models
"LastFmClient",
"TrackMetadata",
"ArtistMetadata",
# Spotify client and models
"SpotifyClient",
"SpotifyTrack",
"AudioFeatures",
# Client factory
"APIClientFactory",
"get_client_factory",
"reset_client_factory",
"create_lastfm_client",
"create_spotify_client",
]
|