# SQLAlchemy-boolean-search
SQLAlchemy-boolean-search translates a boolean search string such as:
"field1=*something* and not (field2==1 or parent.field3<=10.0)"
into its corresponding SQLAlchemy query filter:
and_(DataModel.field1.ilike('%something%'),
not_(or_(DataModel.field2.__eq__(2),
DataModel.parent.field3.__le__(10.0))))
Relationship field names such as 'parent.grandparent.name' are accepted.
The code is stable, is used in production, and enjoys a test coverage of 100%.
## Documentation
[SQLAlchemy-boolean-search documentation](http://sqlalchemy-boolean-search.readthedocs.org/)
## Authors
* Ling Thio - ling.thio [at] gmail.com
## Acknowledgements
This project would not be possible without the use of the following amazing offerings:
* [Flask](http://flask.pocoo.org/)
* [SQLAlchemy](http://www.sqlalchemy.org/)
* [pyparsing](https://pyparsing.wikispaces.com/)
## Alternative modules
* [SQLAlchemy-Searchable](https://sqlalchemy-searchable.readthedocs.org/)
adds full text searching and relies on PostgreSQL vectors and triggers.
* [sqlalchemy-elasticquery](https://github.com/loverajoel/sqlalchemy-elasticquery)
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | sdss-marvin-2.2.0.dev1.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 185 浏览量
2022-01-16
03:18:37
上传
评论
收藏 417KB GZ 举报
温馨提示
共335个文件
py:236个
rst:17个
cfg:13个
资源来自pypi官网。 资源全名:sdss-marvin-2.2.0.dev1.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | sdss-marvin-2.2.0.dev1.tar.gz (335个子文件)
make.bat 4KB
query_params_best.cfg 5KB
sdsswork.cfg 4KB
dr14.cfg 3KB
dr13.cfg 2KB
bosswork.cfg 2KB
dr12.cfg 2KB
dr11.cfg 2KB
dr10.cfg 1KB
dr9.cfg 1KB
dr8.cfg 964B
dr7.cfg 361B
.isort.cfg 127B
setup.cfg 38B
check_marvin 3KB
.coveragerc 600B
linearlab.csv 5KB
galaxy_test_data.dat 12KB
query_test_data.dat 5KB
.git 80B
.git 70B
.git 67B
.git 66B
.git 59B
.gitattributes 812B
.gitattributes 278B
.gitattributes 232B
.gitignore 402B
.gitignore 259B
.gitignore 71B
.gitignore 7B
MANIFEST.in 207B
MANIFEST.in 193B
MANIFEST.in 84B
sdss_paths.ini 30KB
tox.ini 637B
config.ini 435B
dbconfig.ini 406B
config.ini 403B
config.ini 152B
tox.ini 146B
LICENSE 1KB
Makefile 7KB
Makefile 5KB
Makefile 2KB
Makefile 2KB
Makefile 958B
README.md 1KB
CHANGELOG.md 131B
README.md 66B
sdss_access.module 2KB
marvin_brain.module 2KB
sdssMaskbits.par 85KB
PKG-INFO 6KB
PKG-INFO 6KB
results.py 59KB
general.py 48KB
query.py 48KB
yanny.py 41KB
base.py 34KB
maps.py 30KB
six.py 29KB
cube.py 28KB
DataModelClasses.py 26KB
base.py 26KB
modelcube.py 26KB
galaxy.py 23KB
test_spaxel.py 22KB
spaxel.py 22KB
core.py 21KB
MPL6.py 21KB
map.py 20KB
scatter.py 20KB
generator.py 20KB
__init__.py 20KB
bpt.py 19KB
query.py 19KB
test_map.py 18KB
conftest.py 18KB
map.py 18KB
base.py 18KB
fields.py 17KB
images.py 17KB
__init__.py 17KB
maps.py 16KB
forms.py 16KB
sqlalchemy_boolean_search.py 16KB
test_results.py 16KB
colorbar.py 16KB
DapModelClasses.py 15KB
modelcube.py 15KB
MPL5.py 13KB
path.py 13KB
spaxel.py 13KB
cube.py 12KB
test_map.py 12KB
docudatamodel.py 12KB
plate.py 12KB
test_query.py 11KB
test_unique_validator.py 11KB
共 335 条
- 1
- 2
- 3
- 4
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功