Skip to main content

A friendly wrapper library for the Deezer API

Project description

Deezer Python Client

Build status Test coverage percentage Documentation Status PyPi Status Code Health pyversions license

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, it doesn’t support Deezer, but it’s very easily extensible to support it, and if you do write a back-end for it, I’d encourage you to submit a pull request there.

History

Unreleased

0.6.0 (2016-12-27)

  • Refactoring to use requests instead of urllib, mocking using Requests mock instead of manual patching. Use six for Python 2 and 3 compatibility.

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)

  • Add the chart resource. Thanks to Pascal.

  • Documentation updates regarding changelog and list of authors.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deezer-python-0.6.0.tar.gz (40.5 kB view details)

Uploaded Source

Built Distribution

deezer_python-0.6.0-py2-none-any.whl (10.9 kB view details)

Uploaded Python 2

File details

Details for the file deezer-python-0.6.0.tar.gz.

File metadata

File hashes

Hashes for deezer-python-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5cd6efd850823a74615219997fc7c23253ced47eaa52e3dc3c1c1de9a723962a
MD5 dd7a566f785c3546227d01768d37eea4
BLAKE2b-256 fde84b1951e96836baa79b809532569c77c9dca370e83b8299b5ded228b1edde

See more details on using hashes here.

File details

Details for the file deezer_python-0.6.0-py2-none-any.whl.

File metadata

File hashes

Hashes for deezer_python-0.6.0-py2-none-any.whl
Algorithm Hash digest
SHA256 0345b5302bd1b1015bd1dce85aa3a0f5481b6ac11c48e62be93149315ae48b03
MD5 04ab689e9f3dbd79db1dabbb1a6f24ed
BLAKE2b-256 2a3b13e0feb60fca5319926862f9497fa8af579251cc5167e0a4275902824e3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page