Javier162380 / marshmayama

Generate Marshmallow Schemas(https://marshmallow.readthedocs.io/en/stable/quickstart.html) dinamically from a yaml file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Marshmayama

Introduction

Maybe one day you need to define Marshmallow Schemas dinamically, so you can easily decouple the configuration from your code. This library tryes to help you generating Marshmallow Schemas from a yaml file.

Usage

This library pretends to be a really easy interface. Just create an instance of Marshmayama passing your yaml file and generate your Marshmallow Schema.

MarshmayamaInstance = Marshmayama('path-to-your-yaml-file.yml')

marshmallow_schema = MarshmayamaInstance.generate_marshmallow_schema()

About

Generate Marshmallow Schemas(https://marshmallow.readthedocs.io/en/stable/quickstart.html) dinamically from a yaml file.


Languages

Language:Python 100.0%