{ "info": { "author": "Jesse Lovelace", "author_email": "jesse.lovelace@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "Restifier\n=========\n\n| Restifier is a python library for creating and documenting RESTful\n APIs.\n| It includes a middleware component, a set of decorators, and a \"forms\"\n library for validating/documenting requests. The middle generates a\n Swagger compatible JSON specification for the APIs automatically.\n\nAuthor\n------\n\nJesse Lovelace jesse@hawatian.com\n\nLicense\n-------\n\nThe MIT License\n\nUsage\n-----\n\nSee tests.py for information on usage. In general, so create a payload\nvalidator construct a class like this:\n\n.. code:: python\n\n class HelloMessage(Message):\n greeting = StringProperty(description=\"The greating.\", \n validators=[regex(re.compile('^[A-Za-z]+$')), required()])\n\n class HelloResponseMessage(Message):\n salutation = StringProperty(description=\"The response.\")\n tags = StringProperty(repeated=True)\n request = StructuredProperty(HelloMessage)\n\nThen decorate your handlers like this:\n\n.. code:: python\n\n class HelloHandler(RequestHandler):\n \n @api(input=HelloMessage, output=HelloResponseMessage)\n def post(self, obj):\n return {'salutation':'You are the best.'}\n\nAlso, to auto-document, use the middleware:\n\n.. code:: python\n\n routes = [\n ('/api/v1/hello', HelloHandler)\n ]\n\n app = DocumentedMiddleware(\n WSGIApplication(routes), \n api_base=\"/api/v1\",\n api_overview=\"This is a super important API that does a lot of stuff.\"\n )", "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/mentat/restifier", "keywords": "rest api swagger development", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "restifier", "package_url": "https://pypi.org/project/restifier/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/restifier/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mentat/restifier" }, "release_url": "https://pypi.org/project/restifier/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "A data validation and REST auto-documenter for APIs.", "version": "1.0.4" }, "last_serial": 1937833, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a63b0c7ffc2b7178e826dfd53cce6447", "sha256": "3a16290c346c8ba5538c152d5ebc105e796d9a4f72e082e46499ca046c16108d" }, "downloads": -1, "filename": "restifier-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a63b0c7ffc2b7178e826dfd53cce6447", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14692, "upload_time": "2016-02-01T23:48:09", "url": "https://files.pythonhosted.org/packages/f0/b2/90c0804a7d2dea677ee7cc6787bbce4f2b2e78d6d705a6cbef75b0b8efee/restifier-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6775f33d05bc04f2713b1eda48f505fd", "sha256": "e884c631f5d7842177b868bd534092839ebaf43c2d942cf22222fb99586218dc" }, "downloads": -1, "filename": "restifier-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6775f33d05bc04f2713b1eda48f505fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14639, "upload_time": "2016-02-02T16:29:34", "url": "https://files.pythonhosted.org/packages/f8/c9/48f31fd9d7254cc6faa8bfd47efff97f82573e506db7e18cba40bf21672a/restifier-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "1b15f8e550fff337a2050d20237f59b2", "sha256": "27847cd651f83359fea7b5e12f1c4cebe8e4870dbe3cbcedccd1377c255df804" }, "downloads": -1, "filename": "restifier-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1b15f8e550fff337a2050d20237f59b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14649, "upload_time": "2016-02-02T16:39:19", "url": "https://files.pythonhosted.org/packages/67/1e/fb2622e536563be2edbc9e5a1ffce382e0233b1085ba9b06a37196712528/restifier-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "c13f74d0ae9f2cf1f648e9d6d2966361", "sha256": "6211e73cb63bf308734b5948a35d428e1de892a6c03ddf949ba722f1f7f51724" }, "downloads": -1, "filename": "restifier-1.0.3.tar.gz", "has_sig": false, "md5_digest": "c13f74d0ae9f2cf1f648e9d6d2966361", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14668, "upload_time": "2016-02-02T16:41:40", "url": "https://files.pythonhosted.org/packages/40/91/324eb0a0e01835866a9d0f43a70ff98e14c0aa1ba8a6bc81e1f55f60c332/restifier-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "ada643c4441f6b9fddfa7ce4fbcc1ac9", "sha256": "d8122e2a4950684358fc08b475cc5fe5799b327c4abbfdfc61820a94e8286cd0" }, "downloads": -1, "filename": "restifier-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ada643c4441f6b9fddfa7ce4fbcc1ac9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14980, "upload_time": "2016-02-03T17:56:34", "url": "https://files.pythonhosted.org/packages/82/be/0a456fa73912ce287a05aa15aa28ae0aff8c53abbc5118900965f0b234c4/restifier-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ada643c4441f6b9fddfa7ce4fbcc1ac9", "sha256": "d8122e2a4950684358fc08b475cc5fe5799b327c4abbfdfc61820a94e8286cd0" }, "downloads": -1, "filename": "restifier-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ada643c4441f6b9fddfa7ce4fbcc1ac9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14980, "upload_time": "2016-02-03T17:56:34", "url": "https://files.pythonhosted.org/packages/82/be/0a456fa73912ce287a05aa15aa28ae0aff8c53abbc5118900965f0b234c4/restifier-1.0.4.tar.gz" } ] }