A friendly wrapper library for the Deezer API
Project description
deezer-python
A friendly wrapper around the Deezer API.
Installation
Just download the tarball and use the package locally, I haven’t tested installation using easy_install yet
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. Search is not yet implemented.
>>> 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.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
File details
Details for the file deezer-python-0.1.tar.gz
.
File metadata
- Download URL: deezer-python-0.1.tar.gz
- Upload date:
- Size: 25.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c390308b315c47315c9c10342ccb178615b6c50f60592a220300d94d695c77 |
|
MD5 | ac10aa9ddcdf0fbbc6504d835568c27e |
|
BLAKE2b-256 | dda8b446d61997185d0fd2aad9631295ec23182c94a4cf555b09d1ab9e6422ca |