How can I add the filter as in SQL to select values that are NOT NULL from a certain column ?
SELECT * FROM table WHERE YourColumn IS NOT NULL;
Starting in version 0.7.9 you can use the filter operator .isnot instead of comparing constraints, like this:
.isnot
query.filter(User.name.isnot(None))
This method is only necessary if pep8 is a concern.
source: sqlalchemy documentation