get_module_objects

lib.utils.get_module_objects(module: str) list[str]

Return a list of all public objects within the given module

Parameters:

module (str) – The module to parse for public objects

Return type:

A list of object names that exist within the given module

Example

>>> __all__ = get_module_objects(__name__)
["foo", "bar", "baz"]