python-docs-theme
The Sphinx theme for the CPython docs and related projects
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-themeuv
uv add python-docs-themepoetry
poetry add python-docs-themeInstalling 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
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
Pallets-Sphinx-ThemesProvides Sphinx themes styled for Pallets…
permissive · top 15,000 on PyPI
pydata-sphinx-themeA Bootstrap-based Sphinx theme that provides a…
permissive · top 5,000 on PyPI
sphinx-rtd-themeA Sphinx theme that renders documentation with…
permissive · top 5,000 on PyPI
sphinx-press-themeA modern, responsive Sphinx documentation theme…
permissive · top 15,000 on PyPI
sphinx-bootstrap-themeA Sphinx theme that applies Bootstrap CSS and…
permissive · top 15,000 on PyPI
shibuyaShibuya is a Sphinx documentation theme that…
permissive · top 15,000 on PyPI
sphinx-book-themeA Sphinx theme that renders documentation as an…
permissive · top 5,000 on PyPI
sphinx-basic-ngProvides a modern, minimal Sphinx theme…
permissive · top 5,000 on PyPI
nvidia-sphinx-themeA Sphinx theme that extends PyData Sphinx Theme…
unclear · top 15,000 on PyPI