{ "info": { "author": "Erin O'Connell", "author_email": "erinocon5@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\nSpotify-Local: A multi-platform API to control the local Spotify Client\n===============================================================================\n\n.. image:: https://img.shields.io/pypi/v/requests-xml.svg?maxAge=2592000\n :target: https://pypi.python.org/pypi/spotify-local-control/\n.. image:: https://img.shields.io/pypi/l/requests-xml.svg?maxAge=2592000\n :target: https://opensource.org/licenses/MIT\n\n**Spotify-Local** library is designed to make controlling the Spotify client on your local machine possible!\nThis is a wrapper for the web helper process which exposes a simple api.\n**Spotify-Local** is inspired by `SpotifyAPI-NET `_.\nThis library allows you to perform simple actions quickly, or listen to events and register callbacks when\na song changes, or the pause button is pushed.\n\nWhen using this library you automatically get:\n\n- The ability to play/pause the current song\n- The ability to change tracks\n- You can register callbacks and listen for events when the state of Spotify changes\n- A nice context manager api using `with`\n\n\nInstallation\n============\n\n.. code-block:: shell\n\n $ pipenv install spotify-local\n\nOnly **Python 3.3+** is supported.\n\n\nTutorial & Usage\n================\n\nConnect to the Spotify Client (Spotify must be open to do this):\n\n.. code-block:: pycon\n\n >>> from spotify_local import SpotifyLocal\n\n >>> with SpotifyLocal() as s:\n pass\n\nPause the Spotify Client:\n\n.. code-block:: pycon\n\n >>> with SpotifyLocal() as s:\n s.pause()\n\n\nGrab the current state of the Spotify client, including now playing information:\n\n.. code-block:: pycon\n\n >>> with SpotifyLocal() as s:\n print(s.get_current_status())\n\nPlay a playlist, song, album, artist, etc using a Spotify uri link:\n\n.. code-block:: pycon\n\n >>> with SpotifyLocal() as s:\n s.playURI('spotify:track:0thLhIqWsqqycEqFONOyhu')\n\nRegister a callback and listen for events:\n\n.. code-block:: pycon\n\n >>> from spotify_local import SpotifyLocal\n >>> s = SpotifyLocal()\n >>> @s.on('track_change')\n >>> def test(event):\n ... print(event)\n >>> s.listen(blocking=False)\n >>> print(\"Do more stuff because that runs in the background\")\n\n\nLicense\n=======\nMIT\n\nTODO\n====\n* Create an async verion of the spotify controller class\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/erinxocon/spotify-local-control", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "spotify-local", "package_url": "https://pypi.org/project/spotify-local/", "platform": "", "project_url": "https://pypi.org/project/spotify-local/", "project_urls": { "Homepage": "https://github.com/erinxocon/spotify-local-control" }, "release_url": "https://pypi.org/project/spotify-local/0.3.2/", "requires_dist": [ "requests", "keyboard", "aiohttp", "pyobjc-framework-Quartz; sys_platform == \"darwin\"" ], "requires_python": ">=3.6.0", "summary": "Communicate with the Spotify's web helper process to control some basic aspects of spotify", "version": "0.3.2" }, "last_serial": 3988004, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "ed913bfa4d9978843e1a27a7b4d2379c", "sha256": "f84f9b5f22ccbeb3b1ff522830659a8fabc79e6cce54901320f360e42aacee2a" }, "downloads": -1, "filename": "spotify_local-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ed913bfa4d9978843e1a27a7b4d2379c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5507, "upload_time": "2018-06-20T23:42:00", "url": "https://files.pythonhosted.org/packages/8d/f4/e6ce50f15736b7e30ec5c71e1cb564fe0bf1464bce8a6f37b152651bb45c/spotify_local-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9fc4226bc7cbf81fa16b298b80860271", "sha256": "f06103e1600b582dc9103f17728f3f39f98dc0f6f87538f06141a229f531904c" }, "downloads": -1, "filename": "spotify-local-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9fc4226bc7cbf81fa16b298b80860271", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5664, "upload_time": "2018-06-20T23:42:01", "url": "https://files.pythonhosted.org/packages/39/22/6d331975a86c5ffd76d9e52601b5df18d45ae3b1551f40103f6fdf3f059f/spotify-local-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "6b4b1a309274634becb661f30e32b980", "sha256": "3b90bd443ffd7e1e016ac2fc000097a41d03a5ff0f4fd2ddf8386640a3e7fc35" }, "downloads": -1, "filename": "spotify_local-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6b4b1a309274634becb661f30e32b980", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5505, "upload_time": "2018-06-21T00:36:01", "url": "https://files.pythonhosted.org/packages/f3/c5/0d3cf6258ffcc990f42ab79b6974bec65873f8cff7c9c7c9e1b3497b1911/spotify_local-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d15deb1fadcb392b94d24f475ecc2d4", "sha256": "b56a6861dbc6ef901fd22812b85713c82cd393fba43a06b62ed38cbfc7ea22e7" }, "downloads": -1, "filename": "spotify-local-0.3.1.tar.gz", "has_sig": false, "md5_digest": "4d15deb1fadcb392b94d24f475ecc2d4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 5662, "upload_time": "2018-06-21T00:36:02", "url": "https://files.pythonhosted.org/packages/28/91/a7909c220a4a5be4796579261a82c96344b497023e8f6c0815bb74c13874/spotify-local-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "039149051c773430b05e8a74cd19e811", "sha256": "480a2b552aced591723cd524247b76ac5b18380ea485c5ecf5baa29caac95383" }, "downloads": -1, "filename": "spotify_local-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "039149051c773430b05e8a74cd19e811", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5904, "upload_time": "2018-06-22T04:45:31", "url": "https://files.pythonhosted.org/packages/a1/04/ee013f4b249e155eeab0bd2d6323f3b5c7da23093997f18ad5b107c7acf2/spotify_local-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d88b071e8df7244b8f5cdd409351979", "sha256": "39e92cd94ad35160f060e9addc68d553410b1872df4b0c9065910baa8548dd73" }, "downloads": -1, "filename": "spotify-local-0.3.2.tar.gz", "has_sig": false, "md5_digest": "0d88b071e8df7244b8f5cdd409351979", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 6003, "upload_time": "2018-06-22T04:45:32", "url": "https://files.pythonhosted.org/packages/9d/d3/72b37845908121d782439ea2e105d8e988a1a359d165d32b530876fec113/spotify-local-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "039149051c773430b05e8a74cd19e811", "sha256": "480a2b552aced591723cd524247b76ac5b18380ea485c5ecf5baa29caac95383" }, "downloads": -1, "filename": "spotify_local-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "039149051c773430b05e8a74cd19e811", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3.6.0", "size": 5904, "upload_time": "2018-06-22T04:45:31", "url": "https://files.pythonhosted.org/packages/a1/04/ee013f4b249e155eeab0bd2d6323f3b5c7da23093997f18ad5b107c7acf2/spotify_local-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d88b071e8df7244b8f5cdd409351979", "sha256": "39e92cd94ad35160f060e9addc68d553410b1872df4b0c9065910baa8548dd73" }, "downloads": -1, "filename": "spotify-local-0.3.2.tar.gz", "has_sig": false, "md5_digest": "0d88b071e8df7244b8f5cdd409351979", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6.0", "size": 6003, "upload_time": "2018-06-22T04:45:32", "url": "https://files.pythonhosted.org/packages/9d/d3/72b37845908121d782439ea2e105d8e988a1a359d165d32b530876fec113/spotify-local-0.3.2.tar.gz" } ] }