Skip to main content

Autogenerate Completions for CLI tools built with argparse

This package generates Fig completions for CLI tools built with Python's built-in argparse module.

Installation

Install the integration as a dependency using pip:

pip install argparse-complete-fig

Usage

import argparse
from argparse_complete_fig import add_completion_spec_command

parser = argparse.ArgumentParser(prog='my-cli')

# Call on your root-level parser for full completions
add_completion_spec_command(parser)

Calling the add_completion_spec_command function will add a --generate-fig-spec argument to the parser. When your CLI is invoked with this flag it will print a Fig spec.

To save your completion spec skeleton to a file, run the following:

my-cli --generate-fig-spec > my-cli.ts

Metadata

Release files for argparse-complete-fig 1.0.1

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

Source distribution (sdist)

Source distribution for argparse-complete-fig 1.0.1
File Size Uploaded Provenance Actions
argparse_complete_fig-1.0.1.tar.gz 5.2 kB Without provenance Details for argparse_complete_fig-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argparse-complete-fig 1.0.1
File Interpreter ABI Platform Actions
argparse_complete_fig-1.0.1-py3-none-any.whl Python 3 none any Details for argparse_complete_fig-1.0.1-py3-none-any.whl

Total release size: 10.1 kB

Release files / argparse_complete_fig-1.0.1.tar.gz

Download URL argparse_complete_fig-1.0.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2e0b196b54167bab9ba8e9af6ca292db52381ab5ba427e5d39ba0978bb625e36
BLAKE2b-256 checksum
How to use checksums
bbf2c331e8a7cc02101f0feb5944926cf112926083bc24ebb72f5c14da4b15ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / argparse_complete_fig-1.0.1-py3-none-any.whl

Download URL argparse_complete_fig-1.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13d9bcd03c9794828bee7eddc2dc0e627d8ef20400c92aaffda604b3449cd33c
BLAKE2b-256 checksum
How to use checksums
1c573a3517a7e52257094d473848a89324cc16e400a532c2bb9bc55250e28777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for argparse-complete-fig 1.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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