iwopy.utils.import_module(name, package=None, hint=None)[source]

Imports a module dynamically.

Parameters

name: str

The module name

package: str, optional

The explicit package name, deduced from name if not given

hint: str, optional

Installation advice, in case the import fails

Returns

mdl: module

The imnported package