{ "info": { "author": "Akhil Harihar", "author_email": "hariharakhil@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# wtforms-validators\nAdditional validators for wtforms used in web applications frequently.\n\n## Installation\n```\npip install wtforms-validators\n```\n\n## Validators\n\n- [Accepted](#Accepted)\n- [ActiveUrl](#ActiveUrl)\n- [Alpha](#Alpha)\n- [AlphaDash](#AlphaDash)\n- [AlphaSpace](#AlphaSpace)\n- [AlphaNumeric](#AlphaNumeric)\n- [NotEqualTo](#NotEqualTo)\n- [Integer](#Integer)\n- [IsJson](#IsJson)\n- [DisposableEmail](#DisposableEmail)\n\n__Examples__\u00a0:\n\n```\nfrom wtforms_validators import ActiveUrl, Alpha\n...\n\nclass SignupForm(Form):\n login_id = StringField('login Id', [DataRequired(), Alpha()])\n url = StringField('profile url', [DataRequired(), ActiveUrl()])\n```\n\n### Accepted:\nValidates if the field is yes, on, 1, true or `True`. Can be used for validating terms of service, opt-ins etc.,\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### ActiveUrl:\nValidates if the URL is active by checking A or AAAA DNS records.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### Alpha:\nValidates the field to include alphabetic characters only.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### AlphaDash:\nValidates the field to only include alphabets and dash(`-`).\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### AlphaSpace:\nValidates the field to only include alphabets and spaces.\n\n`Note:` This validator does not strip the field's value, so input containing only spaces will still be valid. You will either have to register a filter to strip input data or add another validator to check if the field cannot contain only spaces.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### AlphaNumeric:\nValidates the field to only include alphabets and numbers.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### NotEqualTo:\nChecks the field under validation is not equal to another field.\n\nParameters:\n* fieldname\u00a0\u2013\u00a0The name of the other field.\n* message - (optional) - Error message to raise in case of a validation error.\n\n### Integer\nValidates the field to only include numbers.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### IsJson\nThe field under validation must be a valid JSON string.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\n### DisposableEmail\nThe email address should not belong to a disposable email service provider.\n\nParameters:\n* message - (optional) - Error message to raise in case of a validation error.\n\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/akhilharihar/wtforms-validators", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "wtforms-validators", "package_url": "https://pypi.org/project/wtforms-validators/", "platform": "", "project_url": "https://pypi.org/project/wtforms-validators/", "project_urls": { "Homepage": "https://github.com/akhilharihar/wtforms-validators" }, "release_url": "https://pypi.org/project/wtforms-validators/1.0.0/", "requires_dist": [ "WTForms", "dnspython", "is-disposable-email" ], "requires_python": ">=3.0", "summary": "Validators for wtforms package", "version": "1.0.0" }, "last_serial": 5466423, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "46a1c0db5e9c6294adb5c02ca1c9919d", "sha256": "b61e2da9b3cb8ce77e59550168eb9c445b13f4ad3b262c26b0bb2801aed2462e" }, "downloads": -1, "filename": "wtforms_validators-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "46a1c0db5e9c6294adb5c02ca1c9919d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 4729, "upload_time": "2019-06-29T21:46:07", "url": "https://files.pythonhosted.org/packages/ca/a8/347ab9f43023faf275857469424425637c297746ad0cbe3d50379d6c6543/wtforms_validators-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84027a52dab34c466343fc03b51e704c", "sha256": "6bafc63fb4a000d097da010d8e89dddffe93e894f2ff91069117f774b93e1f7c" }, "downloads": -1, "filename": "wtforms-validators-1.0.0.tar.gz", "has_sig": false, "md5_digest": "84027a52dab34c466343fc03b51e704c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 3544, "upload_time": "2019-06-29T21:46:09", "url": "https://files.pythonhosted.org/packages/c4/b7/83c8a2a1dfa7381bc17219f41ef4e6888f44b2d1f42807df45b269a038d8/wtforms-validators-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "46a1c0db5e9c6294adb5c02ca1c9919d", "sha256": "b61e2da9b3cb8ce77e59550168eb9c445b13f4ad3b262c26b0bb2801aed2462e" }, "downloads": -1, "filename": "wtforms_validators-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "46a1c0db5e9c6294adb5c02ca1c9919d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0", "size": 4729, "upload_time": "2019-06-29T21:46:07", "url": "https://files.pythonhosted.org/packages/ca/a8/347ab9f43023faf275857469424425637c297746ad0cbe3d50379d6c6543/wtforms_validators-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84027a52dab34c466343fc03b51e704c", "sha256": "6bafc63fb4a000d097da010d8e89dddffe93e894f2ff91069117f774b93e1f7c" }, "downloads": -1, "filename": "wtforms-validators-1.0.0.tar.gz", "has_sig": false, "md5_digest": "84027a52dab34c466343fc03b51e704c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0", "size": 3544, "upload_time": "2019-06-29T21:46:09", "url": "https://files.pythonhosted.org/packages/c4/b7/83c8a2a1dfa7381bc17219f41ef4e6888f44b2d1f42807df45b269a038d8/wtforms-validators-1.0.0.tar.gz" } ] }