# Path: colr/codes.py
# def _build_code_nums() -> Dict[str, Dict[str, int]]:
# def _build_code_nums_reverse() -> Dict[str, Dict[int, str]]:
# def _build_codes() -> Dict[str, Dict[str, str]]:
# def _build_codes_reverse(
#         codes: Dict[str, Dict[str, str]]) -> Dict[str, Dict[str, str]]:
# def _add_alias_names(d: Dict[str, Dict[str, str]]) -> None:
# 
# Path: colr/name_data.py
# def create_term_name_c_array(name=None):
# def create_name_data_c_array(
#         name=None, struct=None, no_members=False, no_hex=False):
#     def create_elem_def(knownname, info):
#     def create_full_elem_def(knownname, info):
# def get_x11_rgb(fix_names=False):


import re
    import sys
from types import GeneratorType
from typing import (
    Any,
    Optional,
    Tuple,
    Union,
    cast,
)
from .codes import (
    code_nums,
    code_nums_reverse,
)
from .name_data import names as name_data

Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
* /usr/share/X11/rgb.txt

-------------------------------------------------------------------------------

    The MIT License (MIT)

    Copyright (c) 2015-2017 Christopher Welborn

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
"""

# Path: colr/codes.py
# def _build_code_nums() -> Dict[str, Dict[str, int]]:
# def _build_code_nums_reverse() -> Dict[str, Dict[int, str]]:
# def _build_codes() -> Dict[str, Dict[str, str]]:
# def _build_codes_reverse(
#         codes: Dict[str, Dict[str, str]]) -> Dict[str, Dict[str, str]]:
# def _add_alias_names(d: Dict[str, Dict[str, str]]) -> None:
# 
# Path: colr/name_data.py
# def create_term_name_c_array(name=None):
# def create_name_data_c_array(
#         name=None, struct=None, no_members=False, no_hex=False):
#     def create_elem_def(knownname, info):
#     def create_full_elem_def(knownname, info):
# def get_x11_rgb(fix_names=False):


# Path: colr/trans.py
import re
    import sys
from types import GeneratorType
from typing import (
    Any,
    Optional,
    Tuple,
    Union,
    cast,
)
from .codes import (
    code_nums,
    code_nums_reverse,
)
from .name_data import names as name_data


Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
* /usr/share/X11/rgb.txt

-------------------------------------------------------------------------------

    The MIT License (MIT)

    Copyright (c) 2015-2017 Christopher Welborn

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
"""

from .name_data import names as name_data