skillfed

django-rest-swagger

Swagger UI for Django REST Framework 3.5+

django-rest-swagger v2.2.0 343.2K downloads/30d#7,385 on PyPI2,571
Permissive license FreeBSD License Abandoned released

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-swagger

uv

uv add django-rest-swagger

poetry

poetry add django-rest-swagger

Installing 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

Environment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 1.10Framework :: Django :: 1.11Framework :: Django :: 1.8Framework :: Django :: 1.9Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic Content

Tags

swagger ui for django rest frameworkapi documentation generator djangoopenapi schema django restinteractive api docs djangorest framework swagger ui
deprecatedapi-documentation

More WWW/HTTP packages