I'd like to get a list of names of all standard lib packages.
By this, I mean those listed on I thought of parsing https://docs.python.org/3/library/:
strings name for which
__import__(name)
sys.builtin_module_names looked promising, but that's not it.
I thought of parsing ~/.pyenv/versions/3.8.6/lib/python3.8/ or https://docs.python.org/3/library/, but surely there's a better way!
Addendum
For those who need an X for a Y: I'm statically navigating the imports of packages to analyze them -- namely, to see what third party packages are used, what standard libs, with what frequency, etc.