Read / Write JSON serialization of models for Flask applications using SQLAlchemy
APACHE-2.0 License
Bot releases are visible (Hide)
2.2.0
Published by Martlark over 1 year ago
Allow sorting by lambda
Published by Martlark almost 2 years ago
2.1.2 Fix readme formatting, add tests for 3.11 Python and update dependencies
Published by Martlark about 2 years ago
Improve SQLite JSON handling
Published by Martlark about 2 years ago
Convert readme to markdown. Add support for JSON columns. Withdraw Python 3.6 Support. Use unittest instead of pytest. NOTE: Changes __fs_convert_types__
to a dict
.
Published by Martlark over 2 years ago
Allow use of bare column variables rather than quoted strings for _fs field lists. Fix missing import of FlaskSerialize
Version 2.0.2 changes most of the properties, hooks and methods to use a more normal Python naming convention.
fs_
.__fs_
and end with __
.__fs_
and end with __
.Published by Martlark over 3 years ago
Add fs_after_commit
Published by Martlark over 3 years ago
Fix for TypeError: unsupported operand type(s) for +=: 'ImmutableColumnCollection' and 'list'
Published by Martlark over 3 years ago
Return item from POST/PUT updates. Allow create_fields and update_fields to be specified using the column fields. None values serialize as null/None. Restore previous update_properties behaviour. By default updates/creates using all fields. Exclude primary key from create and update. Improve documentation
Published by Martlark over 3 years ago
1.4.2 improve default behaviour of update_properties to return all accessible fields and properties
Published by Martlark over 3 years ago
Add a factory method to create the mixin. Add better error messages.
from flask_serialize import FlaskSerialize
# create a flask-serialize mixin instance from
# the factory method `FlaskSerialize`
fs_mixin = FlaskSerialize(db)
Published by Martlark about 4 years ago
Add fs_private_field to allow programmatic control of when to return certain columns or properties.
Published by Martlark about 4 years ago
1.3.1 Add query_by_access method. fix minor issues
Published by Martlark about 4 years ago
Add can_update and can_access to allow classes to have more convenient control of update / access/ read methods.
Published by Martlark about 4 years ago
Add fs_user_field so that the user= name parameter can address a different field.
Published by Martlark about 4 years ago
Add single relationship conversion
Published by Martlark over 4 years ago
Add FlaskSerializeMixin as a property conversion type.
Published by Martlark over 4 years ago
Bump version to fix release issue.
Published by Martlark over 4 years ago
Refactor to simplify code. Move page_form to it's own Mixin.