wheel-filename is a Python library that enables verification and parsing of wheel filenames into their constituent fields. It strictly adheres to the wheel standard (PEP 427), with minor exceptions for version component validation and case-insensitive `.whl` extension matching. The current version is 2.1.0, and releases follow an as-needed cadence to maintain standard compliance and address any reported issues.
pip install wheel-filenameVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to parse a valid wheel filename and access its components, and how to handle `ParseError` for invalid filenames.
Ensure all wheel filenames strictly follow PEP 427. Verify version components are valid, and do not contain characters not permitted by the standard. Refer to PEP 427 for the correct filename convention.
Never manually rename `.whl` files. If a wheel file is incorrectly named, it should be regenerated by the package author or a correctly named wheel should be obtained. Tools that consume wheel files (like `pip`) rely on the filename's integrity.
As a package publisher, ensure all distributed wheel filenames are fully compliant with PEP 427 and PEP 440 to maintain compatibility with modern packaging tools. As a user, if encountering issues, check if the wheel filename is valid against the PEPs.
Install the package using `pip install wheel-filename` and ensure the import statement uses `wheel_filename` (with an underscore): `from wheel_filename import parse_wheel_filename`.
Ensure the filename string strictly follows the wheel specification (e.g., `package_name-version-python_tag-abi_tag-platform_tag.whl`), or catch the `InvalidWheelFilename` exception for malformed inputs.
Provide a valid string (or bytes) object representing the wheel filename to the parsing or validation function.
No dependency data recorded yet.