Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce Package Size / Split package by using extras #3989

Closed
1 of 2 tasks
DanielHabenicht opened this issue Jan 13, 2024 · 2 comments
Closed
1 of 2 tasks

Reduce Package Size / Split package by using extras #3989

DanielHabenicht opened this issue Jan 13, 2024 · 2 comments
Labels
feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged.

Comments

@DanielHabenicht
Copy link

DanielHabenicht commented Jan 13, 2024

Describe the feature

It would be great if the services available via the boto3 package could be selected individually to minimize the installment size.

Use Case

To optimize the size of a docker image I had a look at the packages installed and boto3 came out on top:
image

Proposed Solution

It would be great if similar to the Common runtime feature (boto3[crt]) every service could be selected on its own. For example:

  1. Installing boto3 without the need for optimization:
    pip install boto3[full] (Installment size: 82 MB*)
  2. Installing boto3 without the need for optimization and with the Common runtime feature:
    pip install boto3[full,crt]
  3. Installing only the s3 service:
    pip install boto3[s3] (Installment size: 1,4 MB*)
  4. Installing multiple services:
    pip install boto3[s3,ec2,iot] (Installment size: 15,3 MB*)

Every feature would only include the data folder that currently resides in the botocore package and the botocore package would only contain the code that holds it all together.

* Installment Size just for illustration

Other Information

That's a great way to save everybody some resources! Especially with such a widely used image.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

1.21.0

Environment details (OS name and version, etc.)

alpine:3.18.5

@DanielHabenicht DanielHabenicht added feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged. labels Jan 13, 2024
@DanielHabenicht
Copy link
Author

Sorry got mixed up with the packages, this is a duplicate of boto/botocore#1543

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant