{ "info": { "author": "Aadi Bajpai", "author_email": "swspotify@swaglyrics.dev", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# SwSpotify\n\n[![Build Status](https://travis-ci.com/SwagLyrics/SwSpotify.svg?branch=master)](https://travis-ci.com/SwagLyrics/SwSpotify)\n[![Build status](https://ci.appveyor.com/api/projects/status/c8heviwe9q2m8lb0?svg=true)](https://ci.appveyor.com/project/TheClashster/swspotify)\n[![codecov](https://codecov.io/gh/SwagLyrics/SwSpotify/branch/master/graph/badge.svg)](https://codecov.io/gh/SwagLyrics/SwSpotify)\n![PyPI](https://img.shields.io/pypi/v/swspotify.svg)\n[![Downloads](https://pepy.tech/badge/swspotify)](https://pepy.tech/project/swspotify)\n\nSwSpotify is a python library to get the song and artist of the currently playing song from the Spotify application faster and without using the API. It works on Windows, Linux and macOS. \n\nThe original repository was [spotilib](https://github.com/XanderMJ/spotilib) which worked just for Windows and hasn't been updated since a long while when it broke on account of Spotify updating their application.\n\nOriginally made for use in [SwagLyrics for Spotify](https://github.com/SwagLyrics/SwagLyrics-For-Spotify).\n\n## Installation\n\nRequires Python3. Use pip or pip3 depending on your installation.\n```\npip install SwSpotify\n```\n\n## Usage\n\nUse it in your project by importing it as:\n```pydocstring\nfrom SwSpotify import spotify\n```\nThen you can access the song and artist as:\n```pydocstring\n>>> spotify.song()\n'Hello'\n>>> spotify.artist()\n'Adele'\n```\nSince mostly song and artist are used in conjunction, there is a `current()` method as well.\n```pydocstring\n>>> spotify.current()\n('Hello', 'Adele')\n```\nThis allows you to access song and artist by tuple unpacking as:\n```pydocstring\n>>> song, artist = spotify.current()\n```\n\nIf Spotify is not running or is paused, a `SpotifyNotRunning` Exception is raised.\n## Compiling SwSpotify for Development\n\n- Clone the repo by `git clone https://github.com/SwagLyrics/SwSpotify.git` or use ssh.\n- `cd` into the cloned repo.\n- `pip install -e .` the -e flag installs it locally in editable mode.\n\n\n## Contributing\n\nSure, improvements/fixes/issues everything is welcome :)\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/SwagLyrics/SwSpotify", "keywords": "spotify swaglyrics python app", "license": "", "maintainer": "", "maintainer_email": "", "name": "SwSpotify", "package_url": "https://pypi.org/project/SwSpotify/", "platform": "", "project_url": "https://pypi.org/project/SwSpotify/", "project_urls": { "Homepage": "https://github.com/SwagLyrics/SwSpotify" }, "release_url": "https://pypi.org/project/SwSpotify/1.0.0/", "requires_dist": [ "pyobjc ; platform_system == \"Darwin\"", "pywin32 ; platform_system == \"Windows\"" ], "requires_python": "", "summary": "Get currently playing song and artist from Spotify faster without using the API.", "version": "1.0.0" }, "last_serial": 5745490, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "7b5e8e523d7df7f468fe2f9636c4d7d5", "sha256": "53f64f640b560ffb108e2c6096e41fbc7ad5d792c4157d1ee1b4b913636e72ac" }, "downloads": -1, "filename": "SwSpotify-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7b5e8e523d7df7f468fe2f9636c4d7d5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3337, "upload_time": "2019-05-01T04:28:26", "url": "https://files.pythonhosted.org/packages/bc/0c/00112839e8391d937192462c430a6e7549bfc32c6e836077417be977f773/SwSpotify-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a19da339879e76a2117b1601031903bf", "sha256": "cc3bdaf1f3ca8e39fca59dab492b95f4afbb2681e8ae5b66ec1c8625510eb873" }, "downloads": -1, "filename": "SwSpotify-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a19da339879e76a2117b1601031903bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2036, "upload_time": "2019-05-01T04:28:30", "url": "https://files.pythonhosted.org/packages/11/12/a73cd2bbdb6fdbf1cb6fe4d40c588fd5a5ef5309d170354b98e5193641b4/SwSpotify-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ed7732054af6e6428e55d342c8d12a94", "sha256": "ea0e7b4dfaa48f12c5ed2ad6661b24706df0d0866c1ced54dd00786c4c9c3c0c" }, "downloads": -1, "filename": "SwSpotify-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ed7732054af6e6428e55d342c8d12a94", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3785, "upload_time": "2019-05-01T04:31:07", "url": "https://files.pythonhosted.org/packages/01/f1/a033ff0a4c64fa32f1add5688d58a7a9d8a221c99ccfce62447d7e453fbe/SwSpotify-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe9add6162ca880a11d9f9ee45437a20", "sha256": "b478a90046bd8f76238f9bdc08fa2f2c787ca68a6b025f4059463c22edc76b21" }, "downloads": -1, "filename": "SwSpotify-0.0.3.tar.gz", "has_sig": false, "md5_digest": "fe9add6162ca880a11d9f9ee45437a20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2584, "upload_time": "2019-05-01T04:31:10", "url": "https://files.pythonhosted.org/packages/c0/0d/4892b109a3d9f0359d25b20c297b8b8481e85a364dd3b6a847494ccb87b8/SwSpotify-0.0.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "8e3bd11058a871328d8c730f5f9f99ba", "sha256": "3b622fb003146728cb06375d3052d8215236d4c8c1227df7ab6fc21011b9ee41" }, "downloads": -1, "filename": "SwSpotify-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8e3bd11058a871328d8c730f5f9f99ba", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4380, "upload_time": "2019-08-28T20:38:11", "url": "https://files.pythonhosted.org/packages/9c/06/559ead94988d7baa1ed7c3c44236e15ffccd75ca977f33f4db15e07295cd/SwSpotify-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecbcc2a0b17325b485950eb2ce16b332", "sha256": "de29156b42f3ca90d933bcec54f2706728768cbd6f1af58ded05740dd529f2d4" }, "downloads": -1, "filename": "SwSpotify-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ecbcc2a0b17325b485950eb2ce16b332", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3197, "upload_time": "2019-08-28T20:38:13", "url": "https://files.pythonhosted.org/packages/0e/ca/7d0b82428684413027beaddbb001aead90c2204d00e84f3a61d2e60eab42/SwSpotify-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8e3bd11058a871328d8c730f5f9f99ba", "sha256": "3b622fb003146728cb06375d3052d8215236d4c8c1227df7ab6fc21011b9ee41" }, "downloads": -1, "filename": "SwSpotify-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8e3bd11058a871328d8c730f5f9f99ba", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4380, "upload_time": "2019-08-28T20:38:11", "url": "https://files.pythonhosted.org/packages/9c/06/559ead94988d7baa1ed7c3c44236e15ffccd75ca977f33f4db15e07295cd/SwSpotify-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ecbcc2a0b17325b485950eb2ce16b332", "sha256": "de29156b42f3ca90d933bcec54f2706728768cbd6f1af58ded05740dd529f2d4" }, "downloads": -1, "filename": "SwSpotify-1.0.0.tar.gz", "has_sig": false, "md5_digest": "ecbcc2a0b17325b485950eb2ce16b332", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3197, "upload_time": "2019-08-28T20:38:13", "url": "https://files.pythonhosted.org/packages/0e/ca/7d0b82428684413027beaddbb001aead90c2204d00e84f3a61d2e60eab42/SwSpotify-1.0.0.tar.gz" } ] }