def key_type(secret):
    """Return string value for keytype depending on passed secret bool.

    Possible values returned are: `secret`, `public`.

    .. Usage::

        >>> key_type(secret=True)
        'secret'

        >>> key_type(secret=False)
        'public'
    """
    return "secret" if secret else "public"