Open thorwhalen opened 3 years ago
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
name
__import__(name)
sys.builtin_module_names looked promising, but that's not it.
sys.builtin_module_names
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!
~/.pyenv/versions/3.8.6/lib/python3.8/
Posted here: https://stackoverflow.com/questions/67184177/dynamically-getting-a-list-of-standard-library-python-packages-names
unbox builtin_module_names not at all builtin module names
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 whichsys.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!Posted here: https://stackoverflow.com/questions/67184177/dynamically-getting-a-list-of-standard-library-python-packages-names
unbox builtin_module_names not at all builtin module names