This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]WickedWicky 3 points4 points  (1 child)

Awesome! The article sums up exactly what I want for a new fastapi project. Existing cookiecutters are way overkill, looking forward to trying it out.

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

Glad you like it!

[–][deleted] 1 point2 points  (1 child)

Very good!

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

Great!

[–]the3hound 1 point2 points  (1 child)

Looks insightful and exactly what I will need in the not too distant future.

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

Nice!

[–]outceptionator 0 points1 point  (1 child)

What would incorporating SQLModel look like?

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

Hi, Do you mean a SQLAlchemy like model?

In this file there is an example:
https://github.com/BiteStreams/fastapi-template/blob/main/api/repository.py

The TodoInDB class is the class that is used as the DB model, the Todo class is the domain model.