Field

Inheritance diagram of musify.field

All core Field implementations relating to core MusifyItem and :py:class`MusifyCollection` implementations.

Classes:

TrackFieldMixin(value[, names, module, ...])

Applies extra functionality to the TagField enum for TagField types relating to Track types

TrackField(value[, names, module, qualname, ...])

Represents all currently supported fields for objects of type Track

PlaylistField(value[, names, module, ...])

Represents all currently supported fields for objects of type Playlist

FolderField(value[, names, module, ...])

Represents all currently supported fields for objects of type Folder

AlbumField(value[, names, module, qualname, ...])

Represents all currently supported fields for objects of type Album

ArtistField(value[, names, module, ...])

Represents all currently supported fields for objects of type Artist

class musify.field.TrackFieldMixin(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: TagField

Applies extra functionality to the TagField enum for TagField types relating to Track types

Methods:

map(enum)

Optional mapper to apply to the enum found during all(), from_name(), and from_value() calls

classmethod map(enum)

Optional mapper to apply to the enum found during all(), from_name(), and from_value() calls

Return type:

list[Self]

class musify.field.TrackField(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: TrackFieldMixin

Represents all currently supported fields for objects of type Track

Attributes:

ALL

TITLE

ARTIST

ALBUM

ALBUM_ARTIST

TRACK

TRACK_NUMBER

TRACK_TOTAL

GENRES

YEAR

BPM

KEY

DISC

DISC_NUMBER

DISC_TOTAL

COMPILATION

COMMENTS

IMAGES

LENGTH

RATING

URI

ALL = 0
TITLE = 65
ARTIST = 32
ALBUM = 30
ALBUM_ARTIST = 31
TRACK = 586
TRACK_NUMBER = 86
TRACK_TOTAL = 87
GENRES = 59
YEAR = 35
BPM = 85
KEY = 903
DISC = 552
DISC_NUMBER = 52
DISC_TOTAL = 54
COMPILATION = 904
COMMENTS = 44
IMAGES = 905
LENGTH = 16
RATING = 75
URI = 941
class musify.field.PlaylistField(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Field

Represents all currently supported fields for objects of type Playlist

Attributes:

ALL

TRACK_TOTAL

IMAGES

LENGTH

DATE_CREATED

DATE_MODIFIED

DESCRIPTION

ALL = 0
TRACK_TOTAL = 87
IMAGES = 905
LENGTH = 16
DATE_CREATED = 921
DATE_MODIFIED = 11
DESCRIPTION = 931
class musify.field.FolderField(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Field

Represents all currently supported fields for objects of type Folder

Attributes:

ALL

TRACK_TOTAL

GENRES

IMAGES

COMPILATION

LENGTH

FOLDER

ALL = 0
TRACK_TOTAL = 87
GENRES = 59
IMAGES = 905
COMPILATION = 904
LENGTH = 16
FOLDER = 179
class musify.field.AlbumField(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Field

Represents all currently supported fields for objects of type Album

Attributes:

ALL

ARTIST

ALBUM

ALBUM_ARTIST

TRACK_TOTAL

GENRES

DATE

YEAR

MONTH

DAY

DISC_TOTAL

COMPILATION

IMAGES

LENGTH

RATING

ALL = 0
ARTIST = 32
ALBUM = 30
ALBUM_ARTIST = 31
TRACK_TOTAL = 87
GENRES = 59
DATE = 900
YEAR = 35
MONTH = 901
DAY = 902
DISC_TOTAL = 54
COMPILATION = 904
IMAGES = 905
LENGTH = 16
RATING = 75
class musify.field.ArtistField(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Field

Represents all currently supported fields for objects of type Artist

Attributes:

ALL

ARTIST

TRACK_TOTAL

GENRES

IMAGES

LENGTH

RATING

ALL = 0
ARTIST = 32
TRACK_TOTAL = 87
GENRES = 59
IMAGES = 905
LENGTH = 16
RATING = 75