ge-tool/backend/services/nas_service.py
2025-12-10 13:41:43 +07:00

60 lines
1.3 KiB
Python
Executable File

"""
NAS Service - Direct re-export from nas_api
"""
# Re-export from nas_api
from .nas_api import (
# Config
BASE_URL,
USERNAME,
PASSWORD,
DESTINATION_PATH,
session,
logger,
# Exceptions
NASAuthenticationError,
NASConnectionError,
NASAPIError,
# Session
save_sid,
load_sid,
# Auth
login_with_otp,
authenticate_with_otp,
# File Operations
syno_entry_request,
test_session_validity,
list_folder_contents,
list_shares,
get_files_for_path,
download_single_file_aria2,
cleanup_duplicates_before_download,
download_files_to_destination,
download_files_as_single_zip,
)
__all__ = [
'BASE_URL',
'USERNAME',
'PASSWORD',
'DESTINATION_PATH',
'session',
'logger',
'NASAuthenticationError',
'NASConnectionError',
'NASAPIError',
'save_sid',
'load_sid',
'login_with_otp',
'authenticate_with_otp',
'syno_entry_request',
'test_session_validity',
'list_folder_contents',
'list_shares',
'get_files_for_path',
'download_single_file_aria2',
'cleanup_duplicates_before_download',
'download_files_to_destination',
'download_files_as_single_zip',
]