This product was not featured by Product Hunt yet. It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).
Django REST Framework-style ViewSets for FastAPI. Register LIST, GET, POST, PUT, PATCH, DELETE from one class. Works with SQLAlchemy (sync/async), Tortoise ORM, and Peewee. Pydantic v2, OpenAPI schemas, pagination, optional OAuth2, and declarative eager loading (select_related / prefetch_related) to kill N+1 — without touching the viewset.
Hey Product Hunt 👋
I'm Alexander — I built fastapi-viewsets because I missed DRF ViewSets when moving APIs to FastAPI.
What it does:
• One class → full CRUD (LIST/GET/POST/PUT/PATCH/DELETE)
• SQLAlchemy sync + async, Tortoise ORM, Peewee via adapters
• Pydantic v2 + auto OpenAPI
• Declarative eager loading via RelatedConfig on schemas (no more N+1 boilerplate)
• limit/offset pagination, optional OAuth2 on selected methods
Install:
pip install fastapi-viewsets
# or with ORM extras:
pip install "fastapi-viewsets[sqlalchemy]"
Repo: https://github.com/svalench/fast...
PyPI: https://pypi.org/project/fastapi...
Would love feedback from FastAPI folks — especially on the multi-ORM adapters and RelatedConfig API. Happy to answer anything in the comments 🚀
DRF ViewSets in FastAPI has been a pain point for a while, glad someone packaged this. One thing that would really help adoption: add first-class support for nested routes (like /posts/{id}/comments) that auto-generate the parent lookup and inject the related object into the handler context.
this is honestly super useful, i basically wrote something like this by hand a few months ago so wish i had it then. one thing that would be a game changer for me though, would be built in support for soft delete patterns, like a flag in the viewset to automatically filter out is_deleted rows and add a restore endpoint. would save a bunch of boilerplate on every project
love that you brought DRF's ViewSet ergonomics to FastAPI without losing the async story. one thing that would seal it for me: a built-in hook for soft delete logic that also filters LIST/GET queries automatically, so marking a row as deleted just works across endpoints without me overriding every action.
honestly the declarative eager loading is kind of the killer feature for me, basically set the joins on the model and it just handles the rest without me wiring anything custom in the viewset. solid drop
About fastapi-viewsets on Product Hunt
“DRF-style ViewSets for FastAPI — CRUD in minutes”
fastapi-viewsets was submitted on Product Hunt and earned 12 upvotes and 6 comments, placing #111 on the daily leaderboard. Django REST Framework-style ViewSets for FastAPI. Register LIST, GET, POST, PUT, PATCH, DELETE from one class. Works with SQLAlchemy (sync/async), Tortoise ORM, and Peewee. Pydantic v2, OpenAPI schemas, pagination, optional OAuth2, and declarative eager loading (select_related / prefetch_related) to kill N+1 — without touching the viewset.
fastapi-viewsets was featured in Open Source (68.6k followers), Software Engineering (42.7k followers), Developer Tools (516.2k followers) and GitHub (41.3k followers) on Product Hunt. Together, these topics include over 122.8k products, making this a competitive space to launch in.
Who hunted fastapi-viewsets?
fastapi-viewsets was hunted by Александр Валенчиц. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
Want to see how fastapi-viewsets stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.