1Metadata-Version: 1.1 2Name: webcolors 3Version: 1.8.1 4Summary: A library for working with color names and color values formats defined by HTML and CSS. 5Home-page: https://github.com/ubernostrum/webcolors 6Author: James Bennett 7Author-email: james@b-list.org 8License: BSD 3-Clause 9Description: .. -*-restructuredtext-*- 10 11 .. image:: https://travis-ci.org/ubernostrum/webcolors.svg?branch=master 12 :target: https://travis-ci.org/ubernostrum/webcolors 13 14 ``webcolors`` is a Python (2.7, 3.4+) module for working with HTML/CSS 15 color definitions. 16 17 Support is included for normalizing and converting between the 18 following formats (RGB colorspace only; conversion to/from HSL can be 19 handled by the ``colorsys`` module in the Python standard library): 20 21 * Specification-defined color names 22 23 * Six-digit hexadecimal 24 25 * Three-digit hexadecimal 26 27 * Integer ``rgb()`` triplet 28 29 * Percentage ``rgb()`` triplet 30 31 For example: 32 33 .. code-block:: python 34 35 >>> import webcolors 36 >>> webcolors.hex_to_name(u'#daa520') 37 u'goldenrod' 38 39 Implementations are also provided for the HTML5 color parsing and 40 serialization algorithms. For example, parsing the infamous 41 "chucknorris" string into an rgb() triplet: 42 43 .. code-block:: python 44 45 >>> import webcolors 46 >>> webcolors.html5_parse_legacy_color(u'chucknorris') 47 HTML5SimpleColor(192, 0, 0) 48 49 Full documentation is `available online <https://webcolors.readthedocs.io/>`_. 50 51Platform: UNKNOWN 52Classifier: Development Status :: 5 - Production/Stable 53Classifier: Environment :: Web Environment 54Classifier: Intended Audience :: Developers 55Classifier: License :: OSI Approved :: BSD License 56Classifier: Operating System :: OS Independent 57Classifier: Programming Language :: Python 58Classifier: Programming Language :: Python :: 2 59Classifier: Programming Language :: Python :: 3 60Classifier: Programming Language :: Python :: 2.7 61Classifier: Programming Language :: Python :: 3.4 62Classifier: Programming Language :: Python :: 3.5 63Classifier: Programming Language :: Python :: 3.6 64Classifier: Topic :: Utilities 65