Provider package

Core module

class timeside.core.provider.MetaProvider[source]

Metaclass of the Provider class, used mainly for ensuring that provider id’s are wellformed and unique

class timeside.core.provider.Provider[source]

Base component class of all providers

timeside.core.provider.get_provider(provider_id)[source]

Return a provider by its pid

timeside.core.provider.providers(interface=<class 'timeside.core.api.IProvider'>, recurse=True)[source]

Returns the providers implementing a given interface and, if recurse, any of the descendants of this interface.

Providers

YouTube

class timeside.plugins.provider.youtube.YouTube[source]

YouTube audio Provider based on Youtube DL

get_id_from_url(self, url)[source]

Get provider’s id for a ressource from its url

get_source_from_id(self, ext_id, path, download=False)[source]

Get source’s uri or even download an audio track from the id of the provider’s ressource of the provider (Youtube video id, Deezer 30 sec preview from track’s id, etc.)

get_source_from_url(self, ext_uri, path, download=False)[source]

Get source’s uri or even download an audio track from the url of the provider’s ressource of the provider (Youtube video link, Deezer 30 sec preview from track’s URL, etc.)

static id()[source]

Short alphanumeric, lower-case string which uniquely identify this provider, suitable for use as an HTTP/GET argument value, in filenames, etc…

static name()[source]

name of the provider

static ressource_access()[source]

Boolean informing if the audio is whether or not freely available from the provider

DeezerPreview

class timeside.plugins.provider.deezer_preview.DeezerPreview[source]

Deezer Plugin to retrieve deezer’s 30 seconds tracks preview

get_id_from_url(self, url)[source]

Get provider’s id for a ressource from its url

get_source_from_id(self, external_id, path, download=False)[source]

Get source’s uri or even download an audio track from the id of the provider’s ressource of the provider (Youtube video id, Deezer 30 sec preview from track’s id, etc.)

get_source_from_url(self, url, path, download=False)[source]

Get source’s uri or even download an audio track from the url of the provider’s ressource of the provider (Youtube video link, Deezer 30 sec preview from track’s URL, etc.)

static id()[source]

Short alphanumeric, lower-case string which uniquely identify this provider, suitable for use as an HTTP/GET argument value, in filenames, etc…

static name()[source]

name of the provider

static ressource_access()[source]

Boolean informing if the audio is whether or not freely available from the provider

DeezerComplete

class timeside.plugins.provider.deezer_complete.DeezerComplete[source]

Deezer Plugin representing complete tracks on Deezer’s infrastructure

get_id_from_url(self, url)[source]

Get provider’s id for a ressource from its url

get_source_from_id(self, external_id, path, download=False)[source]

Get source’s uri or even download an audio track from the id of the provider’s ressource of the provider (Youtube video id, Deezer 30 sec preview from track’s id, etc.)

get_source_from_url(self, url, path, download=False)[source]

Get source’s uri or even download an audio track from the url of the provider’s ressource of the provider (Youtube video link, Deezer 30 sec preview from track’s URL, etc.)

static id()[source]

Short alphanumeric, lower-case string which uniquely identify this provider, suitable for use as an HTTP/GET argument value, in filenames, etc…

static name()[source]

name of the provider

static ressource_access()[source]

Boolean informing if the audio is whether or not freely available from the provider