PyPika VS sql-athame

Compare PyPika vs sql-athame and see what are their differences.

PyPika

PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis. (by kayak)

sql-athame

Python tool for slicing and dicing SQL (by bdowning)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
PyPika sql-athame
4 2
2,367 11
2.1% -
5.5 0.0
7 days ago about 1 year ago
Python Python
Apache License 2.0 MIT License
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.

PyPika

Posts with mentions or reviews of PyPika. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-11.
  • any recommendations for a good query builder library with good support?
    2 projects | /r/learnpython | 11 Jul 2023
    I recently started using drizzle orm and I am now looking for something similar in python, my goal is to be as close to sql syntax as possible without just passing dml commands as strings, type safety would be cool as well, I saw this one pypika but it ha a lot of open issues and no commits for a year, is there anything similar but more stable?
  • Ask HN: Is SQLAlchemy the industry standard Python ORM in 2023?
    2 projects | news.ycombinator.com | 11 Jun 2023
    Yes it is. I haven't seen many Python projects using Prisma and

    Note that there are several types of technologies that can help connect an application to an SQL database:

    - SQL builders: the best known project seems to be Pypika by Kayak (https://github.com/kayak/pypika) but it seems to be dead of sleeping.

  • Write an SQL query builder in 150 lines of Python
    10 projects | news.ycombinator.com | 27 Aug 2021
    https://github.com/kayak/pypika

    Have used in multiple projects and have found it's the right balance between ORMs and writing raw SQL. It's also easily extensible and takes care of the many edge cases and nuances of rolling your own SQL generator.

  • Migrating to SQLAlchemy 2.0
    3 projects | news.ycombinator.com | 18 Feb 2021
    There is a middle-ground between writing SQL statement strings in your code, and a full-blown ORM: query builders. At least in my experience with small to medium projects, these have far fewer footguns while keeping the code composable and readable. Here's one for Python: https://github.com/kayak/pypika

sql-athame

Posts with mentions or reviews of sql-athame. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-26.
  • Show HN: Sqlbind a Python library to compose raw SQL
    7 projects | news.ycombinator.com | 26 Feb 2024
    I had my own take on this concept[1], though with considerably less language magic involved. I imagine there's a lot of these kind of things running around. My criteria were:

    a) let me write actual SQL, not a python DSL that generates SQL

    b) be placeholder-safe

    c) be composable

    [1] https://github.com/bdowning/sql-athame

  • Write an SQL query builder in 150 lines of Python
    10 projects | news.ycombinator.com | 27 Aug 2021
    This is my middle-ground solution for Python: https://github.com/bdowning/sql-athame

    Still fundamentally manipulating SQL text (which is a feature as I don't want to learn a full DSL), but it handles wrangling embedded placeholders while you're composing stuff and some other common compositional tasks. It's worked well for me anyway but I'm under no illusions it'd be right for everyone.

    Not an original concept regardless; my original version of this was in Node: https://github.com/bdowning/sql-assassin, but a few years after I wrote that (and mostly didn't use it) I found https://github.com/gajus/slonik which was very similar and much more fleshed-out; I rolled _some_ of its concepts and patterns into sql-athame.

What are some alternatives?

When comparing PyPika and sql-athame you can also consider the following projects:

TinyDB - TinyDB is a lightweight document oriented database optimized for your happiness :)

pgcli - Postgres CLI with autocompletion and syntax highlighting

sqlc - Generate type-safe code from SQL

asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.

postgres-typed

tksheet - Python tkinter table widget for displaying tabular data

xql - SQL builder and utilities library for node.js (runs in browser as well).

PipelineDB - High-performance time-series aggregation for PostgreSQL

pickleDB - pickleDB is an open source key-value store using Python's json module.

django-compositepk-model - Extended Django Model class with composite-primary-key support