{ "info": { "author": "Geoffrey Sneddon", "author_email": "geoffers@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "wcag-contrast-ratio\n===================\n\nA library for computing contrast ratios, as required by `WCAG 2.0`.\n\nUsage\n-----\n\nSimple usage follows this pattern:\n\n.. code-block:: python\n\n >> import wcag_contrast_ratio as contrast\n >> black = (0.0, 0.0, 0.0)\n >> white = (1.0, 1.0, 1.0)\n >> contrast.rgb(black, white)\n 21.0\n\nTwo useful helper functions are provided, to check if contrast meets\nthe required level:\n\n.. code-block:: python\n\n >> import wcag_contrast_ratio as contrast\n >> contrast.passes_AA(21.0)\n True\n >> contrast.passes_AAA(21.0)\n True\n\n.. _WCAG 2.0: http://www.w3.org/TR/WCAG20/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gsnedders/wcag-contrast-ratio", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "wcag-contrast-ratio", "package_url": "https://pypi.org/project/wcag-contrast-ratio/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wcag-contrast-ratio/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/gsnedders/wcag-contrast-ratio" }, "release_url": "https://pypi.org/project/wcag-contrast-ratio/0.9/", "requires_dist": null, "requires_python": null, "summary": "A library for computing contrast ratios, as required by WCAG 2.0", "version": "0.9" }, "last_serial": 1657578, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "5ad2879d24d8558e3ac67843091da33b", "sha256": "69192b8e5c0a7d0dc5ff1187eeb3e398141633a4bde51c69c87f58fe87ed361c" }, "downloads": -1, "filename": "wcag-contrast-ratio-0.9.tar.gz", "has_sig": false, "md5_digest": "5ad2879d24d8558e3ac67843091da33b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2131, "upload_time": "2015-07-30T21:51:40", "url": "https://files.pythonhosted.org/packages/1f/ec/faf3e7ee407a00081372632cdd9858302c8a9bb071e3767f8dac2ac3f9e2/wcag-contrast-ratio-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ad2879d24d8558e3ac67843091da33b", "sha256": "69192b8e5c0a7d0dc5ff1187eeb3e398141633a4bde51c69c87f58fe87ed361c" }, "downloads": -1, "filename": "wcag-contrast-ratio-0.9.tar.gz", "has_sig": false, "md5_digest": "5ad2879d24d8558e3ac67843091da33b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2131, "upload_time": "2015-07-30T21:51:40", "url": "https://files.pythonhosted.org/packages/1f/ec/faf3e7ee407a00081372632cdd9858302c8a9bb071e3767f8dac2ac3f9e2/wcag-contrast-ratio-0.9.tar.gz" } ] }