src.pypnnomenclature.schemas

Module Contents

Classes

NomenclatureSchema

SQLAlchemyAutoSchema that automatically generates marshmallow fields

class src.pypnnomenclature.schemas.NomenclatureSchema(*args, **kwargs)[source]

Bases: pypnnomenclature.env.ma.SQLAlchemyAutoSchema

SQLAlchemyAutoSchema that automatically generates marshmallow fields from a SQLAlchemy model’s or table’s column. Uses the scoped session from Flask-SQLAlchemy by default.

See marshmallow_sqlalchemy.SQLAlchemyAutoSchema for more details on the SQLAlchemyAutoSchema API.

class Meta[source]
model[source]
load_instance = True[source]
exclude = ('label_en', 'definition_en', 'label_es', 'definition_es', 'label_de', 'definition_de',...[source]
include_fk = True[source]