libMusicForge
Loading...
Searching...
No Matches
musicforge.core.MusicForge Class Reference

Library entry point. More...

Public Member Functions

None __init__ (self, Iterable[object] providers=())
 Initialize the configured instance.
Self __aenter__ (self)
 Enter the asynchronous context.
None __aexit__ (self, object exc_type, object exc, object tb)
 Exit the asynchronous context.
list[Recording] search_track (self, str artist, str title)
 Search configured search-capable providers, in order.

Protected Attributes

 _providers = tuple(providers)

Detailed Description

Library entry point.

Providers are optional and independently configured.

Constructor & Destructor Documentation

◆ __init__()

None musicforge.core.MusicForge.__init__ ( self,
Iterable[object] providers = () )

Initialize the configured instance.

Parameters
selfCurrent instance.
providersIndependently configured providers.

Member Function Documentation

◆ __aenter__()

Self musicforge.core.MusicForge.__aenter__ ( self)

Enter the asynchronous context.

Parameters
selfCurrent instance.
Returns
Current instance.

◆ __aexit__()

None musicforge.core.MusicForge.__aexit__ ( self,
object exc_type,
object exc,
object tb )

Exit the asynchronous context.

Parameters
selfCurrent instance.
exc_typeException type, if any.
excException instance, if any.
tbException traceback, if any.

◆ search_track()

list[Recording] musicforge.core.MusicForge.search_track ( self,
str artist,
str title )

Search configured search-capable providers, in order.

Parameters
selfCurrent instance.
artistArtist name.
titleTrack title.
Returns
Combined recording candidates in provider order.

A list is returned because artist/title pairs can identify multiple recordings. This initial implementation propagates provider errors; retries and partial-failure handling will be introduced with actual adapters.

Member Data Documentation

◆ _providers

musicforge.core.MusicForge._providers = tuple(providers)
protected

The documentation for this class was generated from the following file: