def enum(**named_values):
    """
    Named enum. Doesnt need to use the Enum.NAME.value with the built in Enum

    Example
    -------
    >>> MY_CONSTANTS = enum(FOO="foo", BAR="bar")
    >>> MY_CONSTANTS.FOO
    "foo"

    Parameters
    ----------
    named_values: dict
        key is parameter name and value is parameter value (eg string)

    Returns
    -------
    Enum class
    """
    return type("Enum", (), named_values)