voxcity.utils.lazy

Lazy third-party module loading built on importlib.util.LazyLoader.

Functions

lazy_import(name)

Return module name without executing it until first attribute access.

Module Contents

voxcity.utils.lazy.lazy_import(name: str)[source]

Return module name without executing it until first attribute access.

Already-imported modules are returned as-is. A missing module raises ModuleNotFoundError immediately at the call site, so optional dependencies still fail with a clear error where they are declared.