Caution

This API is not finalised, and may change in a patch version.

installer.utils

Utilities related to handling / interacting with wheel files.

installer.utils.parse_metadata_file(contents)

Parse PEP 376 PKG-INFO-style metadata files.

METADATA and WHEEL files (as per PEP 427) use the same syntax and can also be parsed using this function.

Parameters

contents (Text) – The entire contents of the file.

Return type

Message

installer.utils.parse_wheel_filename(filename)

Parse a wheel filename, into it’s various components.

Parameters

filename (str) – The filename to parse.

Return type

installer.utils.WheelFilename

class installer.utils.WheelFilename(distribution, version, build_tag, tag)
build_tag

Alias for field number 2

distribution

Alias for field number 0

tag

Alias for field number 3

version

Alias for field number 1