Namespace Packages

Python
Author

Imad Dabbura

Published

September 22, 2022

Namespace packages are packages that don’t have __init__.py. When import machinery is looking for the package, it does not stop when it finds it and assuming there may be a regular package; i.e. package with __init__.py, in some other paths in sys.path but keeps a record of all namespace packages it found during the search.