How do I dynamically define a package level __all__ without running any slow code in the package’s constituent modules?
TL;DR: How do I read a module’s __all__
definition and dynamically add it to the package-level __init__.py
without actually running any slow code in the module itself?