import pprint


def pretty_str(obj):
    """Wrapper for the pprint.pformat function that generates a formatted
    string representation of the input object.
    """
    return pprint.pformat(obj, indent=4, width=79)