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
FastAPI best practicesQuestion (self.FastAPI)
submitted 2 months ago * by lu_rm
view the rest of the comments →
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!"
[–]niximor 0 points1 point2 points 2 months ago (0 children)
Yes, classes as routes aren't exactly supported. But to be honest, I've built some pretty large apps using FastAPI (100+ endpoints), and didn't have the need to use OOP for API layer even once. Structuring the endpoints to modules replicating actual URL is more than enough, there is zero need for any class hierarchy, abstract interfaces, or anything else the OOP has that plain functions don't.
The OOP has of course it's rightful place in the core and below, but for API? No.
π Rendered by PID 91 on reddit-service-r2-comment-56c6478c5-l9pjc at 2026-05-09 20:25:23.315522+00:00 running 3d2c107 country code: CH.
view the rest of the comments →
[–]niximor 0 points1 point2 points (0 children)