Fieldο
All core Field
implementations relating to
core MusifyItem
and :py:class`MusifyCollection` implementations.
Classes:
|
Base class for field names of an item. |
|
All possible Field enums in this program. |
|
Map of human-friendly tag name to ID3 tag ids for a file type |
|
Applies extra functionality to |
|
All possible TagField enums in this program. |
|
Applies extra functionality to the TagField enum for TagField types relating to |
|
Represents all currently supported fields for objects of type |
|
Represents all currently supported fields for objects of type |
|
Represents all currently supported fields for objects of type |
|
Represents all currently supported fields for objects of type |
|
Represents all currently supported fields for objects of type |
- class musify.field.Field(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
MusifyEnum
Base class for field names of an item.
Methods:
from_name
(*names)Returns all enums that match the given enum names
from_value
(*values)Returns all enums that match the given enum values
- classmethod from_name(*names)ο
Returns all enums that match the given enum names
- Raises:
EnumNotFoundError β If a corresponding enum cannot be found.
- Return type:
list
[Self
]
- classmethod from_value(*values)ο
Returns all enums that match the given enum values
- Raises:
EnumNotFoundError β If a corresponding enum cannot be found.
- Return type:
list
[Self
]
- class musify.field.Fields(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Field
All possible Field enums in this program.
This is used to ensure all Field enum implementations have the same values for their enum names.
Attributes:
- ALL = 0ο
- NAME = 1000ο
- TITLE = 65ο
- ARTIST = 32ο
- ARTISTS = 108ο
- ALBUM = 30ο
- ALBUM_ARTIST = 31ο
- TRACK_NUMBER = 86ο
- TRACK_TOTAL = 87ο
- GENRES = 59ο
- DATE = 900ο
- YEAR = 35ο
- MONTH = 901ο
- DAY = 902ο
- BPM = 85ο
- KEY = 903ο
- DISC_NUMBER = 52ο
- DISC_TOTAL = 54ο
- COMPILATION = 904ο
- COMMENTS = 44ο
- IMAGES = 905ο
- LENGTH = 16ο
- RATING = 75ο
- COMPOSER = 43ο
- CONDUCTOR = 45ο
- PUBLISHER = 73ο
- PATH = 106ο
- FOLDER = 179ο
- FILENAME = 3ο
- EXT = 100ο
- SIZE = 7ο
- TYPE = 4ο
- CHANNELS = 8ο
- BIT_RATE = 10ο
- BIT_DEPTH = 183ο
- SAMPLE_RATE = 9ο
- DATE_CREATED = 921ο
- DATE_MODIFIED = 11ο
- DATE_ADDED = 12ο
- LAST_PLAYED = 13ο
- PLAY_COUNT = 14ο
- DESCRIPTION = 931ο
- URI = 941ο
- USER_ID = 942ο
- USER_NAME = 943ο
- OWNER_ID = 944ο
- OWNER_NAME = 945ο
- FOLLOWERS = 946ο
- class musify.field.TagMap(title=(), artist=(), album=(), album_artist=(), track_number=(), track_total=(), genres=(), date=(), year=(), month=(), day=(), bpm=(), key=(), disc_number=(), disc_total=(), compilation=(), comments=(), images=())ο
Bases:
object
Map of human-friendly tag name to ID3 tag ids for a file type
Attributes:
-
title:
Sequence
[str
] = ()ο
-
artist:
Sequence
[str
] = ()ο
-
album:
Sequence
[str
] = ()ο
-
album_artist:
Sequence
[str
] = ()ο
-
track_number:
Sequence
[str
] = ()ο
-
track_total:
Sequence
[str
] = ()ο
-
genres:
Sequence
[str
] = ()ο
-
date:
Sequence
[str
] = ()ο
-
year:
Sequence
[str
] = ()ο
-
month:
Sequence
[str
] = ()ο
-
day:
Sequence
[str
] = ()ο
-
bpm:
Sequence
[str
] = ()ο
-
key:
Sequence
[str
] = ()ο
-
disc_number:
Sequence
[str
] = ()ο
-
disc_total:
Sequence
[str
] = ()ο
-
compilation:
Sequence
[str
] = ()ο
-
comments:
Sequence
[str
] = ()ο
-
images:
Sequence
[str
] = ()ο
-
title:
- class musify.field.TagField(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
Field
Applies extra functionality to
Field
for objects which contain modifiable tagsMethods:
all
([only_tags])Get all enums for this enum.
to_tag
()Returns all human-friendly tag names for the current enum value.
to_tags
(tags)Returns all human-friendly tag names for the given enum value.
- classmethod all(only_tags=False)ο
Get all enums for this enum. When
only_tags
is True, returns only those enums that represent a tag for this TagField type.- Return type:
list
[Self
]
- class musify.field.TagFields(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)ο
Bases:
TagField
All possible TagField enums in this program.
This is used to ensure all TagField enum implementations have the same values for their enum names.
Attributes:
- ALL = 0ο
- NAME = 1000ο
- TITLE = 65ο
- ARTIST = 32ο
- ALBUM = 30ο
- ALBUM_ARTIST = 31ο
- TRACK_NUMBER = 86ο
- TRACK_TOTAL = 87ο
- GENRES = 59ο
- DATE = 900ο
- YEAR = 35ο
- MONTH = 901ο
- DAY = 902ο
- BPM = 85ο
- KEY = 903ο
- DISC_NUMBER = 52ο
- DISC_TOTAL = 54ο
- COMPILATION = 904ο
- COMMENTS = 44ο
- IMAGES = 905ο
- LENGTH = 16ο
- RATING = 75ο
- COMPOSER = 43ο
- CONDUCTOR = 45ο
- PUBLISHER = 73ο
- PATH = 106ο
- FOLDER = 179ο
- FILENAME = 3ο
- EXT = 100ο
- SIZE = 7ο
- TYPE = 4ο
- CHANNELS = 8ο
- BIT_RATE = 10ο
- BIT_DEPTH = 183ο
- SAMPLE_RATE = 9ο
- DATE_CREATED = 921ο
- DATE_MODIFIED = 11ο
- DATE_ADDED = 12ο
- LAST_PLAYED = 13ο
- PLAY_COUNT = 14ο
- DESCRIPTION = 931ο
- URI = 941ο
- USER_ID = 942ο
- USER_NAME = 943ο
- OWNER_ID = 944ο
- OWNER_NAME = 945ο
- FOLLOWERS = 946ο
- 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
typesMethods:
map
(enum)Optional mapper to apply to the enum found during
all()
,from_name()
, andfrom_value()
calls- classmethod map(enum)ο
Optional mapper to apply to the enum found during
all()
,from_name()
, andfrom_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 = 0ο
- TITLE = 65ο
- ARTIST = 32ο
- ALBUM = 30ο
- ALBUM_ARTIST = 31ο
- TRACK = 586ο
- TRACK_NUMBER = 86ο
- TRACK_TOTAL = 87ο
- GENRES = 59ο
- DATE = 900ο
- YEAR = 35ο
- MONTH = 901ο
- DAY = 902ο
- 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 = 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 = 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 = 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 = 0ο
- ARTIST = 32ο
- TRACK_TOTAL = 87ο
- GENRES = 59ο
- IMAGES = 905ο
- LENGTH = 16ο
- RATING = 75ο