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. AcknowledgementsThanks to Paul Moore for providing his gist of basic metadata parsing logic, which helped to avoid many foolish mistakes in the initial implementation. |
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 |
Metadata
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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|
Security for wheelfile 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.