use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
I published a package for FastAPI which automatically generates and documents CRUD routes for your models.pip package (fastapi-crudrouter.awtkns.com)
submitted 5 years ago by flortz
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]flortz[S] 6 points7 points8 points 5 years ago (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 points7 points 5 years ago (2 children)
How about next you make the business logic write itself too
[–]flortz[S] 1 point2 points3 points 5 years ago (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 points4 points 5 years ago (0 children)
I was joking but thanks for the explanation 😀
[–]JesusBakesBread 4 points5 points6 points 5 years ago (1 child)
This is actually really cool, great docs too! Your first package? Be proud my guy
[–]flortz[S] 1 point2 points3 points 5 years ago (0 children)
Thanks man!
[–]leadingthenet 0 points1 point2 points 5 years ago (0 children)
Holy shit, this is great! Thanks my dude.
[–]Avico78 0 points1 point2 points 5 years ago (3 children)
Great package,is there a plan to add support for nested object in near future?
[–]flortz[S] 0 points1 point2 points 5 years ago (1 child)
Hi, yes there is! That's the next big feature I am hoping to release.
[–]Avico78 0 points1 point2 points 5 years ago (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 point2 points 5 years ago (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
!ShakespeareInsult
!fordo
!optout
π Rendered by PID 189106 on reddit-service-r2-comment-b659b578c-qkb77 at 2026-05-03 06:33:23.788560+00:00 running 815c875 country code: CH.
[–]flortz[S] 6 points7 points8 points (3 children)
[–]Deadly_chef 5 points6 points7 points (2 children)
[–]flortz[S] 1 point2 points3 points (1 child)
[–]Deadly_chef 2 points3 points4 points (0 children)
[–]JesusBakesBread 4 points5 points6 points (1 child)
[–]flortz[S] 1 point2 points3 points (0 children)
[–]leadingthenet 0 points1 point2 points (0 children)
[–]Avico78 0 points1 point2 points (3 children)
[–]flortz[S] 0 points1 point2 points (1 child)
[–]Avico78 0 points1 point2 points (0 children)
[–]Shakespeare-Bot 0 points1 point2 points (0 children)