skillfed

sphinxcontrib-redoc

ReDoc powered OpenAPI (fka Swagger) spec renderer for Sphinx

sphinxcontrib-redoc v1.6.0 488.6K downloads/30d#6,378 on PyPI40
Permissive license BSD DORMANT released

What it is and what it does

sphinxcontrib-redoc is a Sphinx extension that lets you embed OpenAPI specifications directly into your Sphinx documentation, rendering them with ReDoc—a popular, interactive API documentation viewer. Instead of maintaining separate API docs, you point the extension to your OpenAPI JSON or YAML file, and it generates a styled, browsable API reference as part of your main documentation site.

The extension is designed for teams moving to OpenAPI and wanting a unified documentation experience. It has no runtime dependencies beyond Sphinx itself, making it lightweight to add to an existing doc build. However, the project is dormant: the last release was in April 2020, and the repository shows no recent activity. This means it may not work reliably with modern Python versions or current Sphinx releases without troubleshooting.

Use it for:

  • Embed an OpenAPI spec into Sphinx docs so API consumers see the full API reference alongside conceptual documentation.
  • Migrate from Swagger UI to ReDoc rendering while keeping your documentation in Sphinx.
  • Generate interactive API docs from an OpenAPI file without maintaining a separate documentation site.
  • Include multiple API specs in a single Sphinx project, each rendered with ReDoc in its own section.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A Sphinx extension that embeds OpenAPI specifications rendered with ReDoc directly into Sphinx documentation sites.

No. The package is dormant (last release April 2020, no commits since November 2023) and classifiers suggest it targets Python 3.8 and earlier. Compatibility with modern Python versions and current Sphinx is unverified. If you need to embed OpenAPI specs in Sphinx docs, consider actively maintained alternatives or rendering ReDoc separately and linking to it instead.

Install

sphinxcontrib-redoc on PyPI

pip

pip install sphinxcontrib-redoc

uv

uv add sphinxcontrib-redoc

poetry

poetry add sphinxcontrib-redoc

Installing sphinxcontrib-redoc

Before you install

High install friction reported. The package is dormant—last release was 2020-04-17, over 2310 days ago, with no recent commits. Classifiers list Python 2.7 and 3.5–3.8, suggesting it may not be tested or maintained for current Python versions.

License in practice

BSD License (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice.

Quickstart

pip install sphinxcontrib-redoc

In conf.py:
extensions = ['sphinxcontrib.redoc']

In your .rst file:
.. redoc:: path/to/openapi.json

Requires Sphinx to be installed and configured. Package classifiers indicate Python 2.7 and 3.5–3.8 support, but dormant status means compatibility with modern Python versions is unverified.

Verify before relying

  • Whether the package works with Python 3.9, 3.10, 3.11, or later versions despite classifiers listing only up to 3.8.
  • Whether ReDoc rendering works correctly with current versions of Sphinx and modern web standards.
  • Whether the package has any undisclosed dependencies beyond Sphinx itself.

Package facts

License BSD (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance dormant — 2,310 days since the last release
Last repo commit
First released
Downloads 488,564/month — #6,378 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: sphinxcontrib-redoc-1.6.0.tar.gz

Keywords: sphinx, openapi, swagger, rest, api, renderer, docs, redoc

Environment :: ConsoleIntended 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.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Documentation

Tags

sphinx openapi documentationredoc swagger rendererapi spec in sphinx docsopenapi documentation extensionsphinx api documentationredoc sphinx integrationswagger docs in sphinx
openapi-renderingsphinx-extensiondormant

More Documentation packages

docutils

Docutils converts plaintext documentation in…

unclear · top 1,000 on PyPI

Sphinx

Sphinx generates professional documentation…

permissive · top 1,000 on PyPI

griffe

Griffe extracts the complete structure and…

permissive · top 1,000 on PyPI

sphinxcontrib-serializinghtml

A Sphinx extension that outputs documentation…

permissive · top 1,000 on PyPI

alabaster

Alabaster is a clean, responsive Sphinx theme…

permissive · top 1,000 on PyPI

sphinxcontrib-htmlhelp

A Sphinx extension that generates HTML help…

permissive · top 1,000 on PyPI

bidict

Provides a bidirectional dictionary (bidict)…

copyleft · top 1,000 on PyPI

sphinxcontrib-openapi

Sphinx extension that renders OpenAPI (Swagger)…

permissive · top 15,000 on PyPI

swagger-plugin-for-sphinx

A Sphinx plugin that embeds interactive Swagger…

permissive · top 5,000 on PyPI

sanic-ext

Sanic Extensions adds OpenAPI documentation,…

permissive · top 15,000 on PyPI

sphinxcontrib-programoutput

A Sphinx extension that executes arbitrary…

permissive · top 15,000 on PyPI

aiohttp-swagger3

Integrates OpenAPI 3 documentation and request…

permissive · top 15,000 on PyPI

django-rest-swagger

Generates Swagger UI documentation and OpenAPI…

permissive · top 15,000 on PyPI

sphinxcontrib-video

A Sphinx extension that embeds HTML5 videos…

permissive · top 15,000 on PyPI

drf-yasg

Generates Swagger/OpenAPI 2.0 specifications…

permissive · top 5,000 on PyPI

flask-openapi3-swagger

Provides Swagger UI integration for…

permissive · top 15,000 on PyPI