this post was submitted on 13 Jun 2026
17 points (94.7% liked)

Python

8032 readers
1 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 3 years ago
MODERATORS
 

I think I get why Cloudflare's CTO is asking this question.  personally started using Django for backend development, boy, that thing is robust and cool, esp...

you are viewing a single comment's thread
view the rest of the comments
[–] logging_strict@programming.dev 1 points 1 month ago* (last edited 1 month ago)

Reply to /u/onlinepersona SQLAlchemy crocodile tears.

Really need a layer between SQLAlchemy and FastAPI (or litestar, ...). Otherwise would be messing around with SQLAlchemy/alembic internals for years. SQLAlchemy is an incredible time sink without that additional layer.

Created just such a package just never got around to publishing it:

  • static type checking throughout
  • sync and async support throughout
  • alembic support (both async and sync)
  • multiple databases. One per config file!
  • model built from dotted path of (sqlmodel and sqla mixins) components module
  • UDF (user defined functions)
  • database settings (PRAGMA, SHOW, SET, ...)
  • sqlite-[pysqlite|sqlcipher|aiosqlite] and postgresql-[psycopg2|asyncpg] supported
  • config does not store the password

Issues:

  • retire sqlite-sqlcipher PRAGMA rekey and key. Password in config unsafe
  • authentication by pulling from a password manager not implemented
  • strict validation of postgresql SHOW/SET keys incomplete