Contrarily to what is stated in the documentation, since the version 3 (and more precisely the pull request #4502) , it is not possible anymore to import any Pydantic module/function through aws_lambda_powertools.utilities.parser.pydantic.
In my case, I would like to be able to import the decorator @field_serializer
Current Behaviour
python -c "from aws_lambda_powertools.utilities.parser.pydantic import field_serializer"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'aws_lambda_powertools.utilities.parser.pydantic'
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
Expected Behaviour
Contrarily to what is stated in the documentation, since the version 3 (and more precisely the pull request #4502) , it is not possible anymore to import any Pydantic module/function through
aws_lambda_powertools.utilities.parser.pydantic
.In my case, I would like to be able to import the decorator
@field_serializer
Current Behaviour
Code snippet
python3 -m venv venv source venv/bin/activate pip install aws-lambda-powertools[all]==3.1.0 python -c "from aws_lambda_powertools.utilities.parser.pydantic import field_serializer"
Possible Solution
aws_lambda_powertools/utilities/parser/pydantic.py
removed in #4502Steps to Reproduce
Execute the following code snippet
Powertools for AWS Lambda (Python) version
3.1.0
AWS Lambda function runtime
3.12
Packaging format used
PyPi
Debugging logs
No response