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

Space Usage for botocore python library #1495

Closed
caiotoledo-lunasystems opened this issue Dec 5, 2022 · 3 comments
Closed

Space Usage for botocore python library #1495

caiotoledo-lunasystems opened this issue Dec 5, 2022 · 3 comments

Comments

@caiotoledo-lunasystems
Copy link

I'm using amazon-cloudwatch-publisher to publish journal logs and metrics to CloudWatch in one of our embedded projects.

But I've noticed that botocore python library takes a lot of space in our system:

# du -sh /usr/lib/python3.10/site-packages/boto*
1.4M    /usr/lib/python3.10/site-packages/boto3
44.0K   /usr/lib/python3.10/site-packages/boto3-1.26.20.dist-info
83.6M   /usr/lib/python3.10/site-packages/botocore
240.0K  /usr/lib/python3.10/site-packages/botocore-1.29.21.dist-info

Most part of these 83.6 MB is from its data folder.

Looking at amazon-cloudwatch-publisher code, it doesn't use all libraries from botocore.

Would it be possible to split botocore into multiple packages so the applications which depend on it could use a subset of botocore data files? Therefore using less disk space.

@thomas-roos
Copy link
Contributor

Hi, thank you for this - will investigate and keep you updated.

@caiotoledo-lunasystems
Copy link
Author

Seems that there are discussions about reducing botocore data folder size here: boto/botocore#2365
In case this feature is implemented this issue will be solved.

@thomas-roos
Copy link
Contributor

I think this will be solved when that feature is implemented. Hope this is done soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants