Refactor imports and add package-level exports

This commit is contained in:
Rafael Moraes
2025-10-23 01:14:15 -03:00
parent f09d2050a8
commit abd0e27d64
4 changed files with 22 additions and 16 deletions
-1
View File
@@ -1,3 +1,2 @@
from .apple_music_api import AppleMusicApi
from .constants import *
from .itunes_api import ItunesApi
+12 -14
View File
@@ -8,25 +8,23 @@ from pathlib import Path
import click
from .. import __version__
from ..api.apple_music_api import AppleMusicApi
from ..downloader.downloader import AppleMusicDownloader
from ..downloader.downloader_base import AppleMusicBaseDownloader
from ..downloader.downloader_music_video import AppleMusicMusicVideoDownloader
from ..downloader.downloader_song import AppleMusicSongDownloader
from ..downloader.downloader_uploaded_video import AppleMusicUploadedVideoDownloader
from ..downloader.enums import (
from ..api import AppleMusicApi
from ..downloader import (
AppleMusicBaseDownloader,
AppleMusicDownloader,
AppleMusicMusicVideoDownloader,
AppleMusicSongDownloader,
AppleMusicUploadedVideoDownloader,
CoverFormat,
DownloadItem,
DownloadMode,
MediaDownloadConfigurationError,
MediaFormatNotAvailableError,
MediaNotStreamableError,
RemuxFormatMusicVideo,
RemuxMode,
)
from ..downloader.exceptions import (
MediaFormatNotAvailableError,
MediaNotStreamableError,
MediaDownloadConfigurationError,
)
from ..downloader.types import DownloadItem
from ..interface.enums import (
from ..interface import (
MusicVideoCodec,
MusicVideoResolution,
SongCodec,
+8
View File
@@ -0,0 +1,8 @@
from .downloader import AppleMusicDownloader
from .downloader_base import AppleMusicBaseDownloader
from .downloader_music_video import AppleMusicMusicVideoDownloader
from .downloader_song import AppleMusicSongDownloader
from .downloader_uploaded_video import AppleMusicUploadedVideoDownloader
from .enums import *
from .exceptions import *
from .types import *
+2 -1
View File
@@ -1,5 +1,6 @@
from .constants import *
from .enums import *
from .interface import *
from .interface_music_video import *
from .interface_song import *
from .interface_uploaded_video import *
from .types import *