xonsh.completers.imports#
Import statement completions. Contains modified code from the IPython project (at core/completerlib.py).
# Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License.
- xonsh.completers.imports.complete_import(context: xonsh.parsers.completion_context.CompletionContext)[source]#
Completes module names and objects for “import …” and “from … import …”.
- xonsh.completers.imports.get_root_modules()[source]#
Returns a list containing the names of all the modules available in the folders of the pythonpath.