drf-orjson-renderer
Django RestFramework JSON Renderer Backed by orjson
Decision gist · record as of 2026-08-14
Yes, if you use Django REST Framework and want faster JSON serialization with minimal setup. The package is stable (MIT licensed, no known vulnerabilities), has low install friction, and requires only standard DRF configuration. The aging maintenance status is not a blocker—it's a mature, focused tool with a narrow scope. Install it if JSON performance is a concern; skip it if your API traffic is low or you have no performance issues with the default renderer.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django and djangorestframework already installed; orjson is a compiled Rust dependency but ships as a pre-built wheel.
- Low friction: pure Python wheel with three lightweight runtime dependencies (django, djangorestframework, orjson).
- Last release 240 days ago; repository active and not archived with 91 stars.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions—only requiring attribution.
last release 2025-12-17 (240 days) · last repo commit 2025-12-17 · 91 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 398,093 downloads/mo, #6,955 on PyPI
Alternatives
Verify before relying
pip install drf-orjson-renderer
# In settings.py
REST_FRAMEWORK = {
"DEFAULT_RENDERER_CLASSES": (
"drf_orjson_renderer.renderers.ORJSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
),
}- Whether performance gains over standard DRF JSON renderer are measurable in typical Django applications.
- Compatibility with custom serializer fields or third-party DRF extensions beyond what the description covers.
What it is and what it does
drf_orjson_renderer replaces Django REST Framework's default JSON renderer with orjson, a Rust-backed serialization library designed for speed and correctness. It acts as a drop-in renderer and parser that you configure in your Django settings to handle JSON serialization across your API endpoints.
The package bridges the performance benefits of orjson with DRF's browsable API: when clients request `application/json`, responses serialize at orjson's speed; when they request `text/html` (browsable API), the renderer automatically pretty-prints output for readability. It includes a default serialization handler for common Django objects and allows you to override it with custom logic for domain-specific types. It also provides a backwards-compatible encoder for NumPy types.
Use it for
- Replace DRF's JSON renderer in a high-traffic API to reduce serialization overhead and latency.
- Maintain developer experience with the browsable API while gaining orjson's performance for production JSON clients.
- Serialize NumPy arrays or dataclasses in API responses by configuring orjson options in settings.
- Parse incoming JSON payloads faster using ORJSONParser as your default parser class.
- Customize serialization behavior for complex domain objects by overriding the default function in view context.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Django REST Framework and want faster JSON serialization with minimal setup.
The package is stable (MIT licensed, no known vulnerabilities), has low install friction, and requires only standard DRF configuration. The aging maintenance status is not a blocker—it's a mature, focused tool with a narrow scope. Install it if JSON performance is a concern; skip it if your API traffic is low or you have no performance issues with the default renderer.
Install
drf-orjson-renderer on PyPI
Before you install
Low friction: pure Python wheel with three lightweight runtime dependencies (django, djangorestframework, orjson). Last release 240 days ago; repository active and not archived with 91 stars. Status marked as aging but no recent maintenance concerns evident.
Requires Django and djangorestframework already installed; orjson is a compiled Rust dependency but ships as a pre-built wheel.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions—only requiring attribution.
Quickstart
pip install drf-orjson-renderer
# In settings.py
REST_FRAMEWORK = {
"DEFAULT_RENDERER_CLASSES": (
"drf_orjson_renderer.renderers.ORJSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
),
}
Verify before relying
- Whether performance gains over standard DRF JSON renderer are measurable in typical Django applications.
- Compatibility with custom serializer fields or third-party DRF extensions beyond what the description covers.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesdjangodjangorestframeworkorjson |
| Maintenance | Aging 240 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 398,093 / month, #6,955 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: drf_orjson_renderer-1.8.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 json renderer”
- drf-orjson-rendererProvides a high-performance JSON renderer and parser for Django REST…
- djangorestframework-csvAdds CSV rendering and parsing capabilities to Django REST Framework,…
- djangorestframework-xmlAdds XML parsing and rendering support to Django REST Framework,…
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 orjson · flask-orjson · djangorestframework-csv · drf-excel · djangorestframework-camel-case · adrf · djangorestframework-xml · drf-dynamic-fields · django-rest-framework-docs · djangorestframework-yaml