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.3.tar.gz (50.5 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.3-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wheel_optimizer-0.0.3.tar.gz
  • Upload date:
  • Size: 50.5 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.3.tar.gz
Algorithm Hash digest
SHA256 f9958b2a3e4b465a5f84db66daa418c9ba5c6a85fff5432630d382cad0ebae7b
MD5 5cf9120d3e43cfa3f713f1fddd05c3d3
BLAKE2b-256 2ee5e52887b88fa4d7c101bcacf1f03d09317a9f6363baebb086378417be08a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for wheel_optimizer-0.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for wheel_optimizer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85396f6fdee942ceffa99a7241711753844b3b90f060a7adc697a79aeb26a60e
MD5 eadfd5e5c28ad5b7b20f8975fb3ce431
BLAKE2b-256 65e50fb51bbdf60fd4bff27fafcd494ada22a4b2beadc2c2430cc17a46eb5484

See more details on using hashes here.

Provenance

The following attestation bundles were made for wheel_optimizer-0.0.3-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