from pathlib import Path


def get_file_stem_name(file_path: str):
    """Gets the stem of a file path.

    Example::

        >>> get_file_stem_name("/home/user/Downloads/repo/test.txt")
        "test"

    Args:
        file_path (str): the path to extract the stem from

    Returns:
        str: the stem of the file
    """
    return Path(file_path).stem