def get_simple_name(component): component = resolve_alias(component) if six.callable(component): return component.__name__ return str(component)