import logging


def get_stream_handler(
    formatter: logging.Formatter, level: int
) -> logging.StreamHandler:
    """
    Create a ready-to-go stream handler for a Logger.

    Parameters
    ----------
    formatter : logging.Formater
        Formatter to apply to the handler.
    level : int
        Level to apply to the stream handler.

    Returns
    -------
    logging.StreamHandler
    """

    handler = logging.StreamHandler()
    handler.setFormatter(formatter)
    handler.setLevel(level)
    return handler