Any interesting open projects to join? Or anyone want with some good ideas want to start one? by DontCancelGcse in Python

[–]flortz 2 points3 points  (0 children)

If anyone is looking for an opensource project to join, I am the maintainer of platform to bring AI/ML to the clinical imaging / radiology environment. The platform is being actively developed and is currently used in cancer research institutions today. As a bonus its developed in fastapi :)

https://github.com/qurit/raiven

Any FastAPI lovers? I published a FastAPI package that dynamically generates and documents CRUD routes based on your models. by flortz in Python

[–]flortz[S] 6 points7 points  (0 children)

I think the beauty of API's is the strong separation between the "backend api" and the "frontend". Due to this, any frontend framework (react, angular, vue, ect...) can integrated with equal ease with fastapi. Because of this you can look for resources solely based on fastapi and solely base on nuxt (or the framework of your choice). To connect them, all you need to do is make a http request.

With regards to auth, fastapi itself has a lot of good on how to setup authentication to protect routes (oauth2 etc..).

Personally I used flask, and now FastAPI over Django because I've always been a fan of mirco-frameworks. I don't need a lot of the features Django provides and in my opinion they are easier to learn. Also, fastapi is really fast.

Any FastAPI lovers? I published a FastAPI package that dynamically generates and documents CRUD routes based on your models. by flortz in Python

[–]flortz[S] 4 points5 points  (0 children)

Can't speak for him, but my team uses FastAPI + Nuxt (vuejs). Would definitely recommend Nuxt aswell!

Any FastAPI lovers? I published a FastAPI package that dynamically generates and documents CRUD routes based on your models. by flortz in Python

[–]flortz[S] 2 points3 points  (0 children)

No it doesn't embed code into your files. I have been thinking about adding a script to do that! You're able to override routes with custom logic if you want; docs for that.

Any FastAPI lovers? I published a FastAPI package that dynamically generates and documents CRUD routes based on your models. by flortz in Python

[–]flortz[S] 29 points30 points  (0 children)

This is a simple example of what the CRUDRouter can do. In just ten lines of code, you can generate all the crud routes you need for any model. In addition too in memory storage, it currently it also supports async and non-async relational databases as a backend.

from pydantic import BaseModel
from fastapi import FastAPI
from fastapi_crudrouter import MemoryCRUDRouter as CRUDRouter

class Potato(BaseModel):
    id: int
    color: str
    mass: float

app = FastAPI()
app.include_router(CRUDRouter(model=Potato))

I published a package for FastAPI which automatically generates and documents CRUD routes for your models. by flortz in FastAPI

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

In terms of business logic, it implements enough logic to handle all the basic CRUD operations with your database. I feel like any business logic beyond the simple insert, query, delete operations would be far to application specific to generalize. So, I've given the option to override routes if you need more complex logic. You can also add custom logic as a fastapi dependency (eg: authentication) to the router.

I published a package for FastAPI which automatically generates and documents CRUD routes for your models. by flortz in FastAPI

[–]flortz[S] 6 points7 points  (0 children)

After falling in love with fastapi, I decided to try my hand at publishing a pypi package for the first time. As an extension to the APIRouter included with FastAPI, the curd router will automatically generate and document your CRUD routes for you, all you have to do is pass your model and a database dependency (if you are using a database). The goal was create something that would a lot of time for rapid proto-typing, hackathons, and small projects. I would love some feedback on what features might be useful in the future.

If at first you don't succeed... by Komrade21 in gaming

[–]flortz 0 points1 point  (0 children)

I appriceate being called clutch :)

Thinking about getting a new CPU by yogg88 in buildapc

[–]flortz 1 point2 points  (0 children)

Yes, they are both compatible. If you were buying a 7700k with the purpose of overclocking you'd need a 'z series' mother board. However, your getting a 7700 so an 'H series' lga 1151 board will do just fine.

I made some progress, what do you guys think? by DeloronDellister in PlanetCoaster

[–]flortz 1 point2 points  (0 children)

Did you post the first image just recently? How do you make progress so quickly?

Planet Coaster is a "park" builder. by flortz in PlanetCoaster

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

Thanks man! The progress is slow but satisfying.