Factory

Inheritance diagram of musify.libraries.remote.core.factory

Configuration relating to the Remote module.

This configuration can be used to inject dependencies into dependencies throughout the module.

Classes:

RemoteObjectFactory(playlist, track, album, ...)

Stores the key object classes for a remote source

class musify.libraries.remote.core.factory.RemoteObjectFactory(playlist, track, album, artist, api=None)

Bases: Generic

Stores the key object classes for a remote source

Attributes:

playlist

The playlist type for this remote source

track

The track type for this remote source

album

The album type for this remote source

artist

The artist type for this remote source

api

An optional RemoteAPI object to pass to each object on instantiation

playlist: type[TypeVar(PL, bound= RemotePlaylist)]

The playlist type for this remote source

track: type[TypeVar(TR, bound= RemoteTrack)]

The track type for this remote source

album: type[TypeVar(AL, bound= RemoteAlbum)]

The album type for this remote source

artist: type[TypeVar(AR, bound= RemoteArtist)]

The artist type for this remote source

api: TypeVar(A, bound= RemoteAPI) = None

An optional RemoteAPI object to pass to each object on instantiation