$npx skillfedfor your agent

drf-excel

Django REST Framework renderer for Excel spreadsheet (xlsx) files.

Worth itPyPI WWW/HTTPReleased Aug 2026150.7K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — drf_excel-2.6.0-py3-none-any.whl
v2.6.0 · released 2026-08-06 · Python >=3.10 · 2 runtime deps: djangorestframework, openpyxl

Yes. drf-excel is actively maintained, has low install friction, carries a permissive license, and solves a common need for Django REST Framework users. It integrates cleanly into DRF's renderer architecture and supports modern Python versions (3.10–3.14) and current Django releases. No known vulnerabilities. Install it if you need to export API data to Excel.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Django REST Framework >= 3.14 and OpenPyXL >= 2.4; Python >= 3.10.
  • Low friction install with just two runtime dependencies (djangorestframework and openpyxl).
  • Active maintenance with a release 8 days ago and 240 repository stars indicate ongoing support.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows use in commercial and proprietary projects with minimal restrictions; attribution required.

last release 2026-08-06 (8 days) · last repo commit 2026-08-11 · 240 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 150,715 downloads/mo, #10,959 on PyPI

Verify before relying

pip install drf-excel

# In settings.py REST_FRAMEWORK config:
REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        'rest_framework.renderers.JSONRenderer',
        'drf_excel.renderers.XLSXRenderer',
    ),
}

# In views.py:
from drf_excel.mixins import XLSXFileMixin
from drf_excel.renderers import XLSXRenderer

class MyViewSet(XLSXFileMixin, ReadOnlyModelViewSet):
    renderer_classes = (XLSXRenderer,)
    filename = 'export.xlsx'
  • Whether column-level formatting (fonts, borders, fills) works correctly with all OpenPyXL versions >= 2.4
  • Performance characteristics when exporting large datasets (row count thresholds)
  • Compatibility with custom pagination classes beyond the documented None requirement
Same gist for agents: .md · .json

What it is and what it does

drf-excel is a Django REST Framework renderer that converts API responses into Excel spreadsheets (.xlsx files). It integrates with DRF's standard renderer pipeline, allowing views to serve Excel exports alongside JSON and other formats. The package uses OpenPyXL to build the spreadsheets and provides a mixin (XLSXFileMixin) to handle HTTP headers and filename configuration.

The package supports extensive styling of headers, column headers, body rows, and individual columns through view attributes or dynamic methods. It can apply fonts, colors, borders, alignment, and number formats to cells. Additional features include auto-filtering on header rows, per-column styling overrides, sheet view options (like right-to-left layout), and the ability to use serializer field labels as column headers instead of field names.

Use it for

  • Export REST API query results to Excel for business reporting and data analysis workflows
  • Generate styled Excel reports with custom headers, logos, and formatted data cells from API endpoints
  • Provide end users with downloadable spreadsheets of filtered or paginated API data with proper filenames
  • Create multi-column exports with per-column number formatting (dates, currency, scientific notation) from serialized data
  • Build data export features that respect API permissions and serializer field definitions automatically

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

drf-excel is actively maintained, has low install friction, carries a permissive license, and solves a common need for Django REST Framework users. It integrates cleanly into DRF's renderer architecture and supports modern Python versions (3.10–3.14) and current Django releases. No known vulnerabilities. Install it if you need to export API data to Excel.

Install

drf-excel on PyPI

Before you install

Low friction install with just two runtime dependencies (djangorestframework and openpyxl). Active maintenance with a release 8 days ago and 240 repository stars indicate ongoing support.

Requires Django REST Framework >= 3.14 and OpenPyXL >= 2.4; Python >= 3.10.

License in practice

BSD-3-Clause permissive license allows use in commercial and proprietary projects with minimal restrictions; attribution required.

Quickstart

pip install drf-excel

# In settings.py REST_FRAMEWORK config:
REST_FRAMEWORK = {
    'DEFAULT_RENDERER_CLASSES': (
        'rest_framework.renderers.JSONRenderer',
        'drf_excel.renderers.XLSXRenderer',
    ),
}

# In views.py:
from drf_excel.mixins import XLSXFileMixin
from drf_excel.renderers import XLSXRenderer

class MyViewSet(XLSXFileMixin, ReadOnlyModelViewSet):
    renderer_classes = (XLSXRenderer,)
    filename = 'export.xlsx'

Verify before relying

  • Whether column-level formatting (fonts, borders, fills) works correctly with all OpenPyXL versions >= 2.4
  • Performance characteristics when exporting large datasets (row count thresholds)
  • Compatibility with custom pagination classes beyond the documented None requirement

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
djangorestframeworkopenpyxl
MaintenanceActively maintained 8 days since the last release
Last repo commit
First released
Downloads150,715 / month, #10,959 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.2Framework :: Django :: 6.0Framework :: Django :: 6.1Intended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic Content

Evidence: drf_excel-2.6.0-py3-none-any.whl

Tags

Capabilities
django rest framework excel exportxlsx renderer drfexport api data to exceldjango spreadsheet rendereropenpyxl django restrest api excel outputdrf xlsx export
Topics
django-rest-frameworkexcel-exportdata-serialization
PyPI keywords
djangorestframeworkdjango rest frameworkexcelspreadsheetrestrestfulapixlsxlsxopenpyxl

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 excel export”

  • drf-excelAdds an Excel spreadsheet (xlsx) renderer to Django REST Framework,…
  • djangorestframework-csvAdds CSV rendering and parsing capabilities to Django REST Framework,…
  • django-typomaticGenerates TypeScript interfaces and enums from Django Rest Framework…

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

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also xlsx2html · openpyxl · xlsxwriter · drf-orjson-renderer · djangorestframework-csv · django-queryset-csv · xls2xlsx · tableschema-to-template · openpyxl-stubs · django-ranged-response