Top "Marshmallow" questions

Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

Define fields programmatically in Marshmallow Schema

Say I have a Schema like this: class MySchema(Schema): field_1 = Float() field_2 = Float() ... field_42 = Float() Is there a way …

python marshmallow
Deserialize nested fields in marshmallow

I'm consuming an API that returns something like: {'name': 'foo', 'start': {'date': '2016-06-19', 'time': '18:00'}} And …

python transformation preprocessor marshmallow
how to serialise a enum property in sqlalchemy using marshmallow

this is my model class class Type(enum.Enum): Certified = "certified" Non_Certified = "non-certified" class Status(enum.Enum): Approved = "Approved" …

python-2.7 enums flask-sqlalchemy marshmallow
How to use marshmallow to serialize a custom sqlalchemy field?

I just start a simple project called flask_wiki this days and I'm using some flask extensions as the follows: …

python flask flask-sqlalchemy marshmallow
Marshmallow: Dict of nested Schema

I'm wondering how to serialize a dict of nested Schema. Naively, I would expect syntaxes like this to work: fields.…

python serialization marshmallow