Skip to content

Commit

Permalink
docs(install): instructions to reduce pydantic package size (#1077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunedan committed Apr 12, 2022
1 parent a0132cb commit 1cf630b
Showing 1 changed file with 7 additions and 1 deletion.
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]`

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

Expand Down

0 comments on commit 1cf630b

Please sign in to comment.