src.utils_flask_sqla_geo.utils
Module Contents
Classes
Inherite from list, so compatible with JSONEncoder, but must be initialized |
|
As marshmallow List field, but if value is not a list (e.g. map or generator), |
Functions
|
- class src.utils_flask_sqla_geo.utils.JsonifiableGenerator(gen)[source]
Bases:
list
Inherite from list, so compatible with JSONEncoder, but must be initialized with a generator. Implement __bool__ as used by JSONEncoder.
- class src.utils_flask_sqla_geo.utils.GeneratorField(cls_or_instance: Field | type, **kwargs)[source]
Bases:
marshmallow.fields.List
As marshmallow List field, but if value is not a list (e.g. map or generator), return a JsonifiableGenerator instead of a list.