{ "info": { "author": "Piotr Bakalarski", "author_email": "piotrb5e3@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# sanic-validation\n[![Build Status](https://travis-ci.org/piotrb5e3/sanic-validation.svg?branch=master)](https://travis-ci.org/piotrb5e3/sanic-validation)\n\nsanic-validation is an extension to sanic that simplifies validating request data.\n\n## Installation\n`pip install sanic-validation`\n\n## Documentation\nDocumentation is available at [ReadTheDocs](https://sanic-validation.readthedocs.io/en/stable/).\n\n## Usage example\n```\nfrom sanic import Sanic\nfrom sanic.response import json\nfrom sanic_validation import validate_json\n\n\napp = Sanic()\n\nschema = {'name': {'type': 'string', 'required': True}}\n\n\n@app.route('/')\n@validate_json(schema)\nasync def hello_service(request):\n return json({'message': 'Hello ' + request.json['name']})\n\napp.run('0.0.0.0')\n```\n\n## Building the documentation\n### Requirements\n* Python\n* Sphinx\n* make\n\n### Building\n```\npython setup.py install\ncd docs\nmake html\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/piotrb5e3/sanic-validation", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "sanic-validation", "package_url": "https://pypi.org/project/sanic-validation/", "platform": "", "project_url": "https://pypi.org/project/sanic-validation/", "project_urls": { "Homepage": "https://github.com/piotrb5e3/sanic-validation" }, "release_url": "https://pypi.org/project/sanic-validation/0.4.4/", "requires_dist": null, "requires_python": "", "summary": "Validation for sanic endpoints", "version": "0.4.4" }, "last_serial": 5196880, "releases": { "0.1.4": [ { "comment_text": "", "digests": { "md5": "0490ed8dd932bbc4bc508997a39ae18a", "sha256": "a5e12ef7393f9800a152f7a6a91b7aee541d2009ed6a522f7e00a18dfd2a8318" }, "downloads": -1, "filename": "sanic-validation-0.1.4.tar.gz", "has_sig": false, "md5_digest": "0490ed8dd932bbc4bc508997a39ae18a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16281, "upload_time": "2018-05-16T21:45:10", "url": "https://files.pythonhosted.org/packages/ed/dc/9d8a68e9a5727c362d7af3bb265fabd7dd53217ccd989c2214bc382cf901/sanic-validation-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "54fb4eb1714e2ee2861d65ce2158b817", "sha256": "fe14b3498c68143d5d6c4b62a99044c3cb8090aa91066b2bce69709c89d99c26" }, "downloads": -1, "filename": "sanic-validation-0.2.0.tar.gz", "has_sig": false, "md5_digest": "54fb4eb1714e2ee2861d65ce2158b817", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16549, "upload_time": "2018-06-07T20:42:49", "url": "https://files.pythonhosted.org/packages/93/e9/7bc2dfc0b4e03a192b2c3a6089c8db96a4c94f6d7629ecb20c7ecc8ede1e/sanic-validation-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ea38563f166b5fc9b23fa12c269d691f", "sha256": "92ef8965eb6f6c9f2e13f8fb4aaf06ce826ad062b0d7563757943e38acb8d390" }, "downloads": -1, "filename": "sanic-validation-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ea38563f166b5fc9b23fa12c269d691f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16780, "upload_time": "2018-06-10T20:56:13", "url": "https://files.pythonhosted.org/packages/c8/0c/3b9d7f36a7d4e7a5418e41240dc90224be5a12e9c1b0a88841920c8cbd64/sanic-validation-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7439a37dccc0bc6153c1c7c3a02b1567", "sha256": "dc516e01c3004df7245fdee6cd72443ac8088221c3e0b9069d1a4a5eaec1a7a1" }, "downloads": -1, "filename": "sanic-validation-0.3.0.tar.gz", "has_sig": false, "md5_digest": "7439a37dccc0bc6153c1c7c3a02b1567", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16012, "upload_time": "2018-06-11T18:56:18", "url": "https://files.pythonhosted.org/packages/c6/e7/fd1513e5952a564549fe3b9aa973478cb8d09293be8cde5daac538495e15/sanic-validation-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "418aaf052be02279b0a176ade1a4f6c4", "sha256": "c66521320e794cd92b13e5b8c68d15aae97897e28c98b880674c62257a0d0d34" }, "downloads": -1, "filename": "sanic-validation-0.3.1.tar.gz", "has_sig": false, "md5_digest": "418aaf052be02279b0a176ade1a4f6c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16039, "upload_time": "2018-06-26T10:03:54", "url": "https://files.pythonhosted.org/packages/94/b9/3d2b6bf0214a55a0cb59c0fcc90d8dbb854f22049b42fa7119927ea476a8/sanic-validation-0.3.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "7e512dab6dfefee22b460e1d40788e7c", "sha256": "ee4dea29c557e6e2aef8fa69f0334b145b93c435a2df1256e6b821732aef5d36" }, "downloads": -1, "filename": "sanic-validation-0.4.2.tar.gz", "has_sig": false, "md5_digest": "7e512dab6dfefee22b460e1d40788e7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15786, "upload_time": "2019-04-22T22:40:56", "url": "https://files.pythonhosted.org/packages/a5/be/a6df5108d3030178c0c9952cbdcae21e2fc76ea3af7b05a33dc998aead93/sanic-validation-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "bc1efce13b61f71a97c0458ac7c1aa4b", "sha256": "e8bb9ec8d41d825a1368815b083d84992d1b7730b61a7d67b21a5fde83ea8ee3" }, "downloads": -1, "filename": "sanic-validation-0.4.3.tar.gz", "has_sig": false, "md5_digest": "bc1efce13b61f71a97c0458ac7c1aa4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15788, "upload_time": "2019-04-22T22:55:58", "url": "https://files.pythonhosted.org/packages/9b/87/75c02828113048405686b0653e2d32c52f09bcc3b911d276b6c2b2aad070/sanic-validation-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "1426e23b3d5ad58804e9a7b60565f103", "sha256": "938abf0c3f6ad55f488d1f994663d82c8cae8824f707fee8c26e71aeef397ac6" }, "downloads": -1, "filename": "sanic-validation-0.4.4.tar.gz", "has_sig": false, "md5_digest": "1426e23b3d5ad58804e9a7b60565f103", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15518, "upload_time": "2019-04-27T14:52:28", "url": "https://files.pythonhosted.org/packages/87/04/597b1c66865fc6018c4cdce539d1398a1fcd2343b2556a719862e97330ec/sanic-validation-0.4.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1426e23b3d5ad58804e9a7b60565f103", "sha256": "938abf0c3f6ad55f488d1f994663d82c8cae8824f707fee8c26e71aeef397ac6" }, "downloads": -1, "filename": "sanic-validation-0.4.4.tar.gz", "has_sig": false, "md5_digest": "1426e23b3d5ad58804e9a7b60565f103", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15518, "upload_time": "2019-04-27T14:52:28", "url": "https://files.pythonhosted.org/packages/87/04/597b1c66865fc6018c4cdce539d1398a1fcd2343b2556a719862e97330ec/sanic-validation-0.4.4.tar.gz" } ] }