from typing import Any


def simple_repr(record: Any) -> str:
    """
    Simple renderer for a SQL table
    :param record: A table record.
    :return: A string description of the record.
    """
    out = '{:28}: {}\n'.format('token', record.token)
    columns = None
    # get the columns of the table, we'd like to print out only these fields because
    # jupyter notebook sometimes messes them with back_populate fields.
    if hasattr(record, '__table__'):
        columns = {c for c in record.__table__.columns.keys()}

    for field, value in vars(record).items():
        if columns and field not in columns:
            continue
        if not (field[0] == '_' or field == 'token'):
            out += '{:28}: {}\n'.format(field, value)
    return out + '\n'