The openstack_dashboard.openstack.common.importutils ModuleΒΆ

Import related utilities and helper functions.

openstack_dashboard.openstack.common.importutils.import_class(import_str)[source]

Returns a class from a string including module and class.

openstack_dashboard.openstack.common.importutils.import_module(import_str)[source]

Import a module.

openstack_dashboard.openstack.common.importutils.import_object(import_str, *args, **kwargs)[source]

Import a class and return an instance of it.

openstack_dashboard.openstack.common.importutils.import_object_ns(name_space, import_str, *args, **kwargs)[source]

Tries to import object from default namespace.

Imports a class and return an instance of it, first by trying to find the class in a default namespace, then failing back to a full path if not found in the default namespace.

openstack_dashboard.openstack.common.importutils.import_versioned_module(version, submodule=None)[source]
openstack_dashboard.openstack.common.importutils.try_import(import_str, default=None)[source]

Try to import a module and if it fails return default.

Previous topic

The openstack_dashboard.openstack.common.fileutils Module

Next topic

The openstack_dashboard.openstack.common.timeutils Module

This Page