yesql VS pugsql

Compare yesql vs pugsql and see what are their differences.

yesql

A Clojure library for using SQL. (by krisajenkins)

pugsql

A HugSQL-inspired database library for Python (by mcfunley)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
yesql pugsql
4 3
1,444 663
- -
0.0 0.0
over 1 year ago 5 months ago
Clojure Python
Eclipse Public License 1.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.

yesql

Posts with mentions or reviews of yesql. 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
    21 projects | news.ycombinator.com | 14 Aug 2023
    There's a whole family of libraries like that. Yesql is the first I became aware of. The repo has an (incomplete) list of ports to other languages: https://github.com/krisajenkins/yesql#other-languages
  • Is it possible/useful to extract SQL queries into a "config file"?
    1 project | /r/softwaredevelopment | 2 Feb 2023
  • Library Writing Realizations
    2 projects | news.ycombinator.com | 24 Jul 2022
    > People will not read the docs.

    Reminds me of a pull request I made a while ago

    https://github.com/krisajenkins/yesql/pull/151/files

    The first piece of code on the readme is "not the solution" (lol), and everybody I knew who was trying to use that library was copy-pasting that specific piece of code from the readme.

  • Rich Hickey – open-source is Not About You
    7 projects | news.ycombinator.com | 2 Jul 2022
    If you're not familiar with lisps in general, it might be hard to grok the differences between lisp-macros (as used in Clojure) and "normal" macros you see in other languages.

    But, if you are familiar already, and just wanna see examples of neat macros that makes the API nicer than what a function could provide, here are a few:

    - https://github.com/clojure/core.async/blob/master/examples/w...

    - https://github.com/weavejester/compojure

    - https://github.com/ptaoussanis/timbre

    - https://github.com/krisajenkins/yesql

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
    21 projects | news.ycombinator.com | 14 Aug 2023
    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
    5 projects | news.ycombinator.com | 30 Jul 2023
    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

What are some alternatives?

When comparing yesql and pugsql you can also consider the following projects:

sql-template-tag - ES2015 tagged template string for preparing SQL statements, works with `pg`, `mysql`, and `sqlite`

sqlc-gen-python

mini_sql - a minimal, fast, safe sql executor

SQLpage - SQL-only webapp builder, empowering data analysts to build websites and applications quickly

core.async - Facilities for async programming and communication in Clojure

powderkeg - Live-coding the cluster!

timbre - Pure Clojure/Script logging library

compojure - A concise routing library for Ring/Clojure

py-mysql-type-plugin - Mypy plugin to type sql

ts-macros - A typescript transformer / plugin that allows you to write macros for typescript!

squiller - Generate boilerplate from annotated SQL queries