Extract python egg and python wheel

Mar 17, 2017 • packagecloud

TL;DR

This post covers how to extract and list the contents of python eggs and python wheels on the command line.

Extract python egg

A python egg is a simple Zip file, so you can extract it using any program that reads Zip files:

$ unzip /path/to/file.egg

NOTE: You may need to rename the file to end with ‘.zip’ for some programs to extract them.

Create a Python repository in less than 10 seconds, free.

Extract python wheel

A python wheel is a simple Zip file, so you can extract it using any program that reads Zip files:

$ unzip /path/to/file.whl

List files in python egg

 
$ unzip -l /path/to/file.egg

List files in python wheel

$ unzip -l /path/to/file.whl

Conclusion

Python egg and wheel files are Zip files, so any program that can read Zip files can also read them. In some cases, you may need to rename the file to end with “.zip” for certain tools that can read Zip files to work.

Never miss an update!

Subscribe to our RSS feed