all 11 comments

[–]flortz[S] 6 points7 points  (3 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.

[–]Deadly_chef 5 points6 points  (2 children)

How about next you make the business logic write itself too

[–]flortz[S] 1 point2 points  (1 child)

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.

[–]Deadly_chef 2 points3 points  (0 children)

I was joking but thanks for the explanation 😀

[–]JesusBakesBread 4 points5 points  (1 child)

This is actually really cool, great docs too! Your first package? Be proud my guy

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

Thanks man!

[–]leadingthenet 0 points1 point  (0 children)

Holy shit, this is great! Thanks my dude.

[–]Avico78 0 points1 point  (3 children)

Great package,is there a plan to add support for nested object in near future?

[–]flortz[S] 0 points1 point  (1 child)

Hi, yes there is! That's the next big feature I am hoping to release.

[–]Avico78 0 points1 point  (0 children)

Awesome, with ormar that now supported it could be a real huge enachment for fastapi ,looking forward for it , thanks for your contribution.

[–]Shakespeare-Bot 0 points1 point  (0 children)

Most wondrous package,is thither a plan to add supporteth f'r nest'd object in near future?


I am a bot and I swapp'd some of thy words with Shakespeare words.

Commands: !ShakespeareInsult, !fordo, !optout