{ "info": { "author": "Russell Keith-Magee", "author_email": "russell@keith-magee.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Multimedia :: Sound/Audio" ], "description": "Lights Out\n==========\n\n| Lights out! Guerrilla radio! Turn that s*** up!\n| - Rage Against the Machine\n\nLights Out is a tool to convert radio station online playlists into Spotify playlists.\n\nUsage\n-----\n\nYou can install Lights Out using pip::\n\n $ pip install lightsout\n\nBefore you can use Lights Out for the first time, you'll need to register an\napplication with Spotify. To do this, visit `the Spotify Developer portal`_\nand provide some application details. In return, you'll get two credentials:\na ``SPOTIFY_CLIENT_ID`` and a ``SPOTIFY_CLIENT_SECRET``.\n\n.. note:\n\n When you register your application, you'll be prompted for a Redirect URL.\n Use ``http://localhost:8888`` - this shouldn't work in a browser, but that\n doesn't matter.\n\n.. _the Spotify Developer portal: https://developer.spotify.com/my-applications/#!/applications/create]\n\nThen, create a file called ``.lightsoutrc`` in your home directory. This file\nshould contain your two Spotify credentials::\n\n SPOTIFY_CLIENT_ID=''\n SPOTIFY_CLIENT_SECRET=''\n\nSubstitute your own credentials as appropriate.\n\nThen, you can run Lights Out::\n\n $ lightsout -u \n\nSubstitute your own spotify username as appropriate.\n\n\nIf this is the first time you have run Lights Out, you'll be redirected to\na browser, prompted to log into your Spotify account, and authorize your\napplication. This will redirect to the ``localhost:8888`` URL you specified\nas the redirect URL for your application. Your browser won't be able to load\nthis page - but that's OK - all you need is the URL. Copy the URL, and\npaste it into the console window where Lights Out is running.\n\nOnce you've done this, Lights Out will pull down the data for the playlist,\nsearch Spotify for tracks matching the songs on the playlist, and construct a\nSpotify playlist for those songs.\n\nOptions\n-------\n\nThere are a number of options you can also pass to ``lightsout``:\n\n* You can specify a station other than ``doublej`` using the ``-s`` option::\n\n $ lightsout -u -s triplej\n\n See ``--help`` for the list of available channels\n\n* You can specify the starting date/time for the playlist search with the\n ``-d`` option. If you specified::\n\n $ lightsout -u -d '2016-05-01T10:30:00+0800'\n\n the search would be for 10:30 AM, May 1 2016, AWST.\n\n* You can specify the size of the playlist window. By default, searches will be for 24 hours,\n but you can specify any length in hours with the ``-l`` option. For example::\n\n $ lightsout -u -l 4\n\n would generate a 4 hour playlist.\n\n* You can specify that you want to append to an existing playlist using the\n ``-p`` option::\n\n $ lightsout -u -p 7wkac9khk9ssablyH9kRsC\n\n You can find the list of existing playlists by specifying ``LIST`` as the playlist::\n\n $ lightsout -u -p LIST\n\n* If you want to maintain a perpetual playlist (a playlist that is replaced,\n rather than appended to), you can specify that playlist using the ``-P``\n option::\n\n $ lightsout -u -p 7wkac9khk9ssablyH9kRsC\n\n If you want to update a perpetual playlist, but *not* append to an existing\n playlist, you can specify ``-p NONE`` in addition to ``-P``::\n\n $ lightsout -u -p NONE -P 7wkac9khk9ssablyH9kRsC\n\n\nExtending Lights Out\n--------------------\n\nLights out currently has support for the following stations:\n\n* ABC Australia\n\n * Double J\n\n * Triple J\n\n * Unearthed\n\n * ABC Classic\n\n * ABC Classic 2\n\n * ABC Jazz\n\n * ABC Country\n\n * ABC Extra\n\nTo add a new station station, you need to add a single function to\n``lightsout/backends.py``. This function takes two arguments: a start\ndatetime and an end datetime. The function must return a list of\ndictionaries, each dictionary describing a single track::\n\n [\n {'track': 'Paranoid Android', 'artist': 'Radiohead', 'album': 'OK Computer'},\n {'track': 'mogwai fear satan', 'artist': 'Mogwai', 'album': 'Young Team'},\n {'track': 'Brennisteinn', 'artist': 'Sigur R\u00f3s', 'album': 'Kveikur'},\n ...\n ]", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/freakboy3742/lightsout", "keywords": "", "license": "New BSD", "maintainer": "", "maintainer_email": "", "name": "lightsout", "package_url": "https://pypi.org/project/lightsout/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lightsout/", "project_urls": { "Homepage": "https://github.com/freakboy3742/lightsout" }, "release_url": "https://pypi.org/project/lightsout/1.2.0/", "requires_dist": [ "spotipy" ], "requires_python": "", "summary": "A tool to convert online radio playlist data into playable Spotify playlists", "version": "1.2.0" }, "last_serial": 2096791, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "99502779cb2314002ca2afbcbf91fcba", "sha256": "caa8bb4aa08accacdb213acb3b55613aaf33d4f36dcbc3062222dea45cb581c8" }, "downloads": -1, "filename": "lightsout-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "99502779cb2314002ca2afbcbf91fcba", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9031, "upload_time": "2016-05-02T07:25:48", "url": "https://files.pythonhosted.org/packages/d0/6a/f7756d3a87e1d48e5a4865566adc53e41efcd4d647192480cb590861ce04/lightsout-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf35f5067b0e195dd6f655dbc3943a3c", "sha256": "bc71edb7adfeaab7f34bb83a400de25d17bbf9bac36eead37bbab48205877a63" }, "downloads": -1, "filename": "lightsout-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cf35f5067b0e195dd6f655dbc3943a3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6913, "upload_time": "2016-05-02T07:26:15", "url": "https://files.pythonhosted.org/packages/15/77/7198d8a5dadeff9ee7b9cb1f899d34e7f77a75b2a4590ead200a6af72c0c/lightsout-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "5eefb6145a49cb3a93b728344441cbc5", "sha256": "23d894b5b722d96c956dad81d3d31e0640286ae1921c7a7632ca00ed351b6b4f" }, "downloads": -1, "filename": "lightsout-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5eefb6145a49cb3a93b728344441cbc5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9437, "upload_time": "2016-05-02T08:56:32", "url": "https://files.pythonhosted.org/packages/e5/f2/ea9c23ae125d9bd6e70e6ea02847ab97612fb3e993dc72412e24a9ab22a8/lightsout-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "66370c85ef33216b780cb59081fb4c57", "sha256": "37de608fd39d4b399f4d7814467b1b52545ed740b70b836ad9f8e7d223818307" }, "downloads": -1, "filename": "lightsout-1.1.0.tar.gz", "has_sig": false, "md5_digest": "66370c85ef33216b780cb59081fb4c57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7220, "upload_time": "2016-05-02T08:56:52", "url": "https://files.pythonhosted.org/packages/6d/c0/2d7a1af5e5804f34347f1ddb7d9e2de44544f961459df261db4745a02a65/lightsout-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "db27b14b134e760fd78e77388267a8a5", "sha256": "a42dba8c4a847dffc8bc2ac5c35d27739f25ebecae19053b63bf0fa4e8cf4701" }, "downloads": -1, "filename": "lightsout-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db27b14b134e760fd78e77388267a8a5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9466, "upload_time": "2016-05-03T11:07:45", "url": "https://files.pythonhosted.org/packages/35/77/2cc7881031f52cabeae5b8b948d1ad26505df4903c29f678e709bd8ea465/lightsout-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e252f4e66062a1ee087f26e8867b085a", "sha256": "612d8b2ebb2bf53fd6198b338ea57004d0164652541dde44294cd660fd9fff7e" }, "downloads": -1, "filename": "lightsout-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e252f4e66062a1ee087f26e8867b085a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7249, "upload_time": "2016-05-03T11:07:53", "url": "https://files.pythonhosted.org/packages/4b/92/fc2c0afb779281542e12dfad0432b70c33865c549823a3ba2cb2d259e8dc/lightsout-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db27b14b134e760fd78e77388267a8a5", "sha256": "a42dba8c4a847dffc8bc2ac5c35d27739f25ebecae19053b63bf0fa4e8cf4701" }, "downloads": -1, "filename": "lightsout-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db27b14b134e760fd78e77388267a8a5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9466, "upload_time": "2016-05-03T11:07:45", "url": "https://files.pythonhosted.org/packages/35/77/2cc7881031f52cabeae5b8b948d1ad26505df4903c29f678e709bd8ea465/lightsout-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e252f4e66062a1ee087f26e8867b085a", "sha256": "612d8b2ebb2bf53fd6198b338ea57004d0164652541dde44294cd660fd9fff7e" }, "downloads": -1, "filename": "lightsout-1.2.0.tar.gz", "has_sig": false, "md5_digest": "e252f4e66062a1ee087f26e8867b085a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7249, "upload_time": "2016-05-03T11:07:53", "url": "https://files.pythonhosted.org/packages/4b/92/fc2c0afb779281542e12dfad0432b70c33865c549823a3ba2cb2d259e8dc/lightsout-1.2.0.tar.gz" } ] }