{ "info": { "author": "Carlson Santana Cruz", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "HaTeMiLe for Python\n===================\n\nHaTeMiLe (HTML Accessible) is a library that can convert a HTML code in a HTML code more accessible.\n\n## Accessibility solutions\n\n* [Associate HTML elements](https://github.com/hatemile/hatemile-for-python/wiki/Associate-HTML-elements);\n* [Provide a polyfill to CSS Speech and CSS Aural properties](https://github.com/hatemile/hatemile-for-python/wiki/Provide-a-polyfill-to-CSS-Speech-and-CSS-Aural-properties);\n* [Display inacessible informations of page](https://github.com/hatemile/hatemile-for-python/wiki/Display-inacessible-informations-of-page);\n* [Enable all functionality of page available from a keyboard](https://github.com/hatemile/hatemile-for-python/wiki/Enable-all-functionality-of-page-available-from-a-keyboard);\n* [Improve the acessibility of forms](https://github.com/hatemile/hatemile-for-python/wiki/Improve-the-acessibility-of-forms);\n* [Provide accessibility resources to navigate](https://github.com/hatemile/hatemile-for-python/wiki/Provide-accessibility-resources-to-navigate).\n\n## Documentation\n\nTo generate the full API documentation of HaTeMiLe of Python:\n\n1. [Install, create and activate a virtualenv](https://packaging.python.org/guides/installing-using-pip-and-virtualenv/);\n2. [Install dependencies](https://packaging.python.org/guides/installing-using-pip-and-virtualenv/#using-requirements-files);\n3. [Execute the API docs of sphinx in `docs` directory](https://samnicholls.net/2016/06/15/how-to-sphinx-readthedocs/);\n ```bash\n sphinx-apidoc -e -f -o _modules/ ../hatemile\n make html\n ```\n4. Open the `docs/_build/html/index.html` with an internet browser.\n\n## Import the library to your project\n\nTo install the HaTeMiLe for Python library, execute these command in terminal:\n\n```bash\npip install hatemile\n```\n\n## Usage\n\nImport all needed classes:\n\n```python\nfrom hatemile.implementation.assoc import AccessibleAssociationImplementation\nfrom hatemile.implementation.css import AccessibleCSSImplementation\nfrom hatemile.implementation.display import AccessibleDisplayImplementation\nfrom hatemile.implementation.event import AccessibleEventImplementation\nfrom hatemile.implementation.form import AccessibleFormImplementation\nfrom hatemile.implementation.navig import AccessibleNavigationImplementation\nfrom hatemile.util.configure import Configure\nfrom hatemile.util.css.tinycss.tinycssparser import TinyCSSParser\nfrom hatemile.util.html.bs.bshtmldomparser import BeautifulSoupHTMLDOMParser\n```\nInstanciate the configuration, the parsers and solution classes and execute them:\n\n```python \nconfigure = Configure()\n\nparser = BeautifulSoupHTMLDOMParser(html_code)\ncss_parser = TinyCSSParser(parser, current_url)\n\nevent = AccessibleEventImplementation(parser)\ncss = AccessibleCSSImplementation(parser, css_parser, configure)\nform = AccessibleFormImplementation(parser)\nnavigation = AccessibleNavigationImplementation(parser, configure)\nassociation = AccessibleAssociationImplementation(parser)\ndisplay = AccessibleDisplayImplementation(parser, configure)\n\nevent.make_accessible_all_drag_and_drop_events()\nevent.make_accessible_all_click_events()\nevent.make_accessible_all_hover_events()\n\nform.mark_all_required_fields()\nform.mark_all_range_fields()\nform.mark_all_autocomplete_fields()\nform.mark_all_invalid_fields()\n\nnavigation.provide_navigation_by_all_headings()\nnavigation.provide_navigation_by_all_skippers()\nnavigation.provide_navigation_to_all_long_descriptions()\n\nassociation.associate_all_data_cells_with_header_cells()\nassociation.associate_all_labels_with_fields()\n\ncss.provide_all_speak_properties()\n\ndisplay.display_all_shortcuts()\ndisplay.display_all_roles()\ndisplay.display_all_cell_headers()\ndisplay.display_all_waiaria_states()\ndisplay.display_all_links_attributes()\ndisplay.display_all_titles()\ndisplay.display_all_languages()\ndisplay.display_all_alternative_text_images()\n\nnavigation.provide_navigation_by_all_skippers()\ndisplay.display_all_shortcuts()\n\nprint(parser.get_html())\n```\n\n## Contributing\n\nIf you want contribute with HaTeMiLe for Python, read [contributing guidelines](https://github.com/hatemile/hatemile-for-python/blob/master/CONTRIBUTING.md).\n\n## See also\n* [HaTeMiLe for CSS](https://github.com/hatemile/hatemile-for-css)\n* [HaTeMiLe for JavaScript](https://github.com/hatemile/hatemile-for-javascript)\n* [HaTeMiLe for Java](https://github.com/hatemile/hatemile-for-java)\n* [HaTeMiLe for PHP](https://github.com/hatemile/hatemile-for-php)\n* [HaTeMiLe for Ruby](https://github.com/hatemile/hatemile-for-ruby)\n\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/hatemile/hatemile-for-python", "keywords": "", "license": "Apache2", "maintainer": "", "maintainer_email": "", "name": "hatemile", "package_url": "https://pypi.org/project/hatemile/", "platform": "", "project_url": "https://pypi.org/project/hatemile/", "project_urls": { "Homepage": "https://github.com/hatemile/hatemile-for-python" }, "release_url": "https://pypi.org/project/hatemile/2.0.1/", "requires_dist": [ "beautifulsoup4 (>=4.6.0)", "certifi (>=2018.4.16)", "chardet (>=3.0.4)", "idna (>=2.6)", "requests (>=2.18.4)", "tinycss (>=0.4)", "urllib3 (>=1.22)", "alabaster (>=0.7.10); extra == 'dev'", "astroid (>=1.6.5); extra == 'dev'", "atomicwrites (>=1.1.5); extra == 'dev'", "attrs (>=18.1.0); extra == 'dev'", "Babel (>=2.6.0); extra == 'dev'", "docutils (>=0.14); extra == 'dev'", "imagesize (>=1.0.0); extra == 'dev'", "isort (>=4.3.4); extra == 'dev'", "Jinja2 (>=2.10); extra == 'dev'", "lazy-object-proxy (>=1.3.1); extra == 'dev'", "MarkupSafe (>=1.0); extra == 'dev'", "mccabe (>=0.6.1); extra == 'dev'", "more-itertools (>=4.2.0); extra == 'dev'", "packaging (>=17.1); extra == 'dev'", "pluggy (>=0.6.0); extra == 'dev'", "py (>=1.5.4); extra == 'dev'", "pycodestyle (>=2.4.0); extra == 'dev'", "Pygments (>=2.2.0); extra == 'dev'", "pylint (>=1.9.2); extra == 'dev'", "pyparsing (>=2.2.0); extra == 'dev'", "pytest (>=3.6.2); extra == 'dev'", "pytz (>=2018.4); extra == 'dev'", "six (>=1.11.0); extra == 'dev'", "snowballstemmer (>=1.2.1); extra == 'dev'", "Sphinx (>=1.7.5); extra == 'dev'", "sphinxcontrib-websupport (>=1.1.0); extra == 'dev'", "wrapt (>=1.10.11); extra == 'dev'" ], "requires_python": "", "summary": "HaTeMiLe is a library that can convert a HTML code in a HTML code more accessible.", "version": "2.0.1" }, "last_serial": 4021553, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "280472346f8870a9b15a3cf48ad61e02", "sha256": "35fd16eae5d251dc2529694321cdde9e4070fbe1d735df6107e76f386bb28bf0" }, "downloads": -1, "filename": "hatemile-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "280472346f8870a9b15a3cf48ad61e02", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 68268, "upload_time": "2018-06-30T19:33:50", "url": "https://files.pythonhosted.org/packages/ba/fd/740d07278f11fc37f2d32cc897188613401bd19db642ac25b36b55369fc6/hatemile-2.0.0-py3-none-any.whl" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "f16732e7d956f322ead83c50b283e4cf", "sha256": "f69040882ff9cb766a1984280b983f3e9026465cdb8da678b88dff04129b66c3" }, "downloads": -1, "filename": "hatemile-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f16732e7d956f322ead83c50b283e4cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 68203, "upload_time": "2018-07-02T03:49:23", "url": "https://files.pythonhosted.org/packages/1b/8d/d5fc1a2ff1c13cf3e430b7fc240f863f7ea4175b5b2ac556d565243425e4/hatemile-2.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f16732e7d956f322ead83c50b283e4cf", "sha256": "f69040882ff9cb766a1984280b983f3e9026465cdb8da678b88dff04129b66c3" }, "downloads": -1, "filename": "hatemile-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f16732e7d956f322ead83c50b283e4cf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 68203, "upload_time": "2018-07-02T03:49:23", "url": "https://files.pythonhosted.org/packages/1b/8d/d5fc1a2ff1c13cf3e430b7fc240f863f7ea4175b5b2ac556d565243425e4/hatemile-2.0.1-py3-none-any.whl" } ] }