mkdocstrings-python-legacy
A legacy Python handler for mkdocstrings.
Decision gist · record as of 2026-08-14
Yes, if you are maintaining an existing MkDocs site already using this handler and do not need to migrate. No, if you are starting a new documentation project—use the recommended newer mkdocstrings-python handler instead. The legacy package is stable and permissively licensed, but aging (449 days since last release) and explicitly superseded; install only for backward compatibility.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires mkdocstrings >=0.18 and Python >=3.9; intended as a fallback for projects already using the legacy handler.
- Low install friction with a pure-Python wheel.
- Maintenance is aging—last release was 449 days ago and the repository has only 3 stars—but the codebase remains active (last commit 2026-01-13) and the package is explicitly marked as legacy in favor of a newer handler.
License · maintenance · safety
ISC (permissive) — ISC license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
last release 2025-05-22 (449 days) · last repo commit 2026-01-13 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 228,741 downloads/mo, #9,147 on PyPI
Alternatives
Verify before relying
# Install via mkdocstrings extra or directly
pip install mkdocstrings[python-legacy]
# or
pip install mkdocstrings-python-legacy
# In mkdocs.yml, configure the handler
plugins:
- mkdocstrings:
handlers:
python:
handler: python-legacy- Whether the legacy handler remains compatible with the latest mkdocstrings releases and MkDocs Material theme.
- Performance and feature parity compared to the recommended newer mkdocstrings-python handler.
- Active maintenance timeline and whether critical bug fixes are still applied.
What it is and what it does
mkdocstrings-python-legacy is a plugin handler that integrates Python API documentation generation into MkDocs sites. It uses pytkdocs to extract object trees and docstrings from Python source code, then renders them as Markdown with support for Google, Numpydoc, and Sphinx docstring styles. It displays type annotations, recursive module documentation, documented attributes, and source code listings, with each object appearing as a navigable heading in the table of contents.
This is a legacy package—the project recommends using the newer mkdocstrings-python handler instead. It remains available for projects with existing configurations or specific compatibility needs. The package depends on mkdocstrings, mkdocs-autorefs, and pytkdocs, and supports Python 3.9 through 3.14.
Use it for
- Maintaining existing MkDocs documentation sites that were built with the legacy Python handler and do not require migration.
- Generating API reference documentation from Python docstrings without manually writing Markdown files.
- Displaying type hints and function signatures alongside docstrings in auto-generated documentation.
- Converting Google-style or Numpydoc-style docstrings into admonitions and formatted Markdown.
- Building a searchable table of contents for Python module and class documentation in Material theme sites.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are maintaining an existing MkDocs site already using this handler and do not need to migrate.
No, if you are starting a new documentation project—use the recommended newer mkdocstrings-python handler instead. The legacy package is stable and permissively licensed, but aging (449 days since last release) and explicitly superseded; install only for backward compatibility.
Install
mkdocstrings-python-legacy on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is aging—last release was 449 days ago and the repository has only 3 stars—but the codebase remains active (last commit 2026-01-13) and the package is explicitly marked as legacy in favor of a newer handler.
Requires mkdocstrings >=0.18 and Python >=3.9; intended as a fallback for projects already using the legacy handler.
License in practice
ISC license is permissive and poses no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
# Install via mkdocstrings extra or directly
pip install mkdocstrings[python-legacy]
# or
pip install mkdocstrings-python-legacy
# In mkdocs.yml, configure the handler
plugins:
- mkdocstrings:
handlers:
python:
handler: python-legacy
Verify before relying
- Whether the legacy handler remains compatible with the latest mkdocstrings releases and MkDocs Material theme.
- Performance and feature parity compared to the recommended newer mkdocstrings-python handler.
- Active maintenance timeline and whether critical bug fixes are still applied.
Package facts
| License | ISC permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesmkdocstringsmkdocs-autorefspytkdocs |
| Maintenance | Aging 449 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 228,741 / month, #9,147 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: DocumentationTopic :: Software DevelopmentTopic :: UtilitiesTyping :: Typed |
Evidence: mkdocstrings_python_legacy-0.2.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mkdocstrings python handler”
- mkdocstrings-python-legacyA legacy Python documentation handler for mkdocstrings that extracts…
- mkdocstrings-pythonGenerates API documentation for Python projects by parsing source…
- griffe-typingdocGriffe extension that enables inline documentation of function…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also mkdocstrings · mkdocstrings-python · pytkdocs · mkdocs-api-autonav · haystack-pydoc-tools · mkdocs-github-admonitions-plugin · docrep · pdoc3 · mkdocs-techdocs-core · griffe-typingdoc