sqlo - Lightweight SQL Query Builderï
A lightweight and simple SQL query builder for Python. Build SQL queries with a clean, intuitive API while staying safe from SQL injection.
Featuresï
ðŠķ Lightweight: Zero dependencies, minimal footprint
âĻ Simple: Intuitive fluent API, easy to learn
ðĄïļ Secure by Default: Built-in SQL injection protection
ð Pythonic: Fluent API design that feels natural to Python developers
ð§Đ Composable: Build complex queries from reusable parts
Quick Exampleï
from sqlo import Q
# SELECT query
query = Q.select("id", "name").from_("users").where("active", True)
sql, params = query.build()
# SQL: SELECT `id`, `name` FROM `users` WHERE `active` = %s
# Params: (True,)
Documentationï
User Guide
Query Types
Advanced Topics
Integration & Recipes