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.
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.
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.
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.
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.