diplomat.utils.lazy_importΒΆ

Contains utilities for lazily importing and resolving python modules.

Functions

resolve_lazy_imports(func)

Decorator, immediately resolves any lazily imported modules the first time the decorated function is called.

verify_existence_of(name)

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

Classes

ImportFunctions

A set of import functions that can be used by the lazy importer object. Includes the following import functions:

LazyImporter(name, pkg, import_function, ...)

Represents a Lazily Imported Object.