How do I import all the submodules of a Python namespace package?
Answers
Answered by
0
Namespace packages can be useful for a large collection of loosely-related packages .However, namespace packages come with several caveats and are not appropriate in all cases. A simple alternative is to use a prefix on all of your distributions such as import my namespace_ sub package_a my namespace_sub package_a as sub package_a to keep the import object short).
Similar questions
English,
7 months ago
Math,
7 months ago
Environmental Sciences,
7 months ago
Computer Science,
1 year ago
Science,
1 year ago