{ "info": { "author": "David Lenwell", "author_email": "dlenwell@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3" ], "description": "Webster\n=======\n\nWebster is a self validating dict object for python.\n\nIt expands upon dict's capability by allowing you to pass in a validation \ndict object with either types or regular expression values.\n\nThen you can use it for validation by using it as a condition or get\nback a detailed error response.\n\n import Webster\n\n # create a schema\n schema = {'amount': '([+-]?\\\\d*\\\\.\\\\d+)(?![-+0-9\\\\.])',\n 'credit_card': {\n 'number': '((?:(?:\\\\d{4}[- ]){3}\\\\d{4}|\\\\d{16}))(?![\\\\d])',\n 'expiration_date': '((?:(?:0[1-9])|(?:1[0-2]))\\\\/(?:\\\\d{2}))(?![\\\\d])'}\n }\n\n # create the object and pass the schema into the init\n im_a_dict = Webster(schema)\n\n # add your values\n im_a_dict['amount'] = '1.00'\n im_a_dict['credit_card'] = {}\n im_a_dict['credit_card']['number'] = '4111111111111111'\n im_a_dict['credit_card']['expiration_date'] = '05/12'\n\n # lets see if we are valid or not\n print im_a_dict.is_valid()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.davidlenwell.com/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "Webster", "package_url": "https://pypi.org/project/Webster/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Webster/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.davidlenwell.com/" }, "release_url": "https://pypi.org/project/Webster/0.5.2/", "requires_dist": null, "requires_python": null, "summary": "Webster is a self validating dict object for python.", "version": "0.5.2" }, "last_serial": 1140260, "releases": { "0.3.dev7.g622a542": [ { "comment_text": "", "digests": { "md5": "07c4b00da771ad2b6af966726316f5c0", "sha256": "a351ed31b30a1f8c49cc76023ce36444775458fbe76655b0702260e7c577b6b5" }, "downloads": -1, "filename": "Webster-0.3.dev7.g622a542.tar.gz", "has_sig": false, "md5_digest": "07c4b00da771ad2b6af966726316f5c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6606, "upload_time": "2014-06-27T20:14:18", "url": "https://files.pythonhosted.org/packages/6e/20/42b602bed4236ac4176d15a41896b6b9bcabd02b92b0cbe9e2e351793e8f/Webster-0.3.dev7.g622a542.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "527572e4396211269406fbe91f0fd83c", "sha256": "b5a9bf39dacc17119c7fb8f86d88fba97469645833b27c58905d3f93371b0038" }, "downloads": -1, "filename": "Webster-0.5.tar.gz", "has_sig": false, "md5_digest": "527572e4396211269406fbe91f0fd83c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6767, "upload_time": "2014-06-27T21:09:50", "url": "https://files.pythonhosted.org/packages/15/d1/6c5fcb5e73b29d5c7250765a350d81f12c6de8f095c86aadcd268df0252c/Webster-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "9ef5cb1a4b41017ae8225550cd8f228b", "sha256": "e1a0fceb50c6940f420d4f60ee29355e03b0570aa97e449580a18a98b91b22f1" }, "downloads": -1, "filename": "Webster-0.5.1.tar.gz", "has_sig": false, "md5_digest": "9ef5cb1a4b41017ae8225550cd8f228b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6793, "upload_time": "2014-06-27T21:19:30", "url": "https://files.pythonhosted.org/packages/fc/89/24a650aa5722dadb08d681d0344c0293c601e163c3101ee2c9947b38ad57/Webster-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "204de271d92a9c8d456b7032d1eb9260", "sha256": "44751f33e28af36175a90a678177da90a9de86450256314783d36766187bd559" }, "downloads": -1, "filename": "Webster-0.5.2.tar.gz", "has_sig": false, "md5_digest": "204de271d92a9c8d456b7032d1eb9260", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6858, "upload_time": "2014-06-27T21:51:23", "url": "https://files.pythonhosted.org/packages/25/4d/e02626dedb85ea6e9dfead727f43fc40b4c3b51dec096932cb50b12fe01f/Webster-0.5.2.tar.gz" } ], "0.5.dev7.g622a542": [ { "comment_text": "", "digests": { "md5": "26880442aa1700e3208b197f3f4954e7", "sha256": "01939f98db0be0606081e0f192c798181dc10ccaf73354cae893a1a9b56a7908" }, "downloads": -1, "filename": "Webster-0.5.dev7.g622a542.tar.gz", "has_sig": false, "md5_digest": "26880442aa1700e3208b197f3f4954e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6786, "upload_time": "2014-06-27T20:41:20", "url": "https://files.pythonhosted.org/packages/7a/47/0a36bb6bf46f91d024faea7ea326d9fec5f94d52c2f600d2d87aa8dd8ef5/Webster-0.5.dev7.g622a542.tar.gz" } ], "1038ad4": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "204de271d92a9c8d456b7032d1eb9260", "sha256": "44751f33e28af36175a90a678177da90a9de86450256314783d36766187bd559" }, "downloads": -1, "filename": "Webster-0.5.2.tar.gz", "has_sig": false, "md5_digest": "204de271d92a9c8d456b7032d1eb9260", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6858, "upload_time": "2014-06-27T21:51:23", "url": "https://files.pythonhosted.org/packages/25/4d/e02626dedb85ea6e9dfead727f43fc40b4c3b51dec096932cb50b12fe01f/Webster-0.5.2.tar.gz" } ] }