pugsql
A HugSQL-inspired database library for Python (by mcfunley)
squiller
Generate boilerplate from annotated SQL queries (by ruuda)
pugsql | squiller | |
---|---|---|
3 | 1 | |
663 | 4 | |
- | - | |
0.0 | 6.3 | |
5 months ago | 6 months ago | |
Python | Rust | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pugsql
Posts with mentions or reviews of pugsql.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-14.
-
Python: Just Write SQL
I've had good experience using PugSQL to write SQL in Python [1]. You write the SQL inside SQL files so you can actually benefit from syntax highlighting, static analysis, etc. At the different of writing strings of SQL inside Python files.
[1] https://pugsql.org
-
Repeating Yourself Thrice Doesn’t Turn You into a 3x Developer
There's a tool called PugSQL that looks promising for Python, but it seems that async isn't directly supported yet[0]. If I ever find time, I'd love to jump on this and make it work, but nobody should hold their breath for that.
[0] https://github.com/mcfunley/pugsql/issues/44
squiller
Posts with mentions or reviews of squiller.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-14.
-
Python: Just Write SQL
One challenge working with SQL from statically typed languages (including Python + Mypy) is that you have to convert the query inputs/outputs to/from types and it's a lot of boilerplate. I started an experiment to generate this from annotated queries. [1] Python support is still incomplete, but I'm using it somewhat successfully for using SQLite from Rust so far.
[1]: https://github.com/ruuda/squiller
What are some alternatives?
When comparing pugsql and squiller you can also consider the following projects:
sqlc-gen-python
SQLpage - SQL-only webapp builder, empowering data analysts to build websites and applications quickly
yesql - A Clojure library for using SQL.
mini_sql - a minimal, fast, safe sql executor
powderkeg - Live-coding the cluster!
typed-sql
py-mysql-type-plugin - Mypy plugin to type sql
Django - The Web framework for perfectionists with deadlines.