botocore icon indicating copy to clipboard operation
botocore copied to clipboard

Please reduce package size

Open samuelcolvin opened this issue 6 months ago • 4 comments

Describe the bug

The botocore package is massive, from pypi:

  • botocore-1.38.30.tar.gz (13.9 MB)
  • botocore-1.38.30-py3-none-any.whl (13.6 MB)

Most of this size comes from the botocore/data/ directory.

How many people are actually using this data directory?

Regression Issue

  • [ ] Select this option if this issue appears to be a regression.

Expected Behavior

My suggestion would be to move that data to a separate package and make that an optional dependency.

If you really don't want to break existing behaviour, create a botocore-slim package and then make botocore include both botocore-slim and botocore-data.

Either way, botocore is one of the most commonly downloaded python packages, so it would be advantageous to PyPI and your users to make this package much smaller.

Current Behavior

download takes ages over slow connections. We'll probably remove botocore from being a default dependency of pydantic-ai if this isn't fixed.

Reproduction Steps

uv add botocore

Possible Solution

No response

Additional Information/Context

No response

SDK version used

botocore 1.38.30

Environment details (OS name and version, etc.)

NA

samuelcolvin avatar Jun 05 '25 15:06 samuelcolvin