drf-commons

https://github.com/htvictoire/drf-commons/actions/workflows/tests.yml/badge.svg?branch=main https://codecov.io/gh/htvictoire/drf-commons/branch/main/graph/badge.svg https://img.shields.io/pypi/v/drf-commons.svg https://img.shields.io/pypi/dm/drf-commons.svg https://img.shields.io/badge/python-3.8%2B-blue.svg https://img.shields.io/badge/django-3.2%2B-green.svg https://img.shields.io/badge/djangorestframework-3.12%2B-red.svg https://img.shields.io/badge/License-MIT-yellow.svg https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/badge/Django%20Packages-drf--commons-8c3c26.svg

drf-commons is a utility library for Django REST Framework that adds audit tracking, standardized responses, bulk operations, configurable serializer fields, and import/export — built on DRF’s own extension points without replacing its internals.

Philosophy

drf-commons is not a framework replacement. It extends DRF using its own documented extension points, leaving DRF’s existing behavior intact. Each component is a mixin: independently usable, explicitly opted-in, and composable to suit exactly what your API needs.

Getting Started

Core Reference

Advanced Topics

Operations

Appendices

Appendices

Indices and Tables