wheel
The standard ready-to-install package file for Python, with a .whl extension, which pip can install without building anything.
In more detail
A wheel is a ZIP archive whose name records the package, version and which Python versions and platforms it suits. A wheel that contains compiled code is built for one operating system and processor. pip prefers wheels because installing one is faster than building from source.
Example
The course's lock records a SHA-256 digest for each wheel so a mirror serving different bytes is caught.Related terms
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- cache key — The name a cache entry is saved and looked up under, usually built from the operating system and a hash of the lock file.
- source distribution — A package file containing a project's source code and metadata, from which an installer can build and install it.
- python -m build — The standard command that turns a project described by pyproject.toml into installable package files, a wheel and a source distribution, in the dist folder.
- lockfile — A file that records the exact version of every dependency, including transitive ones, so every install gets the same set.
Taught in
- Speeding Up Builds: Caching Dependencies — Continuous Integration & Continuous Delivery Pipelines
- Shipping: scripts, entry points and git — Hands-on Python: Complete Video Course & Book
- Dependency Risk And Typosquatting — Application Security & Threat Modeling for Engineers
- Lockfiles And Reproducible Builds — Application Security & Threat Modeling for Engineers