API for inspecting and creating .whl files
Project description
Wheelfile 🔪🧀This library aims to make it dead simple to create a format-compliant .whl file (wheel). It aims to provide 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. AckonwledgementsThanks 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')
# 🧀
|
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for wheelfile-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e25f35ba58d2f15c9d1aaca7673cc9ef6e2c4eb4db542b830ee0d4b71f4a7e67 |
|
MD5 | ebc8f03b4fe18caccc6593093daceb6a |
|
BLAKE2b-256 | d7dd55401f5ab80c4f69410e6f857fd8e3db74b64bf43f6b05994a454416f9c5 |