from datetime import datetime


def format_timestamp(value: int, dt_format: str = r"%d %b %Y %I:%M %p") -> str:
    """Formats a timestamp int into a datetime string"""
    return datetime.fromtimestamp(value).strftime(dt_format)