import click


def pretty(input_, indent=0):
    """
    Pretty print dictionary

    :param input_: input
    :param indent: number of tabs
    :return: None
    """

    def get_readable_key(key_):
        # capitalize and remove _
        if '_' in key_:
            return key_.upper().replace('_', ' ')
        else:
            return key_.upper()

    if isinstance(input_, dict):
        for key, value in input_.items():
            # only print if there's something
            if value:
                click.secho('\t' * indent + get_readable_key(str(key)), fg='green', bold=True)
                if isinstance(value, dict):
                    pretty(value, indent + 1)
                else:
                    click.echo('\t' * (indent + 1) + str(value))
    else:
        click.echo(input_)