Base

Inheritance diagram of musify.core.base

The fundamental core classes for the entire package.

Classes:

MusifyObject()

Generic base class for any nameable and taggable object.

MusifyItem()

Generic class for storing an item.

MusifyItemSettable()

Generic class for storing an item that can have select properties modified.

class musify.core.base.MusifyObject

Bases: AttributePrinter

Generic base class for any nameable and taggable object.

Attributes:

tag_sep

When representing a list of tags as a string, use this value as the separator.

name

A name for this object

clean_tags

A map of tags that have been cleaned to use when matching/searching

tag_sep: str = '; '

When representing a list of tags as a string, use this value as the separator.

abstract property name: str

A name for this object

property clean_tags: dict[TagField, Any]

A map of tags that have been cleaned to use when matching/searching

class musify.core.base.MusifyItem

Bases: MusifyObject, Hashable

Generic class for storing an item.

Attributes:

uri

URI (Uniform Resource Indicator) is the unique identifier for this item.

has_uri

Does this track have a valid associated URI.

abstract property uri: str | None

URI (Uniform Resource Indicator) is the unique identifier for this item.

abstract property has_uri: bool | None

Does this track have a valid associated URI. When None, answer is unknown.

class musify.core.base.MusifyItemSettable

Bases: MusifyItem

Generic class for storing an item that can have select properties modified.

Attributes:

uri

URI (Uniform Resource Indicator) is the unique identifier for this item.

property uri

URI (Uniform Resource Indicator) is the unique identifier for this item.