--- id: docrep version: "0.3.2" license: Apache-2.0 license_treatment: permissive maintenance: abandoned --- # docrep — Python package for docstring repetition License: permissive · Maintenance: abandoned · Downloads: 98.6K/mo ## What it is and what it does Docrep is a documentation utility designed for developers building complex, nested Python APIs who want to avoid repeating the same docstring fragments across many functions or classes. It provides a way to define reusable docstring components once and reference them throughout your codebase, reducing maintenance burden and keeping documentation consistent. The package works by letting you store docstring snippets (parameter descriptions, return value docs, etc.) in a central registry and then inject them into function or method docstrings at documentation-generation time. It integrates with reStructuredText and supports numpy and napoleon docstring conventions. However, the package has not been maintained since 2021-02-16, and its compatibility with modern Python versions and current documentation tooling is uncertain. Use it for: - Reduce duplication when many functions share the same parameter descriptions or return types in a large library. - Maintain consistent documentation for repeated patterns across a nested API without manual repetition. - Generate docstrings programmatically for auto-generated or templated code where manual repetition would be error-prone. - Centralize and version-control common docstring fragments separately from implementation code. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Docrep provides utilities to intelligently reuse and deduplicate docstrings across complex Python APIs, reducing repetition in documentation. No. The package is abandoned (last release 2021-02-16) and targets Python versions up to 3.9, with no verification of compatibility with modern Python or current documentation tools. High install friction combined with maintenance risk makes it unsuitable for new projects. Consider actively maintained alternatives if you need docstring deduplication. ## Install pip install docrep uv add docrep poetry add docrep ## Installing docrep Before you install: High install friction with no runtime dependencies. The package has been abandoned since 2021-02-16 and has not received updates in years, though it remains marked Production/Stable. Maintenance risk is substantial for a documentation tool where API changes in downstream projects may break workflows. License in practice: Licensed under Apache-2.0 (permissive). You may use, modify, and distribute the package freely in commercial and private projects, provided you include the license notice. Quickstart: pip install docrep import docrep # Use docrep.DocRep to define and reuse docstring fragments rep = docrep.DocRep() rep.define_doc("param_x", "x : int\n The x coordinate") rep.doc("param_x") Package classifiers indicate support for Python 2.7 and 3.4–3.9; compatibility with later versions is unverified. No runtime dependencies, but high install friction suggests potential build or environment issues. Verify before relying: - Whether the package works reliably with Python versions beyond 3.9 despite classifier claims only extending to 3.9. - Whether abandonment since 2021-02-16 has left the package incompatible with modern docstring conventions or current Sphinx versions. - Concrete examples of how docrep integrates with napoleon, numpy, or reStructuredText docstring formats beyond keyword hints. ## Package facts - License: Apache-2.0 (permissive) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 98.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags docstring reuse, documentation deduplication, api documentation template, docstring inheritance, reduce docstring repetition, nested api docs, docstring management, docstring-management, abandoned [View on SkillFed](https://skillfed.io/packages/docrep) · [View on PyPI](https://pypi.org/project/docrep/)