rberga06.utils.imports#

Imports utilities.

Functions

absolutize_obj_name(name, root)

Absolutize name relatively to root.

fake_module(name, /, *[, pkg, parents_know, ...])

Create and register a “fake” module.

import_from(path, name, /, *[, inject])

Import a module (or package) at the given path.

import_or_fake(name[, is_pkg, parents_know])

Import the given module or package if possible, else fake it.

pythonize(id, /, *[, ignore])

Return a valid Python identifier inspired by name.