skillfed

python-docs-theme

The Sphinx theme for the CPython docs and related projects

python-docs-theme v2026.7 207.1K downloads/30d#9,557 on PyPI89
Permissive license PSF-2.0 Active released

What it is and what it does

python-docs-theme is a Sphinx theme that replicates the appearance and structure of the official CPython documentation. It's designed for Python community projects that want to adopt the familiar look of python.org docs. The theme depends only on Sphinx and is straightforward to integrate—you install it via pip and set html_theme = 'python_docs_theme' in your Sphinx conf.py.

The package carries a notable social dimension: using it borrows credibility from the CPython core developers' long-established documentation standards. The maintainers explicitly note that adopting the theme means accepting some responsibility for maintaining the trust associated with that visual identity. The theme supports localization and offers configuration options for sidebars; a live preview is available on ReadTheDocs.

Use it for:

  • Style your Python library or framework docs to match the official Python documentation look and feel.
  • Create community-maintained Python documentation that inherits visual consistency with python.org.
  • Build Sphinx-based docs for Python Enhancement Proposals (PEPs) or other CPython-adjacent projects.
  • Localize Python documentation using the theme's built-in translation support.

Worth the install?

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

A Sphinx theme that applies the visual style and layout of the official Python documentation to your own Sphinx-based docs.

Yes, if you're building Sphinx docs for a Python project and want the official Python docs appearance. The theme is actively maintained, has no known vulnerabilities, and carries a permissive license. The only real consideration is the implicit social contract: adopting this theme signals alignment with Python community standards, which is appropriate for most Python projects but worth acknowledging intentionally.

Install

python-docs-theme on PyPI

pip

pip install python-docs-theme

uv

uv add python-docs-theme

poetry

poetry add python-docs-theme

Installing python-docs-theme

Before you install

Low friction install with a single runtime dependency on Sphinx. Active maintenance, last release 18 days ago, and repository shows recent activity.

License in practice

Licensed under PSF-2.0 (permissive), allowing use in both open and closed projects with minimal restrictions.

Quickstart

pip install python-docs-theme

# In conf.py:
html_theme = 'python_docs_theme'

Requires Python 3.12 or newer and Sphinx 7.3 or newer.

Verify before relying

  • Whether the theme's sidebar and layout options are fully documented beyond the basic conf.py configuration mentioned.
  • How well the theme handles custom Sphinx extensions or non-standard markup.
  • Whether adopting this theme's visual identity carries any implicit expectations from the Python community beyond the stated trust/credibility note.

Package facts

License PSF-2.0 (permissive)
Python support supports the current Python release (>=3.12)
Install friction low — pure-Python wheel
Runtime dependencies 1 — sphinx
Maintenance actively maintained — 18 days since the last release
Last repo commit
First released
Downloads 207,140/month — #9,557 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python_docs_theme-2026.7-py3-none-any.whl

Development Status :: 5 - Production/StableFramework :: Sphinx :: ThemeIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Topic :: DocumentationTopic :: Software Development :: Documentation

Tags

sphinx theme python docscpython documentation themepython official docs stylingsphinx theme for python projectspython documentation sphinx
sphinx-themedocumentation

More Documentation packages