{ "info": { "author": "Charles-Eric Bourget", "author_email": "charlesericbourget@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Annotype: Python 3 annotations and marshmallow\n==============================================\n\n**Annotype** combines Python 3 annotations and Marshmallow for powerful\nvalidation of function arguments.\n\n.. code:: python\n\n from annotype import annotyped\n from marshmallow import (\n Schema,\n fields\n )\n\n\n class PersonSchema(Schema):\n firstname = fields.Str(required=True)\n lastname = fields.Str(required=True)\n\n @annotyped()\n def salute(person: PersonSchema):\n print 'Hello {} {}'.format(person['firstname'], person['lastname'])\n\n person = dict(firstname='John')\n\n # This will raise a ValidationError because lastname is not defined\n salute(person)\n\n @annotyped()\n def welcome(firstname: fields.Str(), lastname: fields.Str()):\n print 'Welcome {} {}'.format(firstname, lastname)\n\n # This will also raise a ValidationError because lastname is not a string\n welcome('Jane', 1)\n\nIn short, annotype allows you to validate data using the powerful\nmarshmallow library and the Python 3 annotations.\n\nGet It Now\n----------\n\n::\n\n $ pip install -U annotype\n\nDocumentation\n-------------\n\nSee marshmallow documentation available here\nhttp://marshmallow.readthedocs.io/ .\n\nRequirements\n------------\n\n- Python >= 3.4\n- marshmallow >= 3.0.0\n\nLicense\n-------\n\nMIT licensed. See the bundled\n`LICENSE `__\nfile for more details.\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/cbourget/annotype/archive/0.1.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cbourget/annotype", "keywords": "annotation marshmallow type", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "annotype", "package_url": "https://pypi.org/project/annotype/", "platform": "", "project_url": "https://pypi.org/project/annotype/", "project_urls": { "Download": "https://github.com/cbourget/annotype/archive/0.1.2.tar.gz", "Homepage": "https://github.com/cbourget/annotype" }, "release_url": "https://pypi.org/project/annotype/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "Marshmallow and Python 3 annotations", "version": "0.1.2" }, "last_serial": 3717909, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "8e9be2025dd60374d7387b1aa73d3382", "sha256": "c655b1f0c824fea8480145a0a3d06aa7f11e9b51ea133f7423eed63e0da8f260" }, "downloads": -1, "filename": "annotype-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8e9be2025dd60374d7387b1aa73d3382", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4129, "upload_time": "2018-02-19T14:52:26", "url": "https://files.pythonhosted.org/packages/c8/25/cb02691e9259668f7384dedccfa6ca5516529f3670b8f43b8b71f66d94f9/annotype-0.1.1-py2.py3-none-any.whl" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b003f2d22f691aab79fa77f64f5b60d8", "sha256": "fc048f7e16e1d7d49c8a70f341082fb74d5e72c67d86e8784e1a11f36b1dbf50" }, "downloads": -1, "filename": "annotype-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b003f2d22f691aab79fa77f64f5b60d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3718, "upload_time": "2018-03-29T19:04:42", "url": "https://files.pythonhosted.org/packages/05/c6/957e4a997db947f0e1b122159a446781cd2b2bdc21fdbd3a03567e832742/annotype-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b003f2d22f691aab79fa77f64f5b60d8", "sha256": "fc048f7e16e1d7d49c8a70f341082fb74d5e72c67d86e8784e1a11f36b1dbf50" }, "downloads": -1, "filename": "annotype-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b003f2d22f691aab79fa77f64f5b60d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3718, "upload_time": "2018-03-29T19:04:42", "url": "https://files.pythonhosted.org/packages/05/c6/957e4a997db947f0e1b122159a446781cd2b2bdc21fdbd3a03567e832742/annotype-0.1.2.tar.gz" } ] }