31 lines
867 B
Python
31 lines
867 B
Python
"""
|
|
Author: Uyanide pywang0608@foxmail.com
|
|
Date: 2026-04-06 08:21:01
|
|
Description: Credential authenticators for third-party provider APIs
|
|
"""
|
|
|
|
from lrx_cli.authenticators.qqmusic import QQMusicAuthenticator
|
|
|
|
from .base import BaseAuthenticator
|
|
from .spotify import SpotifyAuthenticator
|
|
from .musixmatch import MusixmatchAuthenticator
|
|
from .dummy import DummyAuthenticator
|
|
|
|
__all__ = [
|
|
"BaseAuthenticator",
|
|
"SpotifyAuthenticator",
|
|
"MusixmatchAuthenticator",
|
|
"QQMusicAuthenticator",
|
|
"DummyAuthenticator",
|
|
]
|
|
|
|
|
|
def create_authenticators(cache) -> dict[str, BaseAuthenticator]:
|
|
"""Factory function to create authenticators with cache access."""
|
|
return {
|
|
"dummy": DummyAuthenticator(),
|
|
"spotify": SpotifyAuthenticator(cache),
|
|
"musixmatch": MusixmatchAuthenticator(cache),
|
|
"qqmusic": QQMusicAuthenticator(),
|
|
}
|