pypn_habref_api.schemas

Module Contents

Classes

TypoRefSchema

SQLAlchemyAutoSchema that automatically generates marshmallow fields

HabrefSchema

SQLAlchemyAutoSchema that automatically generates marshmallow fields

class pypn_habref_api.schemas.TypoRefSchema(*args, **kwargs)[source]

Bases: pypn_habref_api.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]
include_fk = True[source]
class pypn_habref_api.schemas.HabrefSchema(*args, **kwargs)[source]

Bases: pypn_habref_api.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]
include_fk = True[source]
typo_ref[source]