This project is built to have a centralized JSON schema for filter configuration on the front-end that can be directly serialized into a query on the backend.
This project is a work in progress and is not yet ready for production use.
poetry shell
poetry install
On a Python script type the following
from query_generator import QueryGenerator
query = {
"filters": [
{
"field": "name",
"operation": "eq",
"value": "John Doe"
}
]
}
query_generator = QueryGenerator()
query_generator.generate_query(query)