Namespace Package in Python
Recently, there is a GitHub issue about namespace package in Azure CLI. I think it is a good time to write down the knowledge about namespace package.
What is Namespace Package
If several packages share the same root folder, then the root folder is a namespace package. subpackageA
and subpackageb
can be installed separately, even in different Python path, but they can be imported as importing a single package: import root
.