LazyLoader

class compas_fab.utilities.LazyLoader(local_name, parent_module_globals, name)[source]

Bases: module

Lazily import a module, mainly to avoid pulling in large dependencies.

contrib, and ffmpeg are examples of modules that are large and not always needed, and this allows them to only be loaded when they are used.

Methods

__init__(local_name, parent_module_globals, name)

Initialize self.