CoolSQL

PyPI

Makes it easier to write raw SQL in Python.

Usage

Quick Start

from coolsql import Field

name = Field("name")
age = Field("age")

condition = name.isnull() & age.between(18, 24)
...
cursor.execute(f"SELECT * FROM table WHERE {condition}", condition.p())
...

Documentation is in progress, you can start by looking at the test cases under tests.

GitHub

View Github