{ } Raw JSON

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 : str

The name of the module to search.

onlylocals : bool or list of str

If True, only attributes that are either members of modname OR 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 str

A list of the names of the attributes as they are named in the module modname .

fqnames : list of str

A 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 in modname.

objs : list of objects

A list of the actual attributes themselves (in the same order as the other arguments)

Aliases

  • astropy.utils.introspection.find_mod_objs