Skip to main content

Pluggable post-processing optimizers for Python wheels

Project description

wheel-optimizer

Pluggable post-processing optimizers for Python wheels. Reduce wheel size by stripping docstrings, type hints, and other unnecessary data from .py files before distribution.

Installation

pip install wheel-optimizer

Quick start

from pathlib import Path

from wheel_optimizer import OptimizerConfig, OptimizerPipeline

config = OptimizerConfig(
    remove_docstrings=True,
    remove_type_annotations=True,
    remove_assertions=True,
    remove_comments=True,
)
pipeline = OptimizerPipeline(config)
pipeline.run(Path("unpacked-wheel-directory/"))

Documentation

Full documentation is available at wheel-optimizer.readthedocs.io.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wheel_optimizer-0.0.1.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wheel_optimizer-0.0.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file wheel_optimizer-0.0.1.tar.gz.

File metadata

  • Download URL: wheel_optimizer-0.0.1.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wheel_optimizer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7f98bd46abd2d9d3ed588b0f5bc1131c899913fe767e2b4448435c2d0e2f72d3
MD5 3c540c3924a6a838f25612d03c0a701c
BLAKE2b-256 6688204b00acea6f1b5a436a402fe5a9a340de140e4409f81ed2ed0041ed13ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for wheel_optimizer-0.0.1.tar.gz:

Publisher: release.yml on ryanking13/wheel-optimizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wheel_optimizer-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wheel_optimizer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4bd2b347ba4e9f0770123aa45f402694467cd13af184130b3f8284be2724b5
MD5 531d3690b47d2e3ba770e57542b1dd95
BLAKE2b-256 fd7a66efe5d9d61088220fcabfdc6c63cf62f2055b27b0323b3928df3b515cd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for wheel_optimizer-0.0.1-py3-none-any.whl:

Publisher: release.yml on ryanking13/wheel-optimizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page