djangorestframework-camel-case
Camel case JSON support for Django REST framework.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django and Django REST Framework to be installed and configured; no automatic case conversion occurs without explicit settings registration.
- High install friction due to no runtime dependencies but requires explicit Django settings configuration.
- Package is actively maintained with recent commits and a stable release history since 2013, though marked Pre-Alpha in classifiers.
License · maintenance · safety
BSD (permissive) — BSD license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2023-02-13 (1278 days) · last repo commit 2026-07-20 · 674 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 576,207 downloads/mo, #5,931 on PyPI
Alternatives
Verify before relying
pip install djangorestframework-camel-case
# In Django settings.py:
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'djangorestframework_camel_case.render.CamelCaseJSONRenderer',
),
'DEFAULT_PARSER_CLASSES': (
'djangorestframework_camel_case.parser.CamelCaseJSONParser',
),
}
MIDDLEWARE = [
'djangorestframework_camel_case.middleware.CamelCaseMiddleWare',
]- Whether the Pre-Alpha classifier reflects current stability or is outdated given active maintenance since 2013
- Performance impact of recursive case transformation on large JSON payloads
- Compatibility with Django REST Framework versions beyond those in classifiers
What it is and 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—converting Python snake_case model fields to camelCase in JSON responses and converting camelCase request bodies back to snake_case for Python processing.
The 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.
Use it for
- 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
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
djangorestframework-camel-case on PyPI
Before you install
High install friction due to no runtime dependencies but requires explicit Django settings configuration. Package is actively maintained with recent commits and a stable release history since 2013, though marked Pre-Alpha in classifiers.
Requires Django and Django REST Framework to be installed and configured; no automatic case conversion occurs without explicit settings registration.
License in practice
BSD license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install djangorestframework-camel-case
# In Django settings.py:
REST_FRAMEWORK = {
'DEFAULT_RENDERER_CLASSES': (
'djangorestframework_camel_case.render.CamelCaseJSONRenderer',
),
'DEFAULT_PARSER_CLASSES': (
'djangorestframework_camel_case.parser.CamelCaseJSONParser',
),
}
MIDDLEWARE = [
'djangorestframework_camel_case.middleware.CamelCaseMiddleWare',
]
Verify before relying
- Whether the Pre-Alpha classifier reflects current stability or is outdated given active maintenance since 2013
- Performance impact of recursive case transformation on large JSON payloads
- Compatibility with Django REST Framework versions beyond those in classifiers
Package facts
| License | BSD permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Actively maintained 1,278 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 576,207 / month, #5,931 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 2 - Pre-AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: djangorestframework-camel-case-1.4.2.tar.gz
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 camel case json”
- djangorestframework-camel-caseConverts JSON field names between camelCase and snake_case in Django…
- camel-converterConverts strings and dictionary keys between camelCase, snake_case,…
- pyhumpsConverts strings and dictionary keys between snake_case, camelCase,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Dynamic Content packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.
Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.
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.
Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.
Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.
See also camel-converter · case-convert · pyhumps · djangorestframework-xml · drf-orjson-renderer · boa-str · djangorestframework-yaml · case-conversion · humps · casefy