From 1cf630bc89a419fec1094af7bacea27604c95f1d Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Tue, 12 Apr 2022 15:38:49 +0200 Subject: [PATCH] docs(install): instructions to reduce pydantic package size (#1077) --- docs/utilities/parser.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/utilities/parser.md b/docs/utilities/parser.md index 9787de827b1..c17e2f173c5 100644 --- a/docs/utilities/parser.md +++ b/docs/utilities/parser.md @@ -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]`**.