drf-rw-serializers
Generic views, viewsets and mixins that extend the Django REST Framework ones adding separated serializers for read and write operations
Decision gist · record as of 2026-08-14
Yes, if you are building a djangorestframework API and need different serialization schemas for requests and responses. The package is straightforward to integrate, has low install friction, and solves a real architectural problem. However, note that maintenance is aging—the last release was 799 days ago—so verify compatibility with your current djangorestframework and Django versions before adopting.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires djangorestframework to be installed and configured; intended for use within a Django project with djangorestframework already set up.
- Low install friction with a single runtime dependency on djangorestframework.
- Maintenance status is aging—last release was 799 days ago, though the repository remains active with a recent commit on 2025-03-06 and no archived status.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
last release 2024-06-06 (799 days) · last repo commit 2025-03-06 · 181 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 74,870 downloads/mo, #14,780 on PyPI
Alternatives
Verify before relying
pip install drf-rw-serializers
from drf_rw_serializers.generics import GenericViewSet
class MyViewSet(GenericViewSet):
read_serializer_class = MyReadSerializer
write_serializer_class = MyWriteSerializer- Whether the package supports the latest djangorestframework versions and any recent breaking changes.
- Performance characteristics when handling large datasets with separate read/write serializers.
- Specific Django version compatibility beyond what the classifiers indicate.
What it is and what it does
drf-rw-serializers is a Django REST Framework extension that allows you to define separate serializers for read (response) and write (request) operations in your API views and viewsets. Instead of forcing a single serializer to handle both input validation and output representation, you can optimize each independently—for example, using a lightweight serializer for writes and a richer one for reads with nested relationships or computed fields.
The package provides drop-in replacements for djangorestframework's generic views, viewsets, and mixins that automatically route requests to your read_serializer_class or write_serializer_class as appropriate. It has a single runtime dependency on djangorestframework and supports Python 3.8, 3.9, 3.10, 3.11, and 3.12. The codebase is stable but aging, with the last release 799 days ago; however, the repository remains maintained with recent commits.
Use it for
- API endpoints where write requests need minimal fields but responses include computed or nested data.
- Separating input validation logic from output representation in complex djangorestframework projects.
- Reducing payload size on write operations while enriching read responses with related objects.
- Implementing different permission or field-level logic for incoming vs. outgoing serialization.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a djangorestframework API and need different serialization schemas for requests and responses.
The package is straightforward to integrate, has low install friction, and solves a real architectural problem. However, note that maintenance is aging—the last release was 799 days ago—so verify compatibility with your current djangorestframework and Django versions before adopting.
Install
drf-rw-serializers on PyPI
Before you install
Low install friction with a single runtime dependency on djangorestframework. Maintenance status is aging—last release was 799 days ago, though the repository remains active with a recent commit on 2025-03-06 and no archived status.
Requires djangorestframework to be installed and configured; intended for use within a Django project with djangorestframework already set up.
License in practice
MIT license (permissive) permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license text.
Quickstart
pip install drf-rw-serializers
from drf_rw_serializers.generics import GenericViewSet
class MyViewSet(GenericViewSet):
read_serializer_class = MyReadSerializer
write_serializer_class = MyWriteSerializer
Verify before relying
- Whether the package supports the latest djangorestframework versions and any recent breaking changes.
- Performance characteristics when handling large datasets with separate read/write serializers.
- Specific Django version compatibility beyond what the classifiers indicate.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjangorestframework |
| Maintenance | Aging 799 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,870 / month, #14,780 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: drf_rw_serializers-1.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django rest framework read write serializers”
- drf-rw-serializersExtends Django REST Framework with separate read and write…
- rest-framework-generic-relationsProvides Django REST Framework serializers that handle Django's…
- adrfAdds async/await support to Django REST framework views, viewsets,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also djangorestframework-bulk · drf-extensions · drf-dynamic-fields · djangorestframework · drf-writable-nested · rest-framework-generic-relations · drf-exceptions-hog · adrf · drf-standardized-errors · django-service-objects