deezer-playlist-generator
Library for working with Deezer API for creating a playlist by your preferences in Deezer
Installation 🔨
The package is published on PyPI and can be installed by running:
pip install deezer-playlist-generator
Usage 🎵
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'
Create your playlist with recommended tracks in Deezer:
>>> client = DeezerApi(app_id=<APP_ID>, secret=<SECRET>, redirect_url=<REDIRECTED_URL>, access=Access.MANAGE)
>>> tracks = client.create_recommendation_playlist(title='My Deezer Recommendation', count_tracks=10)
> Processing user playlist: 100%|██████████| 10/10 [00:03<00:00, 3.14it/s]
> Generating playlist: 100%|██████████| 10/10 [00:03<00:00, 3.31it/s]
Deezer Client 🚩
Supported permissions
Access.BASIC = basic_access
Access.MANAGE = manage_library
Access.DELETE = delete_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 ▶️
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()
Metadata
Release files for deezer-playlist-generator 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deezer-playlist-generator-1.0.3.tar.gz | 9.1 kB | Without provenance | Details for deezer-playlist-generator-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deezer_playlist_generator-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for deezer_playlist_generator-1.0.3-py3-none-any.whl |
Total release size: 20.6 kB
Release files / deezer-playlist-generator-1.0.3.tar.gz
| Download URL | deezer-playlist-generator-1.0.3.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d211c153a91a30e40d0020e8ccb65c388e461a12109973adb665de9c85f27e50
|
|
BLAKE2b-256 checksum How to use checksums |
48f05ae3cf1c4fa906290e0581c9035120ce1cb9eb362d2138c2d669295a421b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5
|
Release files / deezer_playlist_generator-1.0.3-py3-none-any.whl
| Download URL | deezer_playlist_generator-1.0.3-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c65cee83d8eb9782c28f43f190bc0e2d862d023e8837e466ca6d62640c0c4534
|
|
BLAKE2b-256 checksum How to use checksums |
44cd6b77361b53ccd6ec0692a49afb207e5e286f3fea546c168cc15cf6d4caa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5
|
Security for deezer-playlist-generator 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.