docstring-parser-fork
Parse Python docstrings in reST, Google and Numpydoc format
What it is and what it does
docstring_parser_fork is a maintained fork of the docstring_parser library that extracts structured information from Python docstrings written in multiple formats. It parses ReST, Google, Numpydoc, and Epydoc-style docstrings and returns an object model with fields for short and long descriptions, parameters, return types, raises clauses, and other metadata. The fork claims to fix bugs the upstream library has not addressed and adds additional functionality; specific differences are documented in its CHANGELOG.md.
The package has no runtime dependencies and installs cleanly. It supports Python 3.8 through 3.14 and is actively maintained. It is useful in documentation generation pipelines, code analysis tools, and any workflow that needs to programmatically extract and process docstring content.
Use it for:
- Automated documentation generation tools that need to parse and restructure docstrings from existing code
- Code quality and linting tools that validate docstring format and completeness
- IDE plugins or editor extensions that display parameter and return type hints extracted from docstrings
- API documentation generators that convert docstrings into structured documentation formats
- Static analysis tools that cross-reference docstring declarations with actual function signatures
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured metadata like parameters, return types, and exceptions.
Yes. The package is actively maintained, has no dependencies, installs cleanly, carries a permissive MIT license, and solves a concrete problem—parsing docstrings into structured data. The fork explicitly addresses upstream bugs. Install it if you need programmatic access to docstring metadata; verify against the CHANGELOG.md that the fork's fixes and additions matter for your use case.
Install
docstring-parser-fork on PyPI
pip
pip install docstring-parser-forkuv
uv add docstring-parser-forkpoetry
poetry add docstring-parser-forkInstalling docstring-parser-fork
Before you install
Low friction install with no runtime dependencies. Actively maintained as of 2026-07-03, with recent activity and a moderate user base.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
pip install docstring_parser_fork
from docstring_parser import parse
docstring = parse("""
:param name: description
:raises ValueError: if invalid
""")
print(docstring.params[0].arg_name)
print(docstring.raises[0].type_name)
Verify before relying
- Whether bug fixes in this fork are material to your use case compared to the upstream library
- Whether the fork's additional functionalities beyond upstream are documented in CHANGELOG.md
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 42 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,327,377/month — #4,053 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: docstring_parser_fork-0.0.16-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
docstring-parserParses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
numpydocA Sphinx extension that parses and renders…
permissive · top 5,000 on PyPI
pydoctorpydoctor generates API documentation from…
permissive · top 15,000 on PyPI
docstring-inheritanceAutomatically inherits docstrings from parent…
permissive · top 15,000 on PyPI
docsigLints Python function and method signatures to…
permissive · top 15,000 on PyPI
docstring-to-markdownConverts Python docstrings from…
copyleft · top 5,000 on PyPI
sphinxcontrib-napoleonA Sphinx extension that converts Google and…
permissive · top 15,000 on PyPI
mkdocstrings-pythonGenerates API documentation for Python projects…
permissive · top 5,000 on PyPI
mkdocstrings-python-legacyA legacy Python documentation handler for…
permissive · top 15,000 on PyPI
flake8-docstringsIntegrates pydocstyle docstring checking into…
permissive · top 5,000 on PyPI