graph LR
Global_Activator_Installer["Global Activator/Installer"]
Application_Registration_Script["Application Registration Script"]
Shell_Completion_Dispatcher["Shell Completion Dispatcher"]
Shell_Integration_Core["Shell Integration Core"]
Global_Activator_Installer -- "installs/configures" --> Shell_Completion_Dispatcher
Application_Registration_Script -- "configures" --> Shell_Completion_Dispatcher
Shell_Completion_Dispatcher -- "calls" --> Shell_Integration_Core
Shell_Integration_Core -- "provides candidates to" --> Shell_Completion_Dispatcher
The argcomplete system facilitates command-line argument completion for Python applications. The Global Activator/Installer and Application Registration Script components are responsible for setting up and configuring the shell environment and specific applications, respectively, primarily by interacting with the Shell Completion Dispatcher. The Shell Completion Dispatcher, a shell script, acts as the initial entry point for completion requests, which then invokes the Shell Integration Core. The Shell Integration Core, written in Python, processes the completion request, interacts with the application's argparse definition, and generates the completion candidates, which it then provides back to the Shell Completion Dispatcher for display to the user. This architecture ensures a seamless flow from shell input to Python-driven completion logic.
This component orchestrates the installation and configuration of argcomplete's shell integration components for global argument completion across the user's shell environment (e.g., by placing scripts in appropriate system directories and updating shell RC files).
Related Classes/Methods:
A utility script designed to register individual Python applications for argcomplete completion. This typically involves generating or linking application-specific completion scripts or providing instructions for manual registration, ensuring that specific commands can leverage argcomplete.
Related Classes/Methods:
This component represents the actual shell script (e.g., Bash, Zsh) that is sourced by the user's shell. It serves as the initial entry point for a completion request, setting up shell-specific environment variables and invoking the Python argcomplete logic.
Related Classes/Methods:
This is the primary Python module that provides the runtime logic for argcomplete to interact with the shell. It acts as the crucial bridge between the shell's completion request and the Python application's argparse definition, processing the request and generating completion candidates.
Related Classes/Methods: