22
submitted 3 weeks ago by lena@gregtech.eu to c/python@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] Botzo@lemmy.world 6 points 3 weeks ago

Currently giving it a try on a small API+async task project.

I think the hardest thing for me has been discovering which dependencies are (can be) injected and through what magic string. But, it's also easy to step through the source to find answers.

After many years of DIYing validation with Django, then attrs+flask, and then getting a lot of that work for free with pydantic+fastapi, msgspec+litestar feels like the natural evolution into a mature pattern.

The sqlalchemy models are first-class citizens, the service and repository classes just work (especially well if you use their advanced alchemy wrapper).

And the devs are very responsive (fixed a tiny bug I found in a weird corner with tests in a matter of hours).

I'm gushing a bit. So I'll just end it by saying I agree with the author: it's worth a look.

[-] lena@gregtech.eu 2 points 3 weeks ago

Yep, I might give it a try in my next project, but I'm not completely sure if I'll use Go (with Gin) or Litestar and Python.

[-] Botzo@lemmy.world 3 points 3 weeks ago

Just my opinion of course: I wrote golang for years and wanted to love it for the first few. I like some of the patterns, but I got very tired of writing (and reviewing) boilerplate (or in the case of reviews, what should have been boilerplate but got missed). I know it has gotten a bit better in the past few years, but at this point I'd need a huge reason to leave python or look past rust.

this post was submitted on 07 Aug 2025
22 points (95.8% liked)

Python

7406 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 2 years ago
MODERATORS