{ "info": { "author": "RUNIE", "author_email": "runar-borge@hotmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# spoofy\n\nNOTE: THIS LIBRARY IS IN AN EARLY STAGE WORK IN PROGRESS, NOT RECOMMENDED FOR NORMAL USE YET!\n\nspoofy is an asynchronous, object-oriented python wrapper for the Spotify Web API.\n\n### Usage\n\nThe library provides easy to use authentication functions and intuitive method and hierarchies.\n\nFor complete examples, please check the documentation. Here's some snippets:\n\nCreating an OAuth object and a Spotify Client:\n```py\nimport spoofy\n\n# create an authentication object, storing tokens in tokens.json\nauth = await spoofy.easy_auth(\n client_id=client_id,\n client_secret=client_secret,\n scope=('playlist-modify-private', 'playlist-read-private'),\n cache_file='tokens.json'\n)\n\nsp = spoofy.Client(auth) # initialize a spotify client\n```\n\nSearching for and getting tracks:\n```py\nresults = await sp.search_tracks(q='involvers', total=2)\n# [, ]\n\ntrack = await sp.get_track('0hqAWKZDhuOfFb6aK002Ph')\n# \n```\n\nFetching and creating playlists:\n```py\n# get a playlist\nplaylist = await sp.get_playlist('1wPvaRtuI8mt10CpP2KnlO')\n# \n\n# iterate through playlist tracks\nfor track in playlist.tracks:\n print(track)\n\n# get current user\nme = await sp.get_me()\n# \n\n# create new playlist\nmy_playlist = await me.create_playlist(name='My playlist!')\n# \n\n# add tracks from previews playlist to the new playlist\nawait my_playlist.add_tracks(*playlist.tracks)\n```\n\n### Installation\nSimply install it fro pypi using pip!\n```\npip install spoofy\n```\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Run1e/spoofy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "spoofy", "package_url": "https://pypi.org/project/spoofy/", "platform": "", "project_url": "https://pypi.org/project/spoofy/", "project_urls": { "Homepage": "https://github.com/Run1e/spoofy" }, "release_url": "https://pypi.org/project/spoofy/0.10.2/", "requires_dist": [ "aiohttp" ], "requires_python": "", "summary": "spoofy is an asynchronous, object-oriented python wrapper for the Spotify Web API.", "version": "0.10.2" }, "last_serial": 4564533, "releases": { "0.10.2": [ { "comment_text": "", "digests": { "md5": "1e6ff780c1975ce1516bdc8adeec528b", "sha256": "644a4b2020faf5c6991d9a8406d356d1f24d3177b2975329d040ff1647c07e86" }, "downloads": -1, "filename": "spoofy-0.10.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1e6ff780c1975ce1516bdc8adeec528b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20724, "upload_time": "2018-12-05T16:30:33", "url": "https://files.pythonhosted.org/packages/d5/23/854ceb3c754846047c7d8bf066c9bf7f8cd46498344f43b29b78810d2e9e/spoofy-0.10.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e6ff780c1975ce1516bdc8adeec528b", "sha256": "644a4b2020faf5c6991d9a8406d356d1f24d3177b2975329d040ff1647c07e86" }, "downloads": -1, "filename": "spoofy-0.10.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1e6ff780c1975ce1516bdc8adeec528b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20724, "upload_time": "2018-12-05T16:30:33", "url": "https://files.pythonhosted.org/packages/d5/23/854ceb3c754846047c7d8bf066c9bf7f8cd46498344f43b29b78810d2e9e/spoofy-0.10.2-py3-none-any.whl" } ] }