django-anvil v0.1
🔍Search docs...⌘K

Django Anvil

Declarative Resource classes that generate a DRF API, RBAC enforcement, multi-tenant scoping, audit history, and tests — from one model definition. Free, open-source, installs into any existing Django + DRF project.

No hosted service Wraps DRF, django-filter, Django's own auth MIT licensed

Every Django + DRF project ends up writing the same boilerplate for every model: a serializer, a viewset with search/filter/ordering wired up, a router registration, an admin registration, a test file. Then doing it again for permissions. Again for multi-tenancy. Again for audit history — usually slightly differently each time, by whoever wrote that particular model.

Anvil collapses all of that into one declarative Resource class per model. Run one command and get real, ordinary, editable Django/DRF code back — not a runtime abstraction you have to work around later when it doesn't fit. It installs into an existing project; it doesn't ask you to restructure one around it.

1
Define
Write one Resource class next to your model — fields, permissions, tenancy, all declarative.
2
Generate
anvil resource Product writes the serializer, viewset, urls, admin, and tests.
3
Ship
A full CRUD API — filtered, permissioned, tenant-scoped, tested — ready to run.