djangorestframework-csv
CSV Tools for Django REST Framework
Decision gist · record as of 2026-08-14
Yes, if you need CSV support in Django REST Framework and can accept aging maintenance. The package is stable with no known vulnerabilities and handles the core use case well. However, verify compatibility with your specific Django and djangorestframework versions before relying on it for new projects, and monitor the repository for any breaking changes in upstream dependencies.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires djangorestframework as a runtime dependency; Django 3.2 or later for version 3.0.2
- Low install friction with a single runtime dependency on djangorestframework.
- Maintenance status is aging—last release was 2023-12-12 and the repository shows no recent activity, though it remains unarchived and has accumulated 368 stars.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing use in commercial and private projects with minimal restrictions beyond attribution.
last release 2023-12-12 (976 days) · last repo commit 2025-10-13 · 368 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,581,076 downloads/mo, #2,571 on PyPI
Alternatives
Verify before relying
pip install djangorestframework-csv
from djangorestframework_csv import renderers
class MyView:
renderer_classes = (renderers.CSVRenderer,)- Whether the package works with Django versions beyond 4.2 or Python versions beyond 3.11
- Current state of compatibility with the latest djangorestframework releases
- Performance characteristics when handling very large CSV exports or imports
What it is and what it does
djangorestframework-csv extends Django REST Framework with CSV rendering and parsing support. It provides renderers to output API responses as CSV files, with customizable field ordering and labels, plus parsers for incoming CSV data. The package also includes a paginated renderer for handling paginated datasets and a streaming renderer for memory-efficient output of large CSV files.
The package integrates directly into the framework's renderer and parser architecture, configured via renderer_classes on views or as defaults in Django settings. It handles field ordering, custom labels, byte order markers, and non-UTF-8 encodings. The codebase has been stable since version 3.0.0, though active maintenance appears limited.
Use it for
- Export API querysets as downloadable CSV files for reporting or data analysis
- Accept CSV file uploads to bulk-create or update records via REST endpoints
- Serve CSV data from paginated API views without loading entire datasets into memory
- Customize CSV column order and labels for different API consumers or use cases
- Provide alternative data formats alongside JSON in the same API view
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need CSV support in Django REST Framework and can accept aging maintenance.
The package is stable with no known vulnerabilities and handles the core use case well. However, verify compatibility with your specific Django and djangorestframework versions before relying on it for new projects, and monitor the repository for any breaking changes in upstream dependencies.
Install
djangorestframework-csv on PyPI
Before you install
Low install friction with a single runtime dependency on djangorestframework. Maintenance status is aging—last release was 2023-12-12 and the repository shows no recent activity, though it remains unarchived and has accumulated 368 stars.
Requires djangorestframework as a runtime dependency; Django 3.2 or later for version 3.0.2
License in practice
BSD license is permissive, allowing use in commercial and private projects with minimal restrictions beyond attribution.
Quickstart
pip install djangorestframework-csv
from djangorestframework_csv import renderers
class MyView:
renderer_classes = (renderers.CSVRenderer,)
Verify before relying
- Whether the package works with Django versions beyond 4.2 or Python versions beyond 3.11
- Current state of compatibility with the latest djangorestframework releases
- Performance characteristics when handling very large CSV exports or imports
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagedjangorestframework |
| Maintenance | Aging 976 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,581,076 / month, #2,571 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: djangorestframework_csv-3.0.2-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 csv export”
- djangorestframework-csvAdds CSV rendering and parsing capabilities to Django REST Framework,…
- drf-excelAdds an Excel spreadsheet (xlsx) renderer to Django REST Framework,…
- django-admin-csvexportAdds a Django admin action that exports selected model instances from…
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 djangorestframework-xml · djangorestframework-yaml · drf-orjson-renderer · drf-excel · django-rest-framework-docs · djangorestframework-datatables · adrf · djangorestframework · drf-rw-serializers · djangorestframework-gis