django-rest-swagger
Swagger UI for Django REST Framework 3.5+
What it is and what it does
Django REST Swagger generates interactive API documentation for Django REST Framework projects by rendering Swagger UI and OpenAPI JSON schemas. It integrates directly into your Django URL configuration and automatically documents your REST endpoints, allowing developers to explore and test your API through a browser-based interface.
The package is officially deprecated as of 2019 and is no longer maintained. Its repository is archived, meaning no bug fixes, security patches, or compatibility updates will be released. The maintainer explicitly recommends an alternative. Installing this package today means accepting technical debt and potential incompatibility with modern Django and Python versions.
Use it for:
- Documenting legacy Django REST Framework APIs that are locked to older Django and Python versions
- Quick prototyping of REST APIs when you need Swagger UI without setting up a separate documentation tool
- Generating OpenAPI schemas for existing REST endpoints to expose to API consumers
- Testing REST endpoints interactively through the Swagger UI without writing client code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates Swagger UI documentation and OpenAPI JSON schemas for Django REST Framework APIs, rendering interactive API documentation directly from your REST endpoints.
No. The package is abandoned and unmaintained since 2018, with no security or compatibility updates forthcoming. Its dependencies may become incompatible with modern Python and Django versions. The maintainer recommends using an alternative instead, unless you are locked into a legacy codebase that cannot be updated.
Install
django-rest-swagger on PyPI
pip
pip install django-rest-swaggeruv
uv add django-rest-swaggerpoetry
poetry add django-rest-swaggerInstalling django-rest-swagger
Before you install
Low install friction with four straightforward runtime dependencies. However, the project is abandoned as of 2019 and has not been maintained since April 2018 — the repository is archived and no security or compatibility updates will be released.
License in practice
Licensed under FreeBSD License (permissive), so you can use it freely in commercial and private projects with minimal restrictions.
Quickstart
pip install django-rest-swagger
from coreapi import Document
from openapi_codec import OpenAPICodec
from djangorestframework import serializers
from simplejson import dumps
Requires Django 1.8+, Django REST framework 3.5.1+, and Python 2.7 or 3.5–3.6; no longer compatible with modern Python or Django versions.
Verify before relying
- Compatibility with Django versions released after 2018 or Python 3.7+
- Whether the package's dependencies receive security updates
- Active community forks or maintained alternatives beyond what the maintainer recommends
Package facts
| License | FreeBSD License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — coreapi, openapi-codec, djangorestframework, simplejson |
| Maintenance | abandoned — 3,028 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 343,221/month — #7,385 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_rest_swagger-2.2.0-py2.py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
drf-yasgGenerates Swagger/OpenAPI 2.0 specifications…
permissive · top 5,000 on PyPI
mkdocs-render-swagger-pluginRenders Swagger and OpenAPI schemas as…
permissive · top 15,000 on PyPI
sphinxcontrib-openapiSphinx extension that renders OpenAPI (Swagger)…
permissive · top 15,000 on PyPI
flask-swagger-uiAdds Swagger UI to Flask applications as a…
permissive · top 5,000 on PyPI
flask-openapi3-swaggerProvides Swagger UI integration for…
permissive · top 15,000 on PyPI
scalar-fastapiServes interactive, browser-based API…
permissive · top 5,000 on PyPI
openapi-codecConverts between OpenAPI/Swagger schemas and…
permissive · top 15,000 on PyPI
swagger-plugin-for-sphinxA Sphinx plugin that embeds interactive Swagger…
permissive · top 5,000 on PyPI
django-rest-framework-docsGenerates browsable documentation and an…
permissive · top 15,000 on PyPI
bravadoBravado generates a dynamic REST client from an…
permissive · top 15,000 on PyPI