Metadata-Version: 1.2
Name: rgb2ansi
Version: 1.0.1
Summary: Color strings for terminal ouput (ANSI 256 colors) using CSS-style ``rgb`` notation.
Home-page: https://github.com/brutasse/rgb2ansi
Author: Bruno Renié
Author-email: UNKNOWN
License: BSD
Description-Content-Type: UNKNOWN
Description: rgb2ansi
        ========
        
        Color strings for terminal ouput (ANSI 256 colors) using CSS-style ``rgb``
        notation.
        
        Installation
        ------------
        
        ::
        
            pip install rgb2ansi
        
        Usage
        -----
        
        .. code-block:: python
        
            from rgb2ansi import color
        
            print(color("Hello", fg='4444ff'), color("world!", bg='ff4400'))
        
        
        You can pass a foreground (text) color, a background color, or both. The
        following inputs are accepted as color parameters:
        
        * Hex strings, e.g. ``ff4400``.
        * Byte strings, e.g. ``b'\xff\x44\x00'``
        * Sequences of integers, e.g. ``(255, 68, 0)``
        
        Note that ``color()`` is lossy: it simply rounds the color to the closest
        8-bit color available.
        
        License
        -------
        
        BSD 3-clause.
        
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Requires-Python: >=3.6
