{ "info": { "author": "Naotaka Yokoyama", "author_email": "solaris2501.fe2@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Simple-Spotify\n\nPure Python wrapper library for Spotify Web API.\n\n\n## Installation\n\n```\npip install simple-spotify\n```\n\n## Quick Start\n\n```python\nfrom simple_spotify.api import Spotify\nfrom simple_spotify.authorization import ClientCredentialsFlow\n\nres = ClientCredentialsFlow.token_request(\n 'YOUR CLIENT ID',\n 'YOUR CLIENT SECRET'\n)\n\nauth = ClientCredentialsFlow(**res)\nsp = Spotify(auth)\n\nresult = sp.search(q='sora tob sakana')\n\nfor album in result.albums.items:\n print(album.name)\n```\n\n```\nsora tob sakana\ncocoon ep\nyozora wo zenbu\nmahou no kotoba\n```\n\nIf you execute endpoint which need AutotizationCodeFlow on your local envirnoment tempolary, \n`authcode-fetch` will be help you.\n\n```\n$ authcode-fetch\n\n =============================================\n Simple-Spotify\n Authorization Code Flow Support Tool\n =============================================\n\n Fetch authorization code from https://accounts.spotify.com/authorize.\n Output json file named simple-spotify_code.json.\n This json file includes client_id, client_secret, authorization code, redirect uri.\n Format of json file as follows.\n {\n 'client_id': client_id,\n 'client_secret': client_secret,\n 'code': authorization code,\n 'redirect_uri': redirect_uri\n }\n\nEnter the your Client ID : YOUR CLIENT ID\nEnter the your Client Secret : YOUR CLIENT SECRET\nEnter the redirect URI :http://127.0.0.1:8080/\nEnter the scopes\nScope :user-read-birthdate\nAdd more scope ?(y/n) :n\n# Open your default browser. Log in, authorize access\nEnter the redirected URL : REDIRECTED URL\n```\n\nThen, simple-spotify_code.json generate on your current directory.\n\n```python\nimport json\n\nfrom simple_spotify.api import Spotify\nfrom simple_spotify.authorization import AuthorizationCodeFlow\n\nwith open('simple-spotify_code.json') as f:\n auth_dict = json.load(f)\n\nres = AuthorizationCodeFlow.token_request(**auth_dict)\nauth = AuthorizationCodeFlow(**res)\nsp = Spotify(auth)\n\ncurrent_user = sp.get_current_user_profile()\n\n```\n\n## Version\n\n- **v.0.1.0** (May 09, 2019): Initial release: \n\n- **v.0.1.1** (May 10, 2019): Create sample web app, fix authorization.py\n\n- **v.0.1.2** (May 10, 2019): Upload to PyPI\n\n- **v.0.1.3** (May 11, 2019): Bugfix on simple_spotify.api\n\n- **v.0.1.4** (May 17, 2019): Added keyword argument `market` to following methods. `get_album` , `get_albums`, `get_track`, `get_tracks`", "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/NaoY-2501/simple_spotify", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "simple-spotify", "package_url": "https://pypi.org/project/simple-spotify/", "platform": "", "project_url": "https://pypi.org/project/simple-spotify/", "project_urls": { "Homepage": "https://github.com/NaoY-2501/simple_spotify" }, "release_url": "https://pypi.org/project/simple-spotify/0.1.4/", "requires_dist": null, "requires_python": "", "summary": "Pure Python Spotify Web API wrapper library", "version": "0.1.4" }, "last_serial": 5278327, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "dd8184436e047830e05063c7f85b5d2f", "sha256": "6284ccc4994c39e8f9101ff5b62e3b610fd06fecd00f8feabf1526bdfe88b4f6" }, "downloads": -1, "filename": "simple_spotify-0.1.2.tar.gz", "has_sig": false, "md5_digest": "dd8184436e047830e05063c7f85b5d2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14797, "upload_time": "2019-05-10T17:45:29", "url": "https://files.pythonhosted.org/packages/b7/37/51008096dd80c71d25a46d899be3c1a6c87898de441a9bfac0f4828c1057/simple_spotify-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "61a6df9380b1badae7ccac4a7b6d0b56", "sha256": "082c1ed5fe3f8e21af1b2da034c9057b340cdbd64dc0394a26cc0be9e474df21" }, "downloads": -1, "filename": "simple_spotify-0.1.3.tar.gz", "has_sig": false, "md5_digest": "61a6df9380b1badae7ccac4a7b6d0b56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14828, "upload_time": "2019-05-11T00:11:59", "url": "https://files.pythonhosted.org/packages/e9/e6/b3b45c863c27734d9b144b744dec836bfd905fd75eaaf889e1e57f0c66bb/simple_spotify-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "a213782038bf6be53d5e911f5c5c57cc", "sha256": "b1c555f8abcbc67845737ad009d0155e4eef13d2c778531d5471673961938124" }, "downloads": -1, "filename": "simple_spotify-0.1.4.tar.gz", "has_sig": false, "md5_digest": "a213782038bf6be53d5e911f5c5c57cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15188, "upload_time": "2019-05-16T16:32:24", "url": "https://files.pythonhosted.org/packages/42/0d/7d132728ea1d4eaf711616cc321e6d8a23864136cc195bc152d9c3ad6575/simple_spotify-0.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a213782038bf6be53d5e911f5c5c57cc", "sha256": "b1c555f8abcbc67845737ad009d0155e4eef13d2c778531d5471673961938124" }, "downloads": -1, "filename": "simple_spotify-0.1.4.tar.gz", "has_sig": false, "md5_digest": "a213782038bf6be53d5e911f5c5c57cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15188, "upload_time": "2019-05-16T16:32:24", "url": "https://files.pythonhosted.org/packages/42/0d/7d132728ea1d4eaf711616cc321e6d8a23864136cc195bc152d9c3ad6575/simple_spotify-0.1.4.tar.gz" } ] }