thorwhalen / umpyre

Materials for python coaching
MIT License
1 stars 0 forks source link

Dynamically getting a list of standard library python packages names #46

Open thorwhalen opened 3 years ago

thorwhalen commented 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

__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!

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