$npx skillfedfor your agent

drf-orjson-renderer

Django RestFramework JSON Renderer Backed by orjson

With conditionsPyPI Dynamic ContentReleased Dec 2025398.1K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — drf_orjson_renderer-1.8.0-py3-none-any.whl
v1.8.0 · released 2025-12-17 · Python >=3.9 · 3 runtime deps: django, djangorestframework, orjson

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
djangodjangorestframeworkorjson
MaintenanceAging 240 days since the last release
Last repo commit
First released
Downloads398,093 / month, #6,955 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
django rest framework json rendererorjson serializer drffast json parsing djangodrf json performancerust-backed json rendererdjango api json optimizationbrowsable api json formatting
Topics
performance-optimizationjson-serializationrest-api
PyPI keywords
drf_orjson_rendererrest_frameworkorjson

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Dynamic Content packages

MarkupSafe Worth it
PyPI · Dynamic Content · released Sep 2025

MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.

BSD-3-Clausecompiled wheel · 3.9+aging
797.1Mdownloads / mo
Jinja2 Worth it
PyPI · Dynamic Content · released Mar 2025

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.

BSD-3-Clausepure Python · 3.7+aging
718.6Mdownloads / mo
soupsieve Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
428.6Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

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.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo
Flask Worth it
PyPI · Application Frameworks · released Feb 2026

Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.

BSD-3-Clausepure Python · 3.9+
211.4Mdownloads / mo
Mako Worth it
PyPI · Dynamic Content · released Aug 2026

Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.

MITpure Python · 3.10+
201.7Mdownloads / mo

See also orjson · flask-orjson · djangorestframework-csv · drf-excel · djangorestframework-camel-case · adrf · djangorestframework-xml · drf-dynamic-fields · django-rest-framework-docs · djangorestframework-yaml