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 that necessary for 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 usually 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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file botoprune-0.1.0.tar.gz.
File metadata
- Download URL: botoprune-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eef9c8b4990f0b696ab5be58129b540720c419458e65ddb77d437d3a6203718
|
|
| MD5 |
9ecef7e30b3cf449b9dbbd54c4e35f7e
|
|
| BLAKE2b-256 |
fa1f9ed975a5074c866342a0d8c2f44bc8787d1465d3a60ada9abd4a2cfe6c32
|
File details
Details for the file botoprune-0.1.0-py3-none-any.whl.
File metadata
- Download URL: botoprune-0.1.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.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40911b327d654314627a5be7b3cb1280b7c76588343c5a368ae9005c1e6e89d7
|
|
| MD5 |
34fef9c6b3bced56a2da655e04ebd823
|
|
| BLAKE2b-256 |
9d106ac1df055e66a0103657c522279b7df5528f3d2e53ad76b3807b7e934bd2
|