--- id: sphinx-autosummary-accessors version: "2025.3.1" license: MIT license_treatment: permissive maintenance: active --- # sphinx-autosummary-accessors — sphinx autosummary extension to properly format pandas or xarray accessors License: permissive · Maintenance: active · Downloads: 121.2K/mo ## What it is and what it does This package solves the problem of documenting accessor-style APIs (like `obj.accessor.method`) in Sphinx, which the standard `sphinx.ext.autosummary` extension doesn't handle well. It provides templates and extension logic adapted from pandas' own accessor documentation approach, allowing projects with pandas or xarray accessors—or custom accessors following that pattern—to generate proper summary and object pages without duplicating documentation infrastructure. You add it to your Sphinx `conf.py` as an extension, point Sphinx to its templates directory, and then use the `accessor_method.rst` template in your `autosummary` directives. The extension is lightweight, depending only on sphinx and packaging, and is maintained actively with support for Python 3.9 through 3.13. Use it for: - Document pandas DataFrame or Series accessors in a project's Sphinx documentation. - Generate accessor method pages for xarray Dataset or DataArray custom accessors. - Build documentation for a library that implements custom accessor-style APIs without reimplementing accessor templates. - Avoid duplicating accessor documentation code across multiple projects in an organization. - Automatically create summary pages for accessor methods alongside regular object documentation. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. A Sphinx extension that generates proper documentation for pandas or xarray accessor-style properties and methods, avoiding code duplication across projects with custom accessors. Yes. If you maintain documentation for a library with pandas or xarray accessors, or custom accessor-style APIs, this extension eliminates template duplication and integrates cleanly with Sphinx. Low install friction, active maintenance, permissive license, and no known vulnerabilities make it a straightforward addition to your documentation build. ## Install pip install sphinx-autosummary-accessors uv add sphinx-autosummary-accessors poetry add sphinx-autosummary-accessors ## Installing sphinx-autosummary-accessors Before you install: Low friction install with only two runtime dependencies (sphinx and packaging). Repository is active with recent commits and no known vulnerabilities. License in practice: MIT license is permissive; you can use this in commercial and private projects with minimal restrictions. Quickstart: pip install sphinx-autosummary-accessors # In conf.py: import sphinx_autosummary_accessors extensions = ["sphinx_autosummary_accessors"] templates = ["_templates", sphinx_autosummary_accessors.templates_path] # In .rst file: .. autosummary:: :template: autosummary/accessor_method.rst Example.test.multiply Requires Sphinx to be installed and configured in your documentation project. Verify before relying: - Whether the extension works with Sphinx versions beyond those typically tested in the CI pipeline. - Performance impact when documenting large numbers of accessors across multiple projects. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 121.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags sphinx accessor documentation, pandas xarray accessor docs, sphinx autosummary accessors, document accessor methods sphinx, accessor property documentation, sphinx extension accessors, autosummary accessor template, sphinx-extension, documentation-generation [View on SkillFed](https://skillfed.io/packages/sphinx-autosummary-accessors) · [View on PyPI](https://pypi.org/project/sphinx-autosummary-accessors/)