A friendly wrapper library for the Deezer API
Project description
deezer-python
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 yet, only public API accessible
Running Tests
The unit tests are using python unittest framework, just run:
% python -m unittest discover ...... ---------------------------------------------------------------------- Ran 6 tests in 0.448s OK
History
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.2.2.tar.gz
.
File metadata
- Download URL: deezer-python-0.2.2.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56ea7620b0d335ad30a0566cfed247eb09ab4fed0dfc18c075481aeb0f8b9918 |
|
MD5 | 3430b84c42771deabfe5773f7d48f2ff |
|
BLAKE2b-256 | 6424fe9436dd1e13c5bf4f271e8a5227592184f82b32a262ee039b943bc92d60 |
File details
Details for the file deezer_python-0.2.2-py2-none-any.whl
.
File metadata
- Download URL: deezer_python-0.2.2-py2-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14ff6e8c5e5d6b2eb50d65a4ebc556bb593eb959d6192084664575bb235325b2 |
|
MD5 | d4e6a2141070fa7b419c80c8c0e0639c |
|
BLAKE2b-256 | 1a4fc6c8a2e5d9aeae966b84a993a9460c42e33a6a4d71c35dbc851afd0d377c |