In the context of Python projects, “package” is often used, confusingly, to refer to at least three non-equivalent entities:
- A structure that organizes modules for importation or execution, often a directory containing a
__init__.py
file, that contains one or more Python modules. - The Python project itself
- A file (such as a wheel (
.whl
) or a source archive) associated with a particular release and even a particular platform of a particular Python project. This file can be downloaded and installed to make the project’s code available to the user.