diplomat.utils.lazy_import.verify_existence_of

diplomat.utils.lazy_import.verify_existence_of(name: str)[source]

Verifies a package exists without importing it, otherwise throws an ImportError.

Parameters:

name – The name of the package to test for existence.

Raises:

ImportError if the provided module can’t be found.