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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce231a23b354e5d22e9db6f8362aac646fd124e218a9a31c5a24be9ddfe5e2b4 |
|
MD5 | 20ed31cbc94ce3d95f671dd113d6a430 |
|
BLAKE2b-256 | a9c99f6172e35cfd7c9f48c5c3ec17a5798406f3f1b71618ae54667e33898e5a |
Close
Hashes for sqlalchemy_querybuilder-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa2cb5107399af8560739349f7941692741ba5869b6632a545c0f204a240f73 |
|
MD5 | cbe4ed5d5eef174c752cb7dd7b231867 |
|
BLAKE2b-256 | e305d34b7c2147486cda09869e69054bef9157c70e7970dec5e9bdcb35f2807e |