A friendly wrapper library for the Deezer API
A friendly wrapper around the Deezer API.
The package is published on the Python index simply run the following:
pip install deezer-python
And that’s it!
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
Not supported yet, only public API accessible
The unit tests are using python unittest framework, just run:
% python -m unittest discover ...... ---------------------------------------------------------------------- Ran 6 tests in 0.448s OK
Create a New Release
This project is configured to use bumpversion, only prerequisite is to have it installed. When the tests have passed and you’re happy with the code base, just need to run:
$ bumpversion [major|minor|patch]
Depending on which digit of the version needs to be updated, and then push with tags:
$ git push --tags
Travis will take care of creating the release, and upload it to PyPi.
- Enriching the API for resources to get artists for a genre, top tracks of an artist, etc… Thanks to Misuzu
- Initial release.
“deezer-python” is written and maintained by Bruno Alla.
Other people contributed to this project:
Please add yourself here alphabetically when you submit your first pull request.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size deezer_python-0.2.3-py2-none-any.whl (10.2 kB)||File type Wheel||Python version py2||Upload date||Hashes View hashes|
|Filename, size deezer-python-0.2.3.tar.gz (35.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for deezer_python-0.2.3-py2-none-any.whl