fastapi_best_architecture icon indicating copy to clipboard operation
fastapi_best_architecture copied to clipboard

✨ TODO

Open wu-clan opened this issue 1 year ago • 7 comments

It would be great if you could provide PR.

We've fully upgraded to Pydantic-V2, but we still have some unfinished business from V1 that we'll continue to push in V2!

  • [x] Dynamic Configuration (site title, logo, footer...) #365
  • [x] code generation #318
  • [ ] File Upload: Docking cloud OSS and local backup.
  • [ ] System Notification: ws? python-socketio? and webhook

News:

  • [x] New backend architecture #299 #300
  • [x] OAuth2 application #293
  • [x] Reconstruct role menu permissions #264
  • [x] Official website: fastapi_best_architecture_docs
  • [x] New CRUDBase #317
  • [ ] Hot-swappable plug-in

wu-clan avatar Dec 20 '23 16:12 wu-clan

Fastapi Upgrade Starlette to >=0.29.0,<0.33.0 https://github.com/tiangolo/fastapi/releases/tag/0.108.0

Sqlmodel will support for Pydantic 2.0 https://github.com/tiangolo/sqlmodel/issues/654

downdawn avatar Dec 28 '23 06:12 downdawn

I got an update push from fastapi but I'm watching https://github.com/encode/starlette/pulls and there are some amazing updates here, if they are merged Fastapi will need to continue to adapt Starlette-1.0.0, will these minor versions continue to be compatible? I'm not sure, but I don't want to consume time for minor versions.

wu-clan avatar Dec 28 '23 07:12 wu-clan

These projects share common developers, and we will continue to monitor them. Our existing project structure is already quite stable, with no significant issues for production. The current three-tier architecture appears to have room for further optimization, possibly by integrating SQLModel or other methods.

downdawn avatar Dec 28 '23 08:12 downdawn

Our existing project structure is already quite stable, with no significant issues for production.

That's so cool, a solid architecture .

SQLModel is an ORM, we already have SQLA, what are your thoughts?

Repo: here

wu-clan avatar Dec 28 '23 09:12 wu-clan

SQLModel is both an SQLAlchemy model and a Pydantic model, so there is a possibility to further merge and simplify 'models' and 'schemas'.

We can keep an eye on this progress: Migration from SQLAlchemy to SQLModel. https://github.com/tiangolo/full-stack-fastapi-postgresql/issues/541

downdawn avatar Dec 28 '23 09:12 downdawn

I agree with you, but I'll decline the offer.

Because SQLModel is not updated and fixed at a good pace and is missing documentation, in fact SQLModel was born here: https://github.com/tiangolo/pydantic-sqlalchemy to reduce manual schema definition and validation is great in my opinion;

Although the number of stars for SQLModel is promising, the number of users for it is much lower than for SQLA, and to use SQLModel, the users have to learn it as well,unless SQLModel is really all over the place, I'd migrate to it

wu-clan avatar Dec 29 '23 05:12 wu-clan

OK, I agree with you

downdawn avatar Dec 29 '23 09:12 downdawn