{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/6"}],"enrichment":{"capability":"Extends Django REST Framework with separate read and write serializers for generic views, viewsets, and mixins, allowing different serialization logic for request and response operations.","skillfed_tags":["django-rest-framework","serialization","api-design"],"use_cases":["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."],"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\u2014for example, using a lightweight serializer for writes and a richer one for reads with nested relationships or computed fields.\n\nThe 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.","worth_installing":"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\u2014the last release was 799 days ago\u2014so verify compatibility with your current djangorestframework and Django versions before adopting."},"id":"drf-rw-serializers","links":{"html":"https://skillfed.io/packages/drf-rw-serializers","md":"https://skillfed.io/packages/drf-rw-serializers.md","pypi":"https://pypi.org/project/drf-rw-serializers/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-06-06","license_spdx":null,"license_treatment":"permissive","name":"drf-rw-serializers","python_support":"supports_current","summary":"Generic views, viewsets and mixins that extend the Django REST Framework ones adding separated serializers for read and write operations"},"popularity":{"monthly_downloads":74870,"position":14780,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
