sqla-filters: A library to filter your sqlachemy queries.

https://img.shields.io/pypi/v/sqla-filters.svg https://img.shields.io/pypi/l/sqla-filters.svg https://img.shields.io/pypi/wheel/sqla-filters.svg https://img.shields.io/pypi/pyversions/sqla-filters.svg https://img.shields.io/discord/479781351051100170.svg?logo=discord

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).

Indices and tables