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

docs(install): instructions to reduce pydantic package size #1077

Merged
merged 2 commits into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/utilities/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ This utility provides data parsing and deep validation using [Pydantic](https://
**Extra dependency**

???+ warning
This will increase the overall package size by approximately 75MB due to Pydantic dependency.

This will increase the compressed package size by >10MB due to the Pydantic dependency.

To reduce the impact on the package size at the expense of 30%-50% of its performance [Pydantic can also be
installed without binary files](https://pydantic-docs.helpmanual.io/install/#performance-vs-package-size-trade-off):

`SKIP_CYTHON=1 pip install --no-binary pydantic aws-lambda-powertools[pydantic]`
am29d marked this conversation as resolved.
Show resolved Hide resolved

Install parser's extra dependencies using **`pip install aws-lambda-powertools[pydantic]`**.

Expand Down