๐Ÿ“ฆ brijeshb42 / querybuilder

โ˜… 3 stars โ‘‚ 2 forks ๐Ÿ‘ 3 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/brijeshb42/querybuilder.git
HTTPS git clone https://github.com/brijeshb42/querybuilder.git
SSH git clone git@github.com:brijeshb42/querybuilder.git
CLI gh repo clone brijeshb42/querybuilder
Brijesh Bittu Brijesh Bittu Import check cc9107a 9 years ago ๐Ÿ“ History
๐Ÿ“‚ cc9107abd1ad27c16a17930a51cc605b9ea88b59 View all commits โ†’
๐Ÿ“ querybuilder
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ LICENSE.txt
๐Ÿ“„ README.md
๐Ÿ“„ setup.cfg
๐Ÿ“„ setup.py
๐Ÿ“„ README.md

Querybuilder

A module to build human readable SQL query string and then optionally convert them to where() caluse expressions for Peewee.

from querybuilder import Field as F, AND, OR
query = OR(AND(F('pageviews') >= 10000, F('author_ids').contains(7,8,9)))