pampy
PyPika
pampy | PyPika | |
---|---|---|
2 | 4 | |
3,503 | 2,378 | |
- | 1.1% | |
0.0 | 5.6 | |
about 2 years ago | 8 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
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.
pampy
-
Functools – The Power of Higher-Order Functions in Python
Here is pattern matching as a library that is not built using statements,
https://github.com/santinic/pampy
Clearly it's possible. It's also more ergonomic than PEP 622.
-
why is scala considered hard?
What about some Python's alternative then? https://github.com/santinic/pampy https://pythonawesome.com/pampy-the-pattern-matching-for-python-you-always-dreamed-of/
PyPika
-
any recommendations for a good query builder library with good support?
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?
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
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
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
What are some alternatives?
Coconut - Simple, elegant, Pythonic functional programming.
TinyDB - TinyDB is a lightweight document oriented database optimized for your happiness :)
py2many - Transpiler of Python to many other languages
sqlc - Generate type-safe code from SQL
pyfuncol - Functional collections extension functions for Python
asyncpg - A fast PostgreSQL Database Client Library for Python/asyncio.
PipelineDB - High-performance time-series aggregation for PostgreSQL
tksheet - Python tkinter table widget for displaying tabular data
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
postgres-typed
SSShelf - An ORM for S3