{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/5"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/2"},{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/2"}],"enrichment":{"capability":"Automatically generates Django REST Framework serializers from Python dataclasses, mapping dataclass fields to REST serializer fields without manual duplication.","skillfed_tags":["django-rest-framework","dataclass-serialization","api-development"],"use_cases":["Serialize and deserialize dataclass-based domain models in REST APIs without duplicating field definitions.","Build REST endpoints that accept and return typed dataclass instances instead of raw dictionaries.","Reduce boilerplate when working with dataclasses as request/response DTOs in Django views or viewsets.","Automatically validate incoming data against dataclass type annotations and constraints.","Migrate from ModelSerializer-based APIs to dataclass-based architectures with minimal refactoring."],"what_it_does":"This package provides a DataclassSerializer that automatically generates Django REST Framework serializer fields from dataclass type annotations. Instead of manually declaring each field twice\u2014once in the dataclass and again in a DRF Serializer\u2014you define the dataclass with type hints and let the serializer introspect it. The package handles common Python types (str, bool, int, float, date, datetime, time, timedelta, Decimal, UUID, Enum, Literal, Union, Iterable, Mapping) and generates corresponding REST Framework fields, respecting optional fields, nullable types, and read-only markers.\n\nIt follows the ModelSerializer pattern familiar to Django developers: you specify the dataclass in a Meta subclass, optionally override or add fields, and get create() and update() implementations for free. The serializer works with the standard DRF workflow\u2014calling .data for serialized output, .validated_data for deserialized instances, and save() to persist or update objects. This is most useful in projects that use dataclasses for domain models or DTOs rather than Django ORM models.","worth_installing":"Yes, if you use dataclasses as your primary data model layer in Django REST Framework projects. The package is stable and permissively licensed, with low install friction. The 457-day release gap suggests slower maintenance, so verify compatibility with your Django and DRF versions before adopting; otherwise it is a solid fit for eliminating serializer boilerplate."},"id":"djangorestframework-dataclasses","links":{"html":"https://skillfed.io/packages/djangorestframework-dataclasses","md":"https://skillfed.io/packages/djangorestframework-dataclasses.md","pypi":"https://pypi.org/project/djangorestframework-dataclasses/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-05-14","license_spdx":null,"license_treatment":"permissive","name":"djangorestframework-dataclasses","python_support":"supports_current","summary":"A dataclasses serializer for Django REST Framework"},"popularity":{"monthly_downloads":2838854,"position":2867,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.4.0"}
