soulsync/core/metadata/__init__.py
Antti Kettunen a759f778b6
Move metadata API into package
- add package-owned metadata API, cache, registry, and lookup modules
- keep legacy metadata_service and metadata_cache paths as explicit shims
- update metadata call sites and tests to use package-owned helpers
2026-04-29 08:10:18 +03:00

76 lines
2.1 KiB
Python

"""Metadata package public surface."""
from core.metadata.api import (
MetadataProvider,
MetadataService,
check_album_completion,
check_artist_discography_completion,
check_single_completion,
clear_cached_metadata_clients,
get_album_for_source,
get_album_tracks_for_source,
get_artist_album_tracks,
get_artist_albums_for_source,
get_artist_detail_discography,
get_artist_discography,
get_artist_image_url,
get_client_for_source,
get_deezer_client,
get_discogs_client,
get_hydrabase_client,
get_itunes_client,
get_metadata_service,
get_musicmap_similar_artists,
get_primary_client,
get_primary_source,
get_spotify_client,
get_source_priority,
iter_artist_discography_completion_events,
iter_musicmap_similar_artist_events,
is_hydrabase_enabled,
resolve_album_reference,
)
from core.metadata.cache import MetadataCache, get_metadata_cache
from core.metadata.lookup import MetadataLookupOptions
from core.metadata.registry import (
METADATA_SOURCE_PRIORITY,
get_registered_runtime_client,
register_runtime_clients,
)
__all__ = [
"METADATA_SOURCE_PRIORITY",
"MetadataCache",
"MetadataLookupOptions",
"MetadataProvider",
"MetadataService",
"check_album_completion",
"check_artist_discography_completion",
"check_single_completion",
"clear_cached_metadata_clients",
"get_album_for_source",
"get_album_tracks_for_source",
"get_artist_album_tracks",
"get_artist_albums_for_source",
"get_artist_detail_discography",
"get_artist_discography",
"get_artist_image_url",
"get_client_for_source",
"get_deezer_client",
"get_discogs_client",
"get_hydrabase_client",
"get_itunes_client",
"get_metadata_cache",
"get_metadata_service",
"get_musicmap_similar_artists",
"get_primary_client",
"get_primary_source",
"get_registered_runtime_client",
"get_spotify_client",
"get_source_priority",
"iter_artist_discography_completion_events",
"iter_musicmap_similar_artist_events",
"is_hydrabase_enabled",
"register_runtime_clients",
"resolve_album_reference",
]