I would like to get a list of names of built-in modules in python such that I can test the popularity of function\'s naming conventions (underline, CamelCase or mixedCase).<
Now there is a 3rd party package for this. It scrapes the TOC of the Standard Library page in the official Python docs and builds a list.
You can install it using pip
pip install stdlib_list
and got get a list of libraries
In [12]: from stdlib_list import stdlib_list
In [13]: libraries = stdlib_list("3.5")
In [14]: libraries[4:12]
Out[14]: ['abc', 'aifc', 'argparse', 'array', 'ast', 'asynchat', 'asyncio', 'asyncore']
You can find source code here.