Wheels
I know this is an old question, but wheel packages have since been invented! Since a wheel is simply a zip file that gets extracted into the lib/site-packages directory, an examination of the contents of the wheel archive can give you the top level imports.
>>> import zipfile
>>> zf = zipfile.ZipFile('setuptools-35.0.2-py2.py3-none-any.whl')
>>> top_level = set([x.split('/')[0] for x in zf.namelist()])
>>> # filter out the .dist-info directory
>>> top_level = [x for x in top_level if not x.endswith('.dist-info')]
>>> top_level
['setuptools', 'pkg_resources', 'easy_install.py']
So setuptools actually gives you three top level imports!
pip download
pip now has a download command, so you can simply run pip download setuptools
(or whatever package you like) and then examine it.
Reverse look up
As of Python 3.10, there is a convenience function that allows reverse look up (given the import name, what's the package). The official The official docs are here
from importlib.metadata import packages_distributions
packages_distributions()
{'importlib_metadata': ['importlib-metadata'], 'yaml': ['PyYAML'], ...}
For the forward lookup you could also simply build the reverse this dictionary.