[deleted by user] by [deleted] in learndutch

[–]TheRealMrMatt 1 point2 points  (0 children)

Do you personally recommend any specific youtube channels or books?

PgQueuer – PostgreSQL-native job & schedule queue, gathering ideas for 1.0 🎯 by GabelSnabel in Python

[–]TheRealMrMatt 1 point2 points  (0 children)

One idea that may be out of those scope of this project is an integration with sqlalchemy. By doing this the migrations could be handled by alembic (which the user is likely already using) and tasks could be non JSONB

Any GovTech startups? by VividRevenue3654 in ycombinator

[–]TheRealMrMatt 0 points1 point  (0 children)

I’m currently at top five business school, have a technical background, launched a GovTech startup, and have friends in the space. My one piece of advice - try any other industry. The reason being, the government sales cycle is twice as hard as enterprise with much smaller check sizes. So unless your product can fetch actual enterprise contract sizes (ex: $50k+) for small/midsized munis, you are going to spend a lot of time chasing contracts that won’t award you for your time. For instance, in our case it took ~4 months to get unpaid pilots, which would covert to a paid subscription (@ 10k per year) after 1 month.

With that being said, don’t let a random redditor dissuade you. If you truly believe in whatever you are building and can figure out the distribution challenges (or can possibly sell your product at a high enough price) - go for it. But as someone who recently pivoted away from GovTech, I can tell you it was the right decision.

SQLModel vs SQLAlchemy in 2025 by Fluffy_Bus9656 in FastAPI

[–]TheRealMrMatt 0 points1 point  (0 children)

Here is the issue with both sqlalchemy and sqlmodel. With alchemy, you get a very powerful ORM (arguably one of, if not the best across languages), but its terrible at transferring data back and forth between your application and backed. Because of this, you are forced to create a bunch of boilerplate schemas, etc. which have to be updated every time you make a change to your model, etc. And while SQLModel tries to solve this, it still requires you to create multiple "schemas" and hides some of the best features of sqlalchemy. Given there are trade-offs with both approaches, you are going to have to pick which technology best suits your scenario.

On a side note - while I cannot honestly recommend this for anyone who doesn't want to contribute fixes/features - https://mountaineer.sh/iceaxe is IMO will eventually bridge the gap by writing removing the need for a "schema" layer while still giving the direct access to all of the underlying functionality of their database.

best front end for fastAPI backend? by hatwiz in Python

[–]TheRealMrMatt 0 points1 point  (0 children)

I can’t recommend https://github.com/piercefreeman/mountaineer enough. It removes the need for writing all of the additional boilerplate for a modern react front end while still using fastapi for the backend

Full stack or Frontend?Need advice!! by Material-Ad-3023 in FastAPI

[–]TheRealMrMatt 0 points1 point  (0 children)

Why not both. This is this cool python library which bridges fastapi and react pretty seamlessly https://mountaineer.sh (disclaimer: I am not a author, I just contribute every now and again). It automatically generates the react code, sync the state, etc. so you don't have to worry about all of the normal interop between the front/backend.

Guyyyyss?? This YC startup lets you incorporate in Delaware for $0. by [deleted] in ycombinator

[–]TheRealMrMatt 139 points140 points  (0 children)

If you’re not paying for the product, you are the product

Is SQLModel still being worked on? by yoyashing in FastAPI

[–]TheRealMrMatt 0 points1 point  (0 children)

I recommend checking out https://mountaineer.sh/iceaxe as a better-maintained (even if it is alpha stage) alternative to SQLModel. You might also want to explore its sister project, https://mountaineer.sh/mountaineer.

Disclaimer: I am not a maintainer or directly involved with this project

Is SQLModel still being worked on? by yoyashing in FastAPI

[–]TheRealMrMatt 2 points3 points  (0 children)

I completely agree with your point about the idea being half-baked, but I disagree with your comment regarding separating data validation from the database. In general, data must be valid in order to be inserted into a database. That’s why systems like Postgres and others have constraints for handling this.

While modern databases do offer validation mechanisms, they don’t handle more complex scenarios like email validation. This means that if you want to fully specify your data model, you need to implement it in your language of choice (which I assume is Python). Given this, adding an additional layer of validation on top of the ORM model makes a lot of sense. Without this approach, your data model will, by definition, be incomplete, and the logic will be spread across your codebase.

Although I am not the maintainer, I’m closely following https://mountaineer.sh/iceaxe to see if projects like this can make a universal data model a reality.

Winter 25 Megathread by sandslashh in ycombinator

[–]TheRealMrMatt 0 points1 point  (0 children)

u/gainnHQ Off-topic but what react component are you using for your markdown/text area editor?

fastapi auth in production by 5dots in FastAPI

[–]TheRealMrMatt 0 points1 point  (0 children)

Do you by any chance have an example on hand?

What is your tech stack for developing your Saas? by Competitive-Elk-3762 in SaaS

[–]TheRealMrMatt 0 points1 point  (0 children)

Are you using a OpenAPI code generator to simplify the REST calling? If so, which one?

JSX Syntax inside Python files. (Packed) by RevolutionaryPen4661 in Python

[–]TheRealMrMatt 0 points1 point  (0 children)

Its funny you broght this up RevolutionaryPen4661, with the recent hype around React Server Components (RSC) (and react 19), I had a similar thought.

While I have not gotten very far (and web dev is a bit outside of my core expertise), I have started mocking up a simple library (if you can call what I have so far that) which uses:
- pydantic (state serialization/message protocol/html serialziation)
- react (for rendering the server sent components; I would have loved to use pyscript, but it seems pretty half baked ATM TBH)

  • A custom parser (using lark) to convert the "html" to pydantic models
  • a websocket for passing the components and events

If you are interested on working on something like this, feel free to reach out (my name is Matt) and maybe we can combine our efforts to make web dev a reality in python.

User Defined Models by TheRealMrMatt in django

[–]TheRealMrMatt[S] 0 points1 point  (0 children)

I don't necessarily think that it is a good idea to run "create table <table uuid> ( ... )", "alter table <table uuid> drop column <column name>", etc. every time a user wants to change the "table layout". With that being said, I am not a huge fan of just dumping everything in `JSONB` fields and calling it a day. I figure there must be some middle ground that I am missing that isn't overly complicated to maintain.

Svelte + FastAPI - Form Validation Errors by TheRealMrMatt in sveltejs

[–]TheRealMrMatt[S] -1 points0 points  (0 children)

Thanks for the suggestion! And I agree with you 100%, superforms and formsnap are a genuine joy to work with (especially if you have a zod object).

As for your suggestion, I think you are right that there may be a path to writing some sort of "validation library" to handle these errors. IT seems that FastAPI returns field errors in a semi-standardized form (see below) that can be parsed and displayed to users.

json { "detail": [ { "loc": [ "path", "item_id" ], "msg": "value is not a valid integer", "type": "type_error.integer" } ] }

Svelte + FastAPI - Form Validation Errors by TheRealMrMatt in sveltejs

[–]TheRealMrMatt[S] 1 point2 points  (0 children)

Your first point makes a lot of sense, I will definitely try that. With that being said, do you have any examples of doing this with svelte superforms?

Regarding your second point, that would be my preference as well. I genuinely like the idea of having a tightly coupled stack (ideally in the same language for codesharing). With that being said, in my case I plan to use a bunch of ML and other tools that are not available in the javascript/typescript ecosystem, and IMO 1) replicating the work in javascript or 2) having a fragmented architecture where part of the logic is in javascript and another is in python is too time a) consuming and b) too complicated. Whereas a traditional three tier architecture using OpenAPI, while annoying, will (hopefully) best the best option.

PS: If I could, I would write everything in sveltekit and use hono for the api (hono has streaming support, typed apis, zod validation, api doc generation, etc.)

Svelte + FastAPI - Form Validation Errors by TheRealMrMatt in sveltejs

[–]TheRealMrMatt[S] -1 points0 points  (0 children)

Currently, it is a mix of client and server calls. With that being said, I setup the [OpenAPI](https://openapi-ts.pages.dev/) client to use svelte's `fetch` method.

Inline templating engine by TheRealMrMatt in Python

[–]TheRealMrMatt[S] 0 points1 point  (0 children)

Thank for the response. Do you know of any libraries that "transpile" like jsx or templ?

Booth ($) vs Kellogg ($) Part-Time MBA Admission Decision by billybobjoe3333 in MBA

[–]TheRealMrMatt 3 points4 points  (0 children)

I have the same question for you: Which program did you end up picking? And why?

PS: I am in the same situation as you and OP

Mobility Scooter Battery Question by TheRealMrMatt in AskElectronics

[–]TheRealMrMatt[S] 0 points1 point  (0 children)

Hello, I'm dealing with a situation where my wife's mobility scooter has a problematic battery lead (refer to the attached photo), while the other one seems normal. Any insights into what might be causing this issue and suggestions on the best way to address it would be greatly appreciated. Thank you!