sqla-filters: A library to filter your sqlachemy queries.¶
Warning
This project is not ready for production so use it carefully because it’s not stable.
Introduction¶
The purpose of this library is to provide a simple way to filter queries generated with Sqlalchemy. To filter a query a tree is generated. When the filter function is called the tree is traversed (DFS) and the filter function of each sub node is called until all nodes are scanned.
The default format for the tree generation is the JSON
format. It’s included in the
package.
Other formats will be supported in the future. You can also create your own parser to generate the three from the format you want (here).