Skip to main content

Reduce the installed size of botocore by removing unnecessary AWS api data.

Project description

Botoprune

Botoprune is a Python library used to reduce the installed size of botocore by removing unnecessary AWS api data.

Using Botoprune

The chief application of this library is in the building of small Docker images. Because docker images are built in layers, any file created in one layer still takes up spaces in the final image. This means that Botoprune must be run in the same RUN instruction that installs boto3/botocore preventing the unnecessary data from being committed to the final layer.

# Docker step to install boto3 and remove all API data except s3, ec2, and kms.
RUN pip install --no-cache-dir --no-compile \
        boto3 \
        botoprune && \
    python -m botoprune.whitelist s3 ec2 kms

Botoprune also supports more targeted removal of specific services. This offers more control but results in less space savings compared to whitelisting.

   # Remove the API data for bedrock, rds, and sts.
   python -m botoprune.remove bedrock rds sts

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

botoprune-1.0.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

botoprune-1.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file botoprune-1.0.0.tar.gz.

File metadata

  • Download URL: botoprune-1.0.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for botoprune-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b95f182c04cd7151f57cd7462ddc3a19c28c6a3a7afd21554147c12f23fb0ae6
MD5 a473438e55fd9276c461568ff63a0b04
BLAKE2b-256 4099408bc93c2429b59c5772c426096232937638080b7797c923ee68c4821bc8

See more details on using hashes here.

File details

Details for the file botoprune-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: botoprune-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for botoprune-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d934b0a55836d2342c5600fc00613ddad4159cd8643fca369eb0ca588543141f
MD5 0f1b01ca4f314b9e182d1dd0b5a219d4
BLAKE2b-256 2e1ba7743cb5ad90669a8aaa105a3ccea2d16734f737c23388e9353775952125

See more details on using hashes here.

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