flask-serialize

Read / Write JSON serialization of models for Flask applications using SQLAlchemy

APACHE-2.0 License

Downloads
1.9K
Stars
26
Committers
2

Bot releases are visible (Hide)

flask-serialize - 2.2.0 Latest Release

Published by Martlark 6 months ago

2.2.0

flask-serialize - 2.1.3

Published by Martlark over 1 year ago

Allow sorting by lambda

flask-serialize - 2.1.2

Published by Martlark almost 2 years ago

2.1.2 Fix readme formatting, add tests for 3.11 Python and update dependencies

flask-serialize - 2.1.1

Published by Martlark about 2 years ago

Improve SQLite JSON handling

flask-serialize - 2.1.0

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.

flask-serialize - 2.0.3

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

flask-serialize -

Published by Martlark about 3 years ago

Version 2.0.2 changes most of the properties, hooks and methods to use a more normal Python naming convention.

  • Regularly called mixin methods now start with fs_.
  • Hook methods start with __fs_ and end with __.
  • Control properties start with __fs_ and end with __.
  • Some hook functions can now return False or True rather than just raise Exceptions
  • fs_get_delete_put_post now returns a HTTP code that is more accurate of the cause
flask-serialize - 1.5.2 Add fs_after_commit

Published by Martlark over 3 years ago

Add fs_after_commit

Fix for TypeError: unsupported operand type(s) for +=: 'ImmutableColumnCollection' and 'list'

flask-serialize - 1.5.0

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

flask-serialize - 1.4.2 improve default behaviour of update_properties

Published by Martlark over 3 years ago

1.4.2 improve default behaviour of update_properties to return all accessible fields and properties

flask-serialize - 1.4.1 Add factory method

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)
flask-serialize - 1.4.0 add fs_private_field method

Published by Martlark about 4 years ago

Add fs_private_field to allow programmatic control of when to return certain columns or properties.

flask-serialize - 1.3.1 Add query_by_access method. fix minor issues

Published by Martlark about 4 years ago

1.3.1 Add query_by_access method. fix minor issues

flask-serialize - 1.3.0

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.

flask-serialize - 1.2.1 Add fs_user_field to allow change of user=

Published by Martlark about 4 years ago

Add fs_user_field so that the user= name parameter can address a different field.

flask-serialize - 1.2.0 Add single relationship conversion

Published by Martlark about 4 years ago

Add single relationship conversion

flask-serialize - 1.1.9

Published by Martlark over 4 years ago

Add FlaskSerializeMixin as a property conversion type.

flask-serialize - 1.1.8

Published by Martlark over 4 years ago

Bump version to fix release issue.

flask-serialize - 1.1.7

Published by Martlark over 4 years ago

Refactor to simplify code. Move page_form to it's own Mixin.