About
Code Shipping - (Module|Component) in Python
Physically,
- package are the directories
- and modules are the files within this directories.
Logically, a package is a module (parent module):
- which can contain:
- modules (submodules)
- and package (subpackages)
- with an path attribute. (Any module that contains a __path__ attribute is considered a package.)
See also:
Articles Related
Type
Python defines two types of packages:
- regular packages (traditional packages) - A regular package is a directory containing an __init__ file.
- and namespace packages.