Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sphinx-autodoc-argparse

Modern Sphinx extension for documenting argparse-based CLI tools.

A modernized replacement for sphinx-argparse that:

  • Works with Sphinx 8.x and 9.x (no autodoc.mock dependency)
  • Fixes long-standing issues (TOC pollution, heading levels)
  • Provides configurable output (rubrics vs sections, flattened subcommands)
  • Includes Pygments lexers for argparse help output and CLI usage blocks
  • Supports extensibility via renderer classes

Install

$ pip install sphinx-autodoc-argparse

Usage

In your docs/conf.py:

extensions = ["sphinx_autodoc_argparse"]

Then use the .. argparse:: directive:

.. argparse::
   :module: myapp.cli
   :func: create_parser
   :prog: myapp

Metadata

Release files for sphinx-autodoc-argparse 0.1.0a39

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-autodoc-argparse 0.1.0a39
File Size Uploaded
sphinx_autodoc_argparse-0.1.0a39.tar.gz 44.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-autodoc-argparse 0.1.0a39
File Interpreter ABI Platform
sphinx_autodoc_argparse-0.1.0a39-py3-none-any.whl Python 3 none any Details

Total release size: 93.1 kB

Release files / sphinx_autodoc_argparse-0.1.0a39.tar.gz

Download URL sphinx_autodoc_argparse-0.1.0a39.tar.gz
Size 44.0 kB
Tags Source
SHA-256 checksum
How to use checksums
308bcd29c8abf9c0cbb51ab4e9ae92a7fae88ac5939f8671e0c5b3762e572a76
BLAKE2b-256 checksum
How to use checksums
2cf0e6c40d6aba67e09ca4185aa3d92ed4779406503b3ca0a7a16235b983c28d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release files / sphinx_autodoc_argparse-0.1.0a39-py3-none-any.whl

Download URL sphinx_autodoc_argparse-0.1.0a39-py3-none-any.whl
Size 49.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47cabc3653cc8573275fb88c154bc46f7c558998353eee886048d65d8fbf404d
BLAKE2b-256 checksum
How to use checksums
2dcbe686338ca0cc825494de251775fe66105bd2a93e05482ab5591c2eaff41b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a39 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page