getModuleMembers

emlib.doctools.getModuleMembers(module, exclude=None, classesFirst=True)[source]

Returns a dictionary of {membername:member} in order of appearence

The difference with inspect.getmembers(module) is that only members (functions, classes) actually defined in the module are included.

Parameters:
  • module – the module to query

  • exclude (Optional[list[str]]) – a list of regexes to exclude

  • classesFirst – if True, classes are included first

Return type:

dict[str, Any]

Returns:

a dictionary of all the members defined in this module