from pathlib import Path


def get_file_stem(file: str) -> str:
    """
    Returns file stem

    :param file: Filename with or without path
    :return: just the filename without extension
    """
    return Path(file).stem