SkillAgentSearch skills...

Wheelfile

🔪🧀 API for creating and inspecting Python .whl files (wheels)

Install / Use

/learn @MrMino/Wheelfile
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<table style="border: none"> <tr style="border: none"> <td style="border: none"> <h1 style='border-bottom-style: none' align="center"> Wheelfile 🔪🧀</h1>

This library aims to make it dead simple to create a format-compliant .whl file (wheel). It provides an API comparable to zipfile. Use this if you wish to inspect or create wheels in your code.

For a quick look, see the example on the right, which packages the wheelfile module itself into a wheel 🤸.

What's the difference between this and wheel?

"Wheel" tries to provide a reference implementation for the standard. It is used by setuptools and has its own CLI, but no stable API. The goal of Wheelfile is to provide a simple API.

Wheelfile does not depend on Wheel.

Acknowledgements

Thanks to Paul Moore for providing his gist of basic metadata parsing logic, which helped to avoid many foolish mistakes in the initial implementation.

</td> <td style="border: none"> <br/> <a href="https://pypi.org/project/wheelfile/#history"> <img src="https://img.shields.io/pypi/v/wheelfile?style=for-the-badge"/> </a> <a href="https://wheelfile.readthedocs.io/en/latest/"> <img src="https://readthedocs.org/projects/wheelfile/badge/?version=latest&style=for-the-badge"/> </a> <br/> <br/>
pip install wheelfile
from wheelfile import WheelFile, __version__

spec = {
    'distname': 'wheelfile',
    'version': __version__
}

requirements = [
    'packaging >= 20.8',
]

with WheelFile(mode='w', **spec) as wf:
    wf.metadata.requires_dists = requirements
    wf.write('./wheelfile.py')

# 🧀
<br/> <b> More examples: <a href="https://wheelfile.readthedocs.io/en/latest/examples/buildscript.html"> buildscript </a> | <a href="https://wheelfile.readthedocs.io/en/latest/examples/pep-517-builder.html"> PEP-517 builder </a> </b> <br/> </td> </tr>

Related Skills

View on GitHub
GitHub Stars27
CategoryProduct
Updated3mo ago
Forks6

Languages

Python

Security Score

92/100

Audited on Dec 7, 2025

No findings