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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_autodoc_argparse-0.1.0a37.tar.gz (44.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_autodoc_argparse-0.1.0a37-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autodoc_argparse-0.1.0a37.tar.gz.

File metadata

File hashes

Hashes for sphinx_autodoc_argparse-0.1.0a37.tar.gz
Algorithm Hash digest
SHA256 88fd328552385c7f6f8d3f20ffa6b0a3745386ede13561f045fa91282ef9bcdb
MD5 70e7a24ac0e1c982867d95984ff81206
BLAKE2b-256 c3f679584fb0d322917f07459109f49352189767ac75d1786b385134035af938

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_argparse-0.1.0a37.tar.gz:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_autodoc_argparse-0.1.0a37-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autodoc_argparse-0.1.0a37-py3-none-any.whl
Algorithm Hash digest
SHA256 0234e58e75bca9907bb09cc1ce606ed18e2a75e32e4c4b29192a760aaebcbbc4
MD5 0ef6e6dcdea0122f18ef0e882709bf36
BLAKE2b-256 b334fe4bed8a6cc826df20355aa6945f50fe70f3936e7365346c0b2445e6afc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_argparse-0.1.0a37-py3-none-any.whl:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0a37 This release

2 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