# -*- coding: utf-8 -*- """网易云音乐API服务主程序 提供网易云音乐相关API服务,包括: - 歌曲信息获取 - 音乐搜索 - 歌单和专辑详情 - 音乐下载 - 健康检查 """ # 兼容门面:实现已按职责拆分到同包各子模块,此处原样再导出。 # 用 `__all__` 声明再导出(ruff F401 与 pyright 均据此认定「有意再导出」), # 使既有调用点(services.xxx / from services import Y)零改动。 from ._shared import ( _COUNTED_LOWER, _LEDGER_LAST_CLEANUP, _LEDGER_LAST_RECOVER, _MONITOR_ERR_TS, _QUIET_LOG_PATHS, _TASKS_SWEEP_LAST, BATCH_ZIP_SEM, COUNTED_PATHS, ENDPOINT_NAMES, _build_download_base, _rate_ok, _record_log, _sweep_rate_buckets, ) from ._taskcore import ( _mark_task_terminal, _settle_batch_billing, _start_task_thread, _task_files, ) from .api_service import ( APIConfig, APIResponse, MusicAPIService, api_service, config, ) from .batch import ( _batch_zip_worker, ) from .downloads import ( _admin_client, _detect_vip, _global_music_u, _parse_cookie_str, _single_download_worker, _task_delivery_copy, _user_client, _vip_name, ) from .podcast import ( _podcast_cleanup_files, _podcast_download_worker, _podcast_resolve_audio, _podcast_safe_name, _podcast_stream_download, _podcast_zip_worker, ) from .streaming import ( _stream_open, _SyncStreamResponse, ) from .tasks import ( _quiesce_tasks_for_restore, _sweep_download_cache, _task_monitor_loop, _touch_device, ) __all__ = [ 'BATCH_ZIP_SEM', 'COUNTED_PATHS', 'ENDPOINT_NAMES', '_COUNTED_LOWER', '_LEDGER_LAST_CLEANUP', '_LEDGER_LAST_RECOVER', '_MONITOR_ERR_TS', '_QUIET_LOG_PATHS', '_TASKS_SWEEP_LAST', 'APIConfig', 'APIResponse', 'MusicAPIService', '_SyncStreamResponse', '_admin_client', '_batch_zip_worker', '_build_download_base', '_detect_vip', '_global_music_u', '_mark_task_terminal', '_parse_cookie_str', '_podcast_cleanup_files', '_podcast_download_worker', '_podcast_resolve_audio', '_podcast_safe_name', '_podcast_stream_download', '_podcast_zip_worker', '_quiesce_tasks_for_restore', '_rate_ok', '_record_log', '_settle_batch_billing', '_single_download_worker', '_start_task_thread', '_stream_open', '_sweep_download_cache', '_sweep_rate_buckets', '_task_delivery_copy', '_task_files', '_task_monitor_loop', '_touch_device', '_user_client', '_vip_name', 'api_service', 'config', ]