import platform


def get_meshkernel_name() -> str:
    """Get the filename of the MeshKernel library

    Raises:
        OSError: If the operating system is not supported

    Returns:
        str: Filename of the MeshKernel library
    """
    system = platform.system()
    if system == "Windows":
        return "MeshKernelApi.dll"
    elif system == "Linux":
        return "libMeshKernelApi.so"
    elif system == "Darwin":
        return "libMeshKernelApi.dylib"
    else:
        raise OSError(f"Unsupported operating system: {system}")