{ "info": { "author": "UNKNOWN", "author_email": "BSD", "bugtrack_url": null, "classifiers": [], "description": "``lastfmclient``\n################\n\nPython client for the `Last.fm API `_ with a\npythonic interface. Also includes an async variant of the client for\n`Tornado `_.\n\n\nUsage\n=====\n\nRegular\n-------\n\n.. code-block:: python\n\n from lastfmclient import LastfmClient\n\n api = LastfmClient(\n api_key=KEY,\n api_secret=SECRET,\n session_key=session_key\n )\n\n resp = api.track.update_now_playing(\n track='Paranoid Android',\n artist='Radiohead',\n album='OK Computer',\n )\n\n print resp\n\n\nAsynchronous (uses ``tornado.httpclient.AsyncHTTPClient``)\n----------------------------------------------------------\n\n.. code-block:: python\n\n import tornado.web\n import tornado.gen\n from lastfmclient.async import AsyncLastfmClient\n\n class Scrobbler(tornado.web.RequestHandler):\n\n @tornado.gen.coroutine\n def post(self):\n api = AsyncLastfmClient(\n api_key=KEY,\n api_secret=SECRET,\n session_key=session_key\n )\n\n resp = yield api.track.update_now_playing(\n track='Paranoid Android',\n artist='Radiohead',\n album='OK Computer',\n )\n self.finish(resp)\n\n\nSee also `examples `_.\n\n\nClient methods\n==============\n\nAll the methods the Last.fm API provides are mirrored in the client with\nrich docstrings and arguments description. This code is actually generated\ndirectly from the online API documentation pages\n(see ``./generate.py``, ``./api.json``, and ``./lastfmclient/api.py``).\n\nThe defined methods be updated to the current version of the documentation via:\n\n\n.. code-block:: bash\n\n $ pip install -r requirements.txt lxml\n\n # 1. Generate fresh api.json from docs at http://www.last.fm/api:\n $ make spec\n\n # 2. Generate `lastfm/api.py` from `api.json`:\n $ make code\n\n # Or, all the above in one step:\n $ make\n\n\nContact\n=======\n\nJakub Rozto\u010dil\n\n* http://github.com/jakubroztocil\n* http://twitter.com/jakubroztocil\n* jakub@subtleapps.com", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jakubroztocil/lastfmclient", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jakubroztocil/lastfmclient", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "lastfmclient", "package_url": "https://pypi.org/project/lastfmclient/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lastfmclient/", "project_urls": { "Download": "https://github.com/jakubroztocil/lastfmclient", "Homepage": "https://github.com/jakubroztocil/lastfmclient" }, "release_url": "https://pypi.org/project/lastfmclient/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Python client for the Last.fm API with a pythonic interface to all methods,\nincluding auth, etc. An async, Tornado-based client included as well.", "version": "0.0.4" }, "last_serial": 1277102, "releases": { "0.0.1-alpha": [ { "comment_text": "", "digests": { "md5": "4c9b1ed9f8e5ba509f59b85e69fdc0d9", "sha256": "66c7104cb52de3fe46901ca6eeec296af3577c1bf2d71d24ca9c2ee62d92190c" }, "downloads": -1, "filename": "lastfmclient-0.0.1-alpha.tar.gz", "has_sig": false, "md5_digest": "4c9b1ed9f8e5ba509f59b85e69fdc0d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17768, "upload_time": "2013-07-31T08:23:52", "url": "https://files.pythonhosted.org/packages/89/38/d29c18fbb45f628c1776ae1abe2b6bdeac68d9914fa8d2f53d6ff0eece28/lastfmclient-0.0.1-alpha.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "25e8b1d7df8452ff2ab82da4d666f2a4", "sha256": "f37c1b190e5e388dc90903c75ea75590963475ad415c94065fc5214aa90a5241" }, "downloads": -1, "filename": "lastfmclient-0.0.2.tar.gz", "has_sig": false, "md5_digest": "25e8b1d7df8452ff2ab82da4d666f2a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17372, "upload_time": "2014-06-06T16:48:14", "url": "https://files.pythonhosted.org/packages/fc/1a/80ce074c267e685dc81f9b04a4a635d3f838a2e09c2b7a20f8b3986d84b6/lastfmclient-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "9c2ee893b07a021fbd364dd43b6f2614", "sha256": "6cbf52779f9b1970d0d93cac0d62c264f67e38dee405d571f939ea2e32fcdae6" }, "downloads": -1, "filename": "lastfmclient-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9c2ee893b07a021fbd364dd43b6f2614", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17557, "upload_time": "2014-06-06T22:16:10", "url": "https://files.pythonhosted.org/packages/3b/f7/5a59bb6a00844f55d8063948e279076889852b27fef8838a1842e61a34a4/lastfmclient-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "7bb99f91b05fe2c1d6f8b2a371738a02", "sha256": "500b836582ec824f62899dccc4ed7b907860036c8b4b394effa2e9e35ec9eddf" }, "downloads": -1, "filename": "lastfmclient-0.0.4.tar.gz", "has_sig": false, "md5_digest": "7bb99f91b05fe2c1d6f8b2a371738a02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17578, "upload_time": "2014-10-20T21:45:41", "url": "https://files.pythonhosted.org/packages/6f/bc/963b98fdbf261b6586788d66ce5e1a738f199da7d5bd84feac89b8756c2a/lastfmclient-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7bb99f91b05fe2c1d6f8b2a371738a02", "sha256": "500b836582ec824f62899dccc4ed7b907860036c8b4b394effa2e9e35ec9eddf" }, "downloads": -1, "filename": "lastfmclient-0.0.4.tar.gz", "has_sig": false, "md5_digest": "7bb99f91b05fe2c1d6f8b2a371738a02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17578, "upload_time": "2014-10-20T21:45:41", "url": "https://files.pythonhosted.org/packages/6f/bc/963b98fdbf261b6586788d66ce5e1a738f199da7d5bd84feac89b8756c2a/lastfmclient-0.0.4.tar.gz" } ] }