Skip to content

Commit 245e18e

Browse files
committed
docs(parser): create install section
1 parent 5f8078a commit 245e18e

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/utilities/parser.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,21 @@ This utility provides data parsing and deep validation using [Pydantic](https://
1212
* Built-in envelopes to unwrap, extend, and validate popular event sources payloads
1313
* Enforces type hints at runtime with user-friendly errors
1414

15-
**Extra dependency**
15+
## Getting started
1616

17-
???+ warning
17+
### Install
1818

19+
!!! info "This is not necessary if you're using Lambda Layer"
20+
21+
Add `aws-lambda-powertools[parser]` in your preferred dependency management tool.
22+
23+
???+ warning
1924
This will increase the compressed package size by >10MB due to the Pydantic dependency.
2025

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

24-
`SKIP_CYTHON=1 pip install --no-binary pydantic aws-lambda-powertools[pydantic]`
25-
26-
Install parser's extra dependencies using **`pip install aws-lambda-powertools[pydantic]`**.
27-
28-
## Getting started
29-
30-
### Install
29+
Pip example: `SKIP_CYTHON=1 pip install --no-binary pydantic aws-lambda-powertools[parser]`
3130

3231
### Defining models
3332

0 commit comments

Comments
 (0)