Matthew A. answered 02/02/25
Experienced Software Development/Computer Science Tutor
Hi Ted!
wheel files are basically just zip files, where the contents of the zip are in a specific format. The dependencies can be found in the METADATA file, on lines that start with "Requires-Dist". For example, the line "Requires-Dist: sqlparse>=0.3.1" would tell you that the wheel requires version 0.3.1 or greater of the sqlparse library.
After un-zipping your wheel file, you should see a folder that ends with "dist-info." The METADATA file should be in that folder. For example, after un-zipping the Django-5.1.5-py3-none-any.whl file (for the Django library), the METADATA file is at Django-5.1.5-py3-none-any/Django-5.1.5.dist-info/METADATA.
Hope this was helpful! I'd be happy to set up a session with you to write a script that gets this information automatically or to discuss anything else related to wheel files/ python in general!