$npx skillfedfor your agent

docspec-python

A parser based on lib2to3 producing docspec data from Python source code.

With conditionsPyPI DocumentationReleased May 2025279.4K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — docspec_python-2.2.2-py3-none-any.whl
v2.2.2 · released 2025-05-06 · Python >=3.8 · 3 runtime deps: black, docspec, nr-util

Yes, if you need reliable Python source parsing into docspec format and can accept aging maintenance. The package has no known vulnerabilities, low install friction, and a stable core function. However, verify the unclear license status before use in proprietary contexts, and be aware that bug fixes or Python feature support may lag behind active projects.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.8 or later; depends on black, docspec, and nr-util at runtime.
  • Low install friction with a pure-wheel distribution.
  • Maintenance status is aging—last release was 465 days ago—so expect slower response to issues, though the package remains functional for its core parsing task.

License · maintenance · safety

(unclear) — License status is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license terms in the repository or package source before use in proprietary or restricted contexts.

last release 2025-05-06 (465 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 279,366 downloads/mo, #8,121 on PyPI

Verify before relying

pip install docspec-python

from docspec_python import parse_python_module
import docspec, sys

docspec.dump_module(parse_python_module(sys.stdin, print_function=False), sys.stdout)
  • Whether the unclear license status reflects a missing metadata entry or an actual licensing ambiguity in the source.
  • Current repository health and maintainer responsiveness, given the 465-day gap since last release.
Same gist for agents: .md · .json

What it is and what it does

docspec-python is a parser that converts Python source code into structured docspec objects—a standardized format for representing module, class, function, and data documentation. It uses lib2to3 as its parsing foundation, which means it handles Python syntax reliably without requiring the Python interpreter itself. The package is typically used in documentation generation pipelines, code analysis tools, and introspection systems where you need programmatic access to Python code structure and docstrings.

The package works by reading Python source (from stdin or a file) and emitting docspec data that can be dumped, transformed, or fed into downstream tools. It depends on black for code formatting utilities, docspec for the data model, and nr-util for utility functions. The aging maintenance status (465 days since last release) suggests the core functionality is stable but may not receive rapid updates for new Python features or bug fixes.

Use it for

  • Generate structured documentation from Python source code for doc generation systems.
  • Extract API metadata (classes, functions, signatures) for code analysis or IDE tooling.
  • Build code introspection pipelines that need reliable Python syntax parsing without executing code.
  • Feed docspec data into custom documentation renderers or static analysis tools.
  • Audit or catalog Python module structure in large codebases programmatically.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need reliable Python source parsing into docspec format and can accept aging maintenance.

The package has no known vulnerabilities, low install friction, and a stable core function. However, verify the unclear license status before use in proprietary contexts, and be aware that bug fixes or Python feature support may lag behind active projects.

Install

docspec-python on PyPI

Before you install

Low install friction with a pure-wheel distribution. Maintenance status is aging—last release was 465 days ago—so expect slower response to issues, though the package remains functional for its core parsing task.

Requires Python 3.8 or later; depends on black, docspec, and nr-util at runtime.

License in practice

License status is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license terms in the repository or package source before use in proprietary or restricted contexts.

Quickstart

pip install docspec-python

from docspec_python import parse_python_module
import docspec, sys

docspec.dump_module(parse_python_module(sys.stdin, print_function=False), sys.stdout)

Verify before relying

  • Whether the unclear license status reflects a missing metadata entry or an actual licensing ambiguity in the source.
  • Current repository health and maintainer responsiveness, given the 465-day gap since last release.

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
blackdocspecnr-util
MaintenanceAging 465 days since the last release
First released
Downloads279,366 / month, #8,121 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: docspec_python-2.2.2-py3-none-any.whl

Tags

Capabilities
python source code parserdocspec generatorextract python documentationparse python modulescode introspection tooldocumentation metadata extractionlib2to3 based parser
Topics
code-parserdocumentation-generation

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 › “docspec generator”

  • docspec-pythonParses Python source code into structured docspec data, extracting…
  • docspecDocspec provides a library and CLI to serialize, deserialize, and…
  • pydoc-markdownPydoc-Markdown parses Python source code and generates API…

Give your agent the search over MCP, or paste the wish link into any chat.

More Documentation packages

docutils With conditions
PyPI · Software Development · released May 2026

Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.

BSD-3-Clausepure Python · 3.9+
225.6Mdownloads / mo
Sphinx Worth it
PyPI · Software Development · released Dec 2025

Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.

BSD-2-Clausepure Python · 3.12+
91.8Mdownloads / mo
griffe Worth it
PyPI · Software Development · released Jun 2026

Griffe extracts the complete structure and signatures of Python programs to generate API documentation or detect breaking changes in your project's public API.

Install it if you need to programmatically inspect Python code structure, generate API docs, or enforce API stability in CI.

ISCpure Python · 3.10+
32.4Mdownloads / mo
sphinxcontrib-serializinghtml With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.

BSD-3-Clausepure Python · 3.9+dormant
30.5Mdownloads / mo
alabaster Worth it
PyPI · Documentation · released Jul 2024

Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.

BSD-3-Clausepure Python · 3.10+dormant
30.4Mdownloads / mo
sphinxcontrib-htmlhelp With conditions
PyPI · Utilities · released Jul 2024

A Sphinx extension that generates HTML help files from reStructuredText documentation source.

BSD-3-Clausepure Python · 3.9+dormant
27.7Mdownloads / mo

See also docspec · pydoc-markdown · colcon-python-setup-py · comment-parser · ipsw-parser · sphinx-autodoc2 · pyproject-api · typing-inspection · parso · docx2txt