{ "info": { "author": "Kazbek Byasov", "author_email": "nmb.ten@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Installation:\n pip install py_w3c\n\nUsage:\n 1. As library -\n\n # import HTML validator\n from py_w3c.validators.html.validator import HTMLValidator\n\n # create validator instance\n vld = HTMLValidator()\n\n # validate\n vld.validate('http://example.com')\n\n # look for errors\n print(vld.errors) # list with dicts\n\n # look for warnings\n print(vld.warnings)\n\n There are 3 methods of validating:\n 1. validate url - HTMLValidator().validate(url)\n 2. validate file - HTMLValidator().validate_file(filename_or_file) # StringIO aware.\n 3. validate fragment - HTMLValidator().validate_fragment(fragment_string)\n\n You can pass charset while creating validator instance. This will force validator to use passed charset for validation.\n Example (python).\n vld = HTMLValidator(charset='utf-8')\n\n # now validator uses utf-8 charset ignoring charset in the document content\n vld.validate('http://example.com')\n\n 2. As standalone script - (not very usefull right now)\n Now only URL validating is allowed for standalone script.\n $ w3c_validate http://example.com\n Prints warnings and errors to the console.\n\nRunning tests.\n$ python setup.py test\nThis command will install tox and run tests for py2.7 and py3.4.\n\nTo run test for one python version use (py2.7 for example):\n$ python setup.py test -a \"-epy27\"", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/py_w3c/", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "py_w3c", "package_url": "https://pypi.org/project/py_w3c/", "platform": "", "project_url": "https://pypi.org/project/py_w3c/", "project_urls": { "Homepage": "http://pypi.python.org/pypi/py_w3c/" }, "release_url": "https://pypi.org/project/py_w3c/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "W3C services for python.", "version": "0.3.1" }, "last_serial": 2566610, "releases": { "0.1.0": [], "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1c994596bb34db7ab397fdfd3807a7e9", "sha256": "ccea0bdc9d955619379791246c7452277e7b3a165b085958c80af49f5e4d20f5" }, "downloads": -1, "filename": "py_w3c-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1c994596bb34db7ab397fdfd3807a7e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6191, "upload_time": "2014-11-16T14:44:42", "url": "https://files.pythonhosted.org/packages/7e/8c/cfad557682aaeda8fa374d61c7e5cad59792885c92195c7bd7e007e6db92/py_w3c-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5cf15a2b5bdffc8616fcc41a6c16e680", "sha256": "d642e87505aa3ee14a37f98063e75b69714555ac6d9b1226d7db92937788427a" }, "downloads": -1, "filename": "py_w3c-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5cf15a2b5bdffc8616fcc41a6c16e680", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7553, "upload_time": "2016-07-09T11:50:01", "url": "https://files.pythonhosted.org/packages/1c/ab/4fdecf3233afcd7e327bd83cd83281f315416bbf963f91b5a99b3323dfb2/py_w3c-0.2.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "23fbffac0c2abc2b5e8555bee8d9c770", "sha256": "b643360fb2bf8fe87d7dc566c426a3417bfc09616b79966092fa0ecfabe92e83" }, "downloads": -1, "filename": "py_w3c-0.3.1.tar.gz", "has_sig": false, "md5_digest": "23fbffac0c2abc2b5e8555bee8d9c770", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6528, "upload_time": "2017-01-11T08:04:28", "url": "https://files.pythonhosted.org/packages/a5/ef/b45913e890e0db1c0f498aa4f2369561e120a26a77d2b073979b5fe7a004/py_w3c-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "23fbffac0c2abc2b5e8555bee8d9c770", "sha256": "b643360fb2bf8fe87d7dc566c426a3417bfc09616b79966092fa0ecfabe92e83" }, "downloads": -1, "filename": "py_w3c-0.3.1.tar.gz", "has_sig": false, "md5_digest": "23fbffac0c2abc2b5e8555bee8d9c770", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6528, "upload_time": "2017-01-11T08:04:28", "url": "https://files.pythonhosted.org/packages/a5/ef/b45913e890e0db1c0f498aa4f2369561e120a26a77d2b073979b5fe7a004/py_w3c-0.3.1.tar.gz" } ] }