-
Book Overview & Buying
-
Table Of Contents
Building RESTful Python Web Services
By :
Marshmallow is:
A lightweight library for converting complex datatypes to and from native Python datatypes.
An ORM .
A lightweight web framework that replaces Flask.
SQLAlchemy is:
A lightweight library for converting complex datatypes to and from native Python datatypes.
An ORM .
A lightweight web framework that replaces Flask.
The marshmallow.pre_load decorator:
Registers a method to run after any instance of the MessageSchema class is created.
Registers a method to invoke after serializing an object.
Registers a method to invoke before deserializing an object.
The dump method for any instance of a Schema subclass:
Routes URLs to Python primitives.
Persists the instance or collection of instances passed as an argument to the database.
Takes the instance or collection of instances passed as an argument and applies the field filtering and output formatting specified in the Schema subclass to the instance or collection of instances.
When we declare an attribute as an instance...