Search code examples
pythonpippypipython-wheelegg

pypi: how to check if the package is using wheel


I want to write a script which goes through all the packages on pypi repository, to check whether they are using wheel or egg.

I know that by the new standard, it is mandatory for all the packages to use wheel and not egg. I found this information on this website. They also have the list of packages which do and don't use wheel. But, they list only top few packages. But, I would like to check this for all the packages on pypi. I know that on pypi website they show if the types of files available to download e.g. this shows that there is no wheel file type is available to download, on the contrary this shows that the wheel format is available to download. Does something like this help me in achieving my goal?

I certainly don't expect someone to write a script for me, but I would like a hint on how to figure if the package is using wheel.


Solution

  • PyPI has a JSON API which will give you all the releases for a given project, and all the files for a given release: https://warehouse.readthedocs.io/api-reference/json/