botoprune


Namebotoprune JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryReduce the installed size of botocore by removing unnecessary AWS api data.
upload_time2025-08-19 05:50:50
maintainerEvan Parker
docs_urlNone
authorEvan Parker
requires_python>=3.9
licenseNone
keywords botocore boto3 boto-prune botoprune boto-trim bototrim
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "botoprune",
    "maintainer": "Evan Parker",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "botocore, boto3, boto-prune, botoprune, boto-trim, bototrim",
    "author": "Evan Parker",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/b6/4b/da1d26a162d669278af67224885b0c6077e5ae6016c67521dbd7a1ae9d8f/botoprune-1.1.0.tar.gz",
    "platform": null,
    "description": "# Botoprune\nBotoprune is a Python library used to reduce the installed size of botocore by removing unnecessary AWS api data.\n\n## Using Botoprune\n\nThe 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.\n\n```\n# Docker step to install boto3 and remove all API data except s3, ec2, and kms.\nRUN pip install --no-cache-dir --no-compile \\\n        boto3 \\\n        botoprune && \\\n    python -m botoprune.whitelist s3 ec2 kms\n```\n\nBotoprune also supports more targeted removal of specific services. This offers more control but results in less space savings compared to whitelisting.\n\n```\n   # Remove the API data for bedrock, rds, and sts.\n   python -m botoprune.remove bedrock rds sts\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Reduce the installed size of botocore by removing unnecessary AWS api data.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/eap/botoprune",
        "Issues": "https://github.com/eap/botoprune/issues",
        "Repository": "https://github.com/eap/botoprune"
    },
    "split_keywords": [
        "botocore",
        " boto3",
        " boto-prune",
        " botoprune",
        " boto-trim",
        " bototrim"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "23e04acb9500022f30443ecc78ef3befec540226ea5e9a8fe95a402ae3740ffd",
                "md5": "f7f38dd8c896efc1a89bdad3b7520252",
                "sha256": "0e06ab0257c176fb457d497b3557a8cabccdbe570a12daf11bdd1c1b0783d1bf"
            },
            "downloads": -1,
            "filename": "botoprune-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f7f38dd8c896efc1a89bdad3b7520252",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 10095,
            "upload_time": "2025-08-19T05:50:49",
            "upload_time_iso_8601": "2025-08-19T05:50:49.447979Z",
            "url": "https://files.pythonhosted.org/packages/23/e0/4acb9500022f30443ecc78ef3befec540226ea5e9a8fe95a402ae3740ffd/botoprune-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b64bda1d26a162d669278af67224885b0c6077e5ae6016c67521dbd7a1ae9d8f",
                "md5": "0137ebeac148d6f39e6f767bc9f7c373",
                "sha256": "a3e1395cad777affb2fe25592d8ef986accdfb7b775026802bb158308a5f4b31"
            },
            "downloads": -1,
            "filename": "botoprune-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0137ebeac148d6f39e6f767bc9f7c373",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 8502,
            "upload_time": "2025-08-19T05:50:50",
            "upload_time_iso_8601": "2025-08-19T05:50:50.463303Z",
            "url": "https://files.pythonhosted.org/packages/b6/4b/da1d26a162d669278af67224885b0c6077e5ae6016c67521dbd7a1ae9d8f/botoprune-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-19 05:50:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "eap",
    "github_project": "botoprune",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "botoprune"
}
        
Elapsed time: 1.32253s