Skip to main content

Wheelfile 🔪🧀

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.




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')

# 🧀

More examples: buildscript | PEP-517 builder

Release files for wheelfile 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wheelfile 0.0.9
File Interpreter ABI Platform
wheelfile-0.0.9-py3-none-any.whl Python 3 none any Details

Release files / wheelfile-0.0.9-py3-none-any.whl

Download URL wheelfile-0.0.9-py3-none-any.whl
Size 24.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
120b742a8b2e954e2b8d954507fe747124350fb06ae5b9d3850ad83fd7e6fa7c
BLAKE2b-256 checksum
How to use checksums
81830e2c652cb35427594350cd0733ec448a6c202d3b26442b7ef39fb8600057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.0.9 This release

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page