dgs.utils.loader

Utility functions for loading instances.

This module does not provide functionality for loading Modules.

Module Functions

get_instance(instance, instances, inst_class)

get_instance_from_name(name, instances)

Given the name of an instance and the dict containing a mapping from name to class, get the class.

get_registered_class_names(module_type)

Get the names of all classes registered in a given module.

get_registered_class_types(module_type)

Get the class types of all classes registered in a given module.

get_registered_classes(module_type)

register_instance(name, instance, instances, ...)

Given an instance with a name, add it to the available instances.