marshmallow.readthedocs.io - marshmallow: simplified object serialization — marshmallow 3.21.1 documentation
home > domains > marshmallow.readthedocs.io
Example domain paragraphs
Release v3.19.0. ( Changelog )
marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
from datetime import date from pprint import pprint from marshmallow import Schema , fields class ArtistSchema ( Schema ): name = fields . Str () class AlbumSchema ( Schema ): title = fields . Str () release_date = fields . Date () artist = fields . Nested ( ArtistSchema ()) bowie = dict ( name = "David Bowie" ) album = dict ( artist = bowie , title = "Hunky Dory" , release_date = date ( 1971 , 12 , 17 )) schema = AlbumSchema () result = schema . dump ( album ) pprint ( result , indent = 2 ) # { 'artist': {
Links to marshmallow.readthedocs.io (10)
-
webargs.readthedocs.io
webargs 8.5.0 documentation
-
apispec.readthedocs.io
apispec — apispec 6.6.1 documentation
-
marshmallow-sqlalchemy.readthedocs.io
marshmallow-sqlalchemy — marshmallow-sqlalchemy 1.0.0 documentation
-
flask-marshmallow.readthedocs.io
Flask-Marshmallow: Flask + marshmallow for beautiful APIs — Flask-Marshmallow 1.2.1 documentation
-
marshmallow-jsonapi.readthedocs.io
marshmallow-jsonapi — marshmallow-jsonapi 0.24.0 documentation
-
flask-rest-jsonapi.readthedocs.io
Flask-REST-JSONAPI — flask-rest-jsonapi 0.1 documentation
-
flask-apispec.readthedocs.io
flask-apispec: Auto-documenting REST APIs for Flask — flask-apispec 0.7.0 documentation
-
sqlathanor.readthedocs.io
SQLAthanor — SQLAthanor 0.7.0 documentation
-
flask-rest-api.readthedocs.io
flask-rest-api: build a REST API on Flask using Marshmallow — flask-rest-api 0.17.0 documentation
-
flask-resty.readthedocs.io
Flask-RESTy — Flask-RESTy 4.0.2 documentation