How do I create a namespace package in Python?
TL;DR: On Python 3.3 you don’t have to do anything, just don’t put any __init__.py in your namespace package directories and it will just work. On pre-3.3, choose the pkgutil.extend_path() solution over the pkg_resources.declare_namespace() one, because it’s future-proof and already compatible with implicit namespace packages. Python 3.3 introduces implicit namespace packages, see PEP 420. This … Read more