Skip to content

Commit a0a846b

Browse files
Dunedanheitorlessa
authored andcommitted
docs(install): instructions to reduce pydantic package size (#1077)
1 parent 4af1aec commit a0a846b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: docs/utilities/parser.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ This utility provides data parsing and deep validation using [Pydantic](https://
1414
**Extra dependency**
1515

1616
???+ warning
17-
This will increase the overall package size by approximately 75MB due to Pydantic dependency.
17+
18+
This will increase the compressed package size by >10MB due to the Pydantic dependency.
19+
20+
To reduce the impact on the package size at the expense of 30%-50% of its performance [Pydantic can also be
21+
installed without binary files](https://pydantic-docs.helpmanual.io/install/#performance-vs-package-size-trade-off):
22+
23+
`SKIP_CYTHON=1 pip install --no-binary pydantic aws-lambda-powertools[pydantic]`
1824

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

0 commit comments

Comments
 (0)