A friendly wrapper library for the Deezer API
Project description
Deezer Python Client
A friendly wrapper around the Deezer API.
Installation
The package is published on the Python index simply run the following:
pip install deezer-python
And that’s it!
Basic Use
So far you can only retrieve the data for the public objects, for which no login is required. The objects are translated to python resources, which are basically python objects encapsulating the json dictionary returned by the API.
>>> client = deezer.Client()
>>> client.get_album(12).title
u'Monkey Business'
You also can use AsyncClient with tornado.
>>> from tornado.gen import coroutine
>>> from tornado.ioloop import IOLoop
>>> from deezer import AsyncClient
>>>
>>>
>>> @coroutine
... def main():
... client = AsyncClient()
... album = yield client.get_album(12)
... print(album.title)
...
>>> IOLoop.instance().run_sync(main)
Monkey Business
See the whole API on the Sphinx generated documentation.
Authentication
Not supported by this package. There are excellent other python modules to handle that. There is the excellent Python Social Auth, which supports Deezer authentication.
History
0.6.1 (2017-06-19)
Added access token to the request kwargs. Thanks Nikolay Sheregeda for the patch.
Documentation update, thanks Khamaileon for the correction.
0.6.0 (2016-12-27)
0.5.0 (2016-12-26)
Python 3.6 support
Remove Python 3.2 classifier, support was dropped since 0.2.3
Updated docs and testing setup
0.4.0 (2016-12-08)
0.3.0 (2016-11-09)
Enriching the API for resources to get related resources as iterators. Thanks to Pascal.
0.2.3 (2016-11-07)
Drop support for Python 3.2. It should still work, but we are not testing it anymore, as this version as reached end of life.
0.2.2 (2015-09-14)
Python 3.5 support
Various doc updates
0.2.0 (2015-01-31)
Enriching the API for resources to get artists for a genre, top tracks of an artist, etc… Thanks to Misuzu.
0.1.0 (2014-11-22)
Initial release.
Credits
“deezer-python” is written and maintained by Bruno Alla.
Contributors
Other people contributed to this project:
Please add yourself here alphabetically when you submit your first pull request.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file deezer-python-0.6.1.tar.gz
.
File metadata
- Download URL: deezer-python-0.6.1.tar.gz
- Upload date:
- Size: 40.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c448345f744e710673f1e21968584d9092da550ef189b431d5f5ad0e2174a4c |
|
MD5 | df1110c40504547fbb1d146225e060f4 |
|
BLAKE2b-256 | fc3470b65759fc5f4a0a0afea7daa3268f0119b69007990774dcbdc33c7c50bf |
File details
Details for the file deezer_python-0.6.1-py2-none-any.whl
.
File metadata
- Download URL: deezer_python-0.6.1-py2-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acacb94c664fde8ca8c14c0b3df5e99c2c1b8cde29ecec8c4cecd34cdbe3fc03 |
|
MD5 | 13223785a68cbf3d731f0a6288c3faa6 |
|
BLAKE2b-256 | 2f8333fe7eb9e849b52fb2c3329368d30ce56f7f3430918984a59744bcd0fdbe |