{ "info": { "author": "Alexander Tereshkin", "author_email": "atereshkin@y-node.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Topic :: Software Development" ], "description": "===============\ntornado-api-kit\n===============\n\nA collection of routines for building web APIs on top of Tornado web server.\n\n--------\nFeatures\n--------\n\n* Automatic support multiple response formats (JSON, JSONP, XML)\n* Pluggable authentication\n* Error handling\n\n-------------\nExample usage\n-------------\n\n.. code-block:: python\n\n import apikit\n\n # Returning objects as response (only basic JSON-encodable types supported):\n class MyApiHander(apikit.ApiHandler):\n def get(self):\n self.write_response({'result' : 'sucess',\n\t 'x' : 1, y : [1,2,3]})\n \n # Authentication:\n class MyProtectedResourceBase(apikit.ProtectedResource):\n def authenticate(self, callback):\n if self.get_argument('password') != '12345':\n\t raise tornado.web.HTTPError(403, \"Incorrect or missing password!\")\n\t callback()\n\n class MyProtectedResource(MyProtectedResourceBase):\n def get(self):\n ...\n\n\n\n------------\nInstallation\n------------\n \n::\n\n $ pip install tornado-api-kit", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sightio/tornado-api-kit", "keywords": "tornado api", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "tornado-api-kit", "package_url": "https://pypi.org/project/tornado-api-kit/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tornado-api-kit/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sightio/tornado-api-kit" }, "release_url": "https://pypi.org/project/tornado-api-kit/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "('A collection of routines for building web APIs on top of Tornado web server. ',)", "version": "0.0.1" }, "last_serial": 800806, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "4b43c702dd14229fba8f66d946ec1172", "sha256": "c2bc33915da9f1090691ebfe6a704d1b5628afaa8989d1c6235f671c62991334" }, "downloads": -1, "filename": "tornado-api-kit-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4b43c702dd14229fba8f66d946ec1172", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2554, "upload_time": "2013-02-15T13:11:50", "url": "https://files.pythonhosted.org/packages/8e/00/e785b8afe7b9ec6c829e469cf1f8a316f383580fdc5e062ebba6286b9448/tornado-api-kit-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4b43c702dd14229fba8f66d946ec1172", "sha256": "c2bc33915da9f1090691ebfe6a704d1b5628afaa8989d1c6235f671c62991334" }, "downloads": -1, "filename": "tornado-api-kit-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4b43c702dd14229fba8f66d946ec1172", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2554, "upload_time": "2013-02-15T13:11:50", "url": "https://files.pythonhosted.org/packages/8e/00/e785b8afe7b9ec6c829e469cf1f8a316f383580fdc5e062ebba6286b9448/tornado-api-kit-0.0.1.tar.gz" } ] }