bundles / astropy latest / astropy / utils / introspection / find_mod_objs
function
astropy.utils.introspection:find_mod_objs
source: /astropy/utils/introspection.py :303
Signature
def find_mod_objs ( modname , onlylocals = False ) Summary
Extended Summary
Returns all the public attributes of a module referenced by name.
Parameters
modname: strThe name of the module to search.
onlylocals: bool or list of strIf
True, only attributes that are either members ofmodnameOR one of its modules or subpackages will be included. If it is a list of strings, those specify the possible packages that will be considered "local".
Returns
localnames: list of strA list of the names of the attributes as they are named in the module
modname.fqnames: list of strA list of the full qualified names of the attributes (e.g.,
astropy.utils.introspection.find_mod_objs). For attributes that are simple variables, this is based on the local name, but for functions or classes it can be different if they are actually defined elsewhere and just referenced inmodname.objs: list of objectsA list of the actual attributes themselves (in the same order as the other arguments)
Aliases
-
astropy.utils.introspection.find_mod_objs