Skip to main content

Build sqlalchemy queries from jQuery-Query json

Project description

SQLAlchemy query builder for jQuery QueryBuilder

Project Status: Active – The project has reached a stable, usable state and is being actively developed. builds.sr.ht status codecov readthedocs

This package implements a sqlalchemy query builder for json data generated with (but not limited to) jQuery QueryBuilder.

Quickstart

Using sqlalchemy-querybuilder is very simple:

from sqlalchemy_querybuilder import Filter
from myapp import models, query

    rules = {
            "condition": "OR",
            "rules": [{
                       "field": "mytable.myfield",
                       "operator": "equal",
                       "value": "foo"
                       },
                      ],
             }

    myfilter = Filter(models, query)
    print(myfilter.querybuilder(rules))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-querybuilder-0.1.4.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_querybuilder-0.1.4-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page