mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 08:56:56 +01:00
29 lines
736 B
Python
29 lines
736 B
Python
from beets.util import deprecate_imports
|
|
|
|
from .exceptions import FileOperationError, ReadError, WriteError
|
|
from .library import Library
|
|
from .models import Album, Item, LibModel
|
|
from .queries import parse_query_parts, parse_query_string
|
|
|
|
NEW_MODULE_BY_NAME = dict.fromkeys(
|
|
("DateType", "DurationType", "MusicalKey", "PathType"), "beets.dbcore.types"
|
|
) | dict.fromkeys(
|
|
("BLOB_TYPE", "SingletonQuery", "PathQuery"), "beets.dbcore.query"
|
|
)
|
|
|
|
|
|
def __getattr__(name: str):
|
|
return deprecate_imports(__name__, NEW_MODULE_BY_NAME, name, "3.0.0")
|
|
|
|
|
|
__all__ = [
|
|
"Library",
|
|
"LibModel",
|
|
"Album",
|
|
"Item",
|
|
"parse_query_parts",
|
|
"parse_query_string",
|
|
"FileOperationError",
|
|
"ReadError",
|
|
"WriteError",
|
|
]
|