You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow using boto3 payloads \ responses as Python classes - more specifically - Pydantic classes.
This would eliminate the guesswork in filling field values, or constantly having to model response payloads.
As you can see, the tables variable acts as a Python class, and you can access it's properties with .. All of it's fields already have types.
This is opposed to accessing the fields as dict keys, and receiving a value of unknown type.
As Powertools is all about ease of use and user experience, so I feel like it would be a great new home for AWS Resource Validator.
Alternative solutions
Instructing user to consume the library independently.
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
Use case
Allow using boto3 payloads \ responses as Python classes - more specifically - Pydantic classes.
This would eliminate the guesswork in filling field values, or constantly having to model response payloads.
Solution/User Experience
Lets take a look at a practical example:
As you can see, the tables variable acts as a Python class, and you can access it's properties with
.
. All of it's fields already have types.This is opposed to accessing the fields as
dict
keys, and receiving a value of unknown type.As Powertools is all about ease of use and user experience, so I feel like it would be a great new home for AWS Resource Validator.
Alternative solutions
Acknowledgment
The text was updated successfully, but these errors were encountered: