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.1.0.tar.gz (8.5 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.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for botoprune-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3e1395cad777affb2fe25592d8ef986accdfb7b775026802bb158308a5f4b31
MD5 0137ebeac148d6f39e6f767bc9f7c373
BLAKE2b-256 b64bda1d26a162d669278af67224885b0c6077e5ae6016c67521dbd7a1ae9d8f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for botoprune-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e06ab0257c176fb457d497b3557a8cabccdbe570a12daf11bdd1c1b0783d1bf
MD5 f7f38dd8c896efc1a89bdad3b7520252
BLAKE2b-256 23e04acb9500022f30443ecc78ef3befec540226ea5e9a8fe95a402ae3740ffd

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