Library for working with Deezer API for creating a playlist by your preferences in Deezer
Project description
deezer-playlist-generator
Library for working with Deezer API for creating a playlist by your preferences in Deezer
Installation :hammer:
The package is published on PyPI and can be installed by running:
pip install deezer-playlist-generator
Usage :musical_note:
Easily query the Deezer API from you Python code. The data returned by the Deezer API is mapped to python resources:
>>> client = DeezerApi()
>>> client.get_artist(27).name
> 'Daft Punk'
>>> client.get_track(3135556).title
'Harder, Better, Faster, Stronger'
>>> client.get_album(302127).title
> 'Discovery'
>>> client.client.get_playlist(908622995).title
> 'Bain moussant'
Deezer Client :triangular_flag_on_post:
Supported permissions
Access.BASIC = basic_access
Access.MANAGE = manage_library
Access.DELETE = detele_library
Basic Client - client with basic_access
, which supports access users basic information
client = DeezerApi()
Client with a token - the client allows for request an access token which is necessary to take action requiring the permissions you asked.
client = DeezerApi(token=<TOKEN>, expired=3600, access=Access.MANAGE)
Client with code auth - client with next token generation
client = DeezerApi(app_id=<APP_ID>, secret=<SECRET>, code=<CODE>, access=Access.MANAGE)
Client - client with all parameters, without a manual work for code and token generation
client = DeezerApi(app_id=<APP_ID>, secret=<SECRET>, redirect_url=<REDIRECTED_URL>, access=Access.DELETE)
Player :arrow_forward:
For reproducing a playlist by your preferences in Deezer:
from deezer_api import DeezerApi, Access, DeezerPlayer
client = DeezerApi(app_id=<APP_ID>, secret=<SECRET>, redirect_url=<REDIRECTED_URL>, access=Access.MANAGE)
tracks = cp.generate_tracks()
DeezerPlayer(tracks).start()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for deezer-playlist-generator-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d0e53410461282bc77ab0ece39e7871ee5b0dc8d39334fc69282172e17add6 |
|
MD5 | 7c04a6d9220b1c80771eb871f03ea885 |
|
BLAKE2b-256 | e95a49adaf1af0904469943ebd4fc2363d8a8cc88a4769a8b2df16959ad47f9f |
Hashes for deezer_playlist_generator-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26665c4837231395ea2d80fb39b00bf588e40a2a3c3c6e349025757f9d8785fb |
|
MD5 | 05dcc00cda430fed7771866009dfaa6b |
|
BLAKE2b-256 | a6df4947fb312fe99739ebff6210875a2cd840ffbc9ac453329352f9cef6e86d |