Mapping and Validating with Marshmallow | Flask and Python Backend #4

preview_player
Показать описание
In this video I explain the 3-tier architecture. From that I explain the need to have a mapping with Marshmallow. I will use Marshmallow to map my database entities to JSON objects.

Content:
* Explanation of the 3-tier architecture;
* Using the marshmallow-sqlalchemy dependency to map / serialize SQLAlchemy entities with Marshmallow;
* Using Marshmallow to map / deserialize JSON objects into Python objects. Using the validates decorator to validate a single field upon custom validation rules. Using the post_load decorator to create objects after validating them;
* Using the Flask error handler to catch the Marshmallow validation errors.

Icons:
Рекомендации по теме
Комментарии
Автор

Super appreciate this, and the overvieew of the 3 Tier Architecture opening how EVERY video should start, you nailed it bud.

fgdanger
Автор

Hola Español! Gracias por el video. Me ha ayudado muchisimo.

fkgorhu
Автор

Thank You, it is a better intro in marshmallow!

nikolaypuchko-kolesnik
Автор

It is really nice thank you, can we do that serialization with pydantic?

sahinmuratogur
Автор

could you please do a flask authentication? login and registration, with flask_restful

mbithi_ke
join shbcf.ru