quantify_scheduler.helpers.inspect
Python inspect helper functions.
Module Contents
Functions
|
Returns a dictionary of class names by class types of the |
- get_classes(*modules: types.ModuleType) Dict[str, Type[Any]] [source]
Returns a dictionary of class names by class types of the modules given as arguments.
from quantify_scheduler.helpers import inspect from my_module import foo class_dict: Dict[str, type] = inspect.get_classes(foo) print(class_dict) // { 'Bar': my_module.foo.Bar }
- Parameters
modules – Variable length of modules.
- Returns
A dictionary containing the class names by class reference.