Build sqlalchemy queries from jQuery-Query json
Project description
SQLAlchemy query builder for jQuery QueryBuilder
This package implements a sqlalchemy query builder for json data
generated with (but not limited to) jQuery QueryBuilder
.
- Open Source: Apache 2.0 license.
- Website: https://sr.ht/~ocurero/sqlalchemy-querybuilder/
- Documentation: https://sqlalchemy-querybuilder.readthedocs.io/
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sqlalchemy-querybuilder-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63de26034ff1068b8664f548f26affb91b47b6ac1a19d01b94c3809ca4bf7ab8 |
|
MD5 | 731089f486f3f3d42cc7470c6bf4aebc |
|
BLAKE2b-256 | 81dfa868ec2f40a2372e495512d41ecf47eb34acdc5773a15f079eabb61a11e4 |
Close
Hashes for sqlalchemy_querybuilder-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0cc85f884142960c92174313cca9d4ba88138848d1677f4ede8032be9082f7 |
|
MD5 | 84cb3aa050b2056b56ab11381234c6af |
|
BLAKE2b-256 | cb69444e8a08fae3a374aa23b1acef91c6e17d75f6f130666b02d8e5ec46af5e |