Expand description
Read metadata from wheels and source distributions.
This module reads all fields exhaustively. The fields are defined in the Core metadata specification.
Structs§
- Dist
Info Stem - The stem of a
.dist-infodirectory whose normalized form starts with the expected package name.
Enums§
- Error
- The caller is responsible for attaching the path or url we failed to read.
Functions§
- find_
archive_ dist_ info - Find the
.dist-infodirectory in a zipped wheel. - find_
flat_ dist_ info - Find the
.dist-infodirectory in an unzipped wheel. - read_
archive_ metadata - Given an archive, read the
METADATAfrom the.dist-infodirectory. - read_
flat_ wheel_ metadata - Read the
ResolutionMetadatafrom an unzipped wheel. - read_
metadata_ async_ stream - Read
METADATAand, for a variant wheel, validatevariant.jsonin the same pass. - read_
wheel_ variant - Read a wheel’s
variant.jsonand check that it describes the variant named in the filename. - validate_
archive_ variant - Validate the
variant.jsonnext to the wheel’sMETADATAbefore using it for resolution.