{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Converts JSON field names between camelCase and snake_case in Django REST Framework, providing renderers, parsers, and middleware to handle case transformation automatically.","skillfed_tags":["django-rest-framework","json-serialization","naming-conventions"],"use_cases":["Frontend-backend API contracts where JavaScript clients expect camelCase but Django models use snake_case","Migrating JavaScript-first codebases to Django without renaming all model fields","Standardizing API responses to match JavaScript naming conventions while keeping Python code idiomatic","Handling query parameters in camelCase from frontend requests and converting them to snake_case","Building REST APIs that serve both web and mobile clients expecting camelCase JSON"],"what_it_does":"This package bridges the naming-convention gap between JavaScript frontend conventions (camelCase) and Python backend conventions (snake_case) in Django REST Framework APIs. It provides custom renderers and parsers that automatically transform field names in both directions\u2014converting Python snake_case model fields to camelCase in JSON responses and converting camelCase request bodies back to snake_case for Python processing.\n\nThe package handles this transformation at multiple layers: JSON rendering/parsing, form data parsing, and query parameter middleware. It supports configuration options like ignoring specific fields or keys, handling numbers in field names with different conventions, and swapping the underlying JSON renderer (e.g., to use ORJSONRenderer for performance). No runtime dependencies means lightweight installation, but setup requires explicit Django settings configuration.","worth_installing":"Yes, if you need automatic case conversion between camelCase and snake_case in Django REST Framework. The package is actively maintained, has no runtime dependencies, carries a permissive license, and solves a real naming-convention mismatch problem. Setup requires explicit Django configuration but is straightforward. No known vulnerabilities. Install friction is high only due to configuration overhead, not dependency complexity."},"id":"djangorestframework-camel-case","links":{"html":"https://skillfed.io/packages/djangorestframework-camel-case","md":"https://skillfed.io/packages/djangorestframework-camel-case.md","pypi":"https://pypi.org/project/djangorestframework-camel-case/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-02-13","license_spdx":null,"license_treatment":"permissive","name":"djangorestframework-camel-case","python_support":"supports_current","summary":"Camel case JSON support for Django REST framework."},"popularity":{"monthly_downloads":576207,"position":5931,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4.2"}
