ebonite.utils.importing module

ebonite.utils.importing.import_module(name, package=None)[source]

Import a module.

The ‘package’ argument is required when performing a relative import. It specifies the package to use as the anchor point from which to resolve the relative import to an absolute import.

ebonite.utils.importing.import_string(dotted_path)[source]

Import a dotted module path and return the attribute/class designated by the last name in the path. Raise ImportError if the import failed.

ebonite.utils.importing.module_importable(module_name)[source]
ebonite.utils.importing.module_imported(module_name)[source]

Checks if module already imported

Parameters:module_name – module name to check
Returns:True or False