from pathlib import Path


def get_project_root() -> Path:
    """Get the root dir of the project (one level above package).
    Used to get paths relative to the project, mainly for placing log files

    This function assumes that this module is at project_root/package_dir/utils_dir/module.py
    If this structure changes, the func must change.
    """
    return Path(__file__).parent.parent.parent