Is it possible to get command-line autocompletion of python -m package.subpackage.module?
This is similar to, but not the same as, python ./package/subpackage/module.py, which does autocomplete the directory and file paths. However with -m, python runs the library's module as a script with the appropriate namespacing and import paths.
I'd like to be able to do python -m package.s[TAB] and get autocompletion to subpackage.
Is this feature built in somewhere, or how can I set it up?