Skip to main content

render CLI arguments (sub-commands friendly) defined by argparse module

Project description

sphinx-argparse-cli

PyPI PyPI - Implementation PyPI - Python Version PyPI - Downloads PyPI - License check codecov Code style: black

Render CLI arguments (sub-commands friendly) defined by the argparse module.

Demo projects:

installation

python -m pip install sphinx-argparse-cli

enable in your conf.py

# just add it to your list of extensions to load within conf.py
extensions = ["sphinx_argparse_cli"]

use

Within the reStructuredText files use the sphinx_argparse_cli directive that takes two arguments:

  • the module path to where the parser is defined,
  • a no argument function within that module that once called returns the constructed argparse parser
.. sphinx_argparse_cli::
  :module: a_project.cli
  :func: build_parser

Project details


Download files

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

Source Distribution

sphinx_argparse_cli-1.0.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

sphinx_argparse_cli-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_argparse_cli-1.0.0.tar.gz.

File metadata

  • Download URL: sphinx_argparse_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for sphinx_argparse_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e6f3f6547ec72d6b3e6edafa1c38f7900e00b676947e09a941af87e576908c28
MD5 5bcbbcebae7c28c83a780b081df52b3f
BLAKE2b-256 f644905b8245bbdfbb31a2f7fb68925a1c3cbfa9844930eb9f92ab6fb37c4623

See more details on using hashes here.

File details

Details for the file sphinx_argparse_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sphinx_argparse_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for sphinx_argparse_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 095e93e60a87cfdd8b770229058b06bdd157166d7c9f429be2baa80ef0e1bee1
MD5 5e836dc998b5424dcf1ffdd63800a4ff
BLAKE2b-256 b6ff5282227cb36f0297543828b99ad536fc20f3174fbcf186a5bf23f447ca9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page