def default_category_for_module(module):
 if isinstance(module, str):
  module = __import__(module, fromlist=[''])
 name = module.__name__.rsplit('.', 1)[(-1)]
 qualified_name = module.__name__
 return CategoryDescription(name=name, qualified_name=qualified_name)

def default_category_for_module ( module ) : if isinstance ( module , str ) : module = __import__ ( module , fromlist = [ '' ] ) name = module . __name__ . rsplit ( '.' , 1 ) [ ( - 1 ) ] qualified_name = module . __name__ return CategoryDescription ( name = name , qualified_name = qualified_name )
return a default constructed :class:categorydescription for a module .