{ "info": { "author": "Gomes Alexis", "author_email": "alexis.gomes19@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "This is a python sdk to manipulate the deezer's API\n\n# Installation\n\n```bash\npip install deezersdk\n```\n\n# Import\n\n```bash\nimport deezersdk\n```\n\n# Authentication to the API\n- You need to have a Deezer account to use the API.\n\n- You have to go on https://developers.deezer.com/myapps and create an a new app \n\n- You will need, your Application ID, Secret Key and the Redirect URL.\n\n- First we use the `get_oauth_login_url` method to get a login url\n ```bash\n url = Deezer.get_oauth_login_url(\n app_id=DEEZER_APP_ID, \n redirect_uri=DEEZER_REDIRECT_URI\n )\n ```\n- We have to go the url (if the pop up will open and we will be able to login to your deezer account.)\n\n- You will then be redirected to your redirect url with an authorization code in your url.\n\n- With this code you can, request your access token \n ```\n Deezer.get_oauth_token(app_id=DEEZER_APP_ID, app_secret=DEEZER_APP_SECRET, code=code)\n ```\n\n- You now have your access token, and can use the SDK.\n\n# Using the sdk\n## Instantiate the Deezer object\n```bash\ndz = Deezer(app_id=DEEZER_APP_ID,\n app_secret=DEEZER_APP_SECRET,\n code=YOUR_URL_CODE,\n token=YOUR_ACCESS_TOKEN)\n```\n## Query the API\n### Get my playlists\n```bash\ndz.get_my_playlists()\n```\nWill return an array of Playlist objects witch contains the title of the playlist,\n the url of the picture, and a boolean `is_loved_track` to True if it's your loved playlist\n\n### Play a music with the Deezer plugins\n```bash\nplaylists = dz.get_my_playlists()\nurl = dz.get_widget(playlist=playlists[0])\n```\nThis will give an of the plugin loaded with your playlist. You can add the url in an iframe to display the plugin \nor you can open it directly with : \n```bash\nimport webbrowser\nwebbrowser.open(url)\n```\nYou call also play a list of tracks\n```bash\nplaylists = dz.get_my_playlists()\nurl = dz.get_widget(tracks=tracks)\n```\n### Get your Flow\n```bash\ntracks = dz.get_flow()\n```\n### Get my favorites artists\n```bash\nartists = dz.get_my_favorite_artists()\n```\n### Methods on a Track\n```bash\nalbum = tack.get_album()\nartist = tack.get_artist()\n```\n### Methods on an Album\n```bash\ntracks = album.get_tracks()\nartist = album.get_artist()\n```\n### Methods on an Artist\n```bash\ntracks = artist.get_tracks()\n```\n\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AlexisGomes/deezersdk", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "deezersdk", "package_url": "https://pypi.org/project/deezersdk/", "platform": "", "project_url": "https://pypi.org/project/deezersdk/", "project_urls": { "Homepage": "https://github.com/AlexisGomes/deezersdk" }, "release_url": "https://pypi.org/project/deezersdk/0.18/", "requires_dist": null, "requires_python": "", "summary": "A python SDK for the Deezer API", "version": "0.18", "yanked": false, "yanked_reason": null }, "last_serial": 7022617, "releases": { "0.15": [ { "comment_text": "", "digests": { "md5": "71a40f162b92bb86e81eb28dd45857aa", "sha256": "5a4540dc6c01062223058801413b455212177a93a84a30210b72e14ceabad292" }, "downloads": -1, "filename": "deezersdk-0.15-py3-none-any.whl", "has_sig": false, "md5_digest": "71a40f162b92bb86e81eb28dd45857aa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3980, "upload_time": "2019-11-07T06:08:39", "upload_time_iso_8601": "2019-11-07T06:08:39.291726Z", "url": "https://files.pythonhosted.org/packages/a0/05/dd6174a567b692652addfe8bb02af4662962e4303b5396c4f5a5779e08e3/deezersdk-0.15-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.16": [ { "comment_text": "", "digests": { "md5": "1f1a0e08703c98ee5c2fa247f4201c00", "sha256": "b1808e9a4ecb1d08c20c7d1499a64379e9d1878a2ab0e79b3d99f0da98430fdb" }, "downloads": -1, "filename": "deezersdk-0.16-py3-none-any.whl", "has_sig": false, "md5_digest": "1f1a0e08703c98ee5c2fa247f4201c00", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5486, "upload_time": "2019-11-12T12:57:52", "upload_time_iso_8601": "2019-11-12T12:57:52.400245Z", "url": "https://files.pythonhosted.org/packages/73/a0/18498d548fd2529e6bd2063969ba7a96fa49e6ae7975a8b8d75b138b1363/deezersdk-0.16-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.17": [ { "comment_text": "", "digests": { "md5": "61739a57c484fea196bdf2e0367be5cb", "sha256": "529bdb5654d69cb11c8e982fb4e753bfe6f1a5ca1d22faf58af10305712782b1" }, "downloads": -1, "filename": "deezersdk-0.17-py3-none-any.whl", "has_sig": false, "md5_digest": "61739a57c484fea196bdf2e0367be5cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5631, "upload_time": "2019-11-17T17:33:08", "upload_time_iso_8601": "2019-11-17T17:33:08.610700Z", "url": "https://files.pythonhosted.org/packages/38/4f/0b3150d7a738799c7a35e9e15feafe8745d371387da373addc070de41759/deezersdk-0.17-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "0.18": [ { "comment_text": "", "digests": { "md5": "d393c4db12eb9769f9ee2ebf0912bc17", "sha256": "2e7648ba1cce44f2a5585091191b864bfa6c17b03be5c06bdc5c738c988bea2e" }, "downloads": -1, "filename": "deezersdk-0.18-py3-none-any.whl", "has_sig": false, "md5_digest": "d393c4db12eb9769f9ee2ebf0912bc17", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5862, "upload_time": "2020-04-15T06:37:06", "upload_time_iso_8601": "2020-04-15T06:37:06.149968Z", "url": "https://files.pythonhosted.org/packages/8a/9a/6d3ecb47c168e82f163bedc87a02c6f67570479ccf18a1fe99f4e008f344/deezersdk-0.18-py3-none-any.whl", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d393c4db12eb9769f9ee2ebf0912bc17", "sha256": "2e7648ba1cce44f2a5585091191b864bfa6c17b03be5c06bdc5c738c988bea2e" }, "downloads": -1, "filename": "deezersdk-0.18-py3-none-any.whl", "has_sig": false, "md5_digest": "d393c4db12eb9769f9ee2ebf0912bc17", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5862, "upload_time": "2020-04-15T06:37:06", "upload_time_iso_8601": "2020-04-15T06:37:06.149968Z", "url": "https://files.pythonhosted.org/packages/8a/9a/6d3ecb47c168e82f163bedc87a02c6f67570479ccf18a1fe99f4e008f344/deezersdk-0.18-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }