What is Python Egg?

10

Reading a book about Python, the author shows a command in which you can create an Egg and upload of your package at PyPi (official python package repository). Basically using the command below:

python setup.py bdist_egg upload --identity="Jon Snow" --sign --quiet

I did not really understand exactly what this "Egg" would look like. Was it just a module? What is Python Egg? How can it actually be used?

    
asked by anonymous 29.03.2017 / 17:59

1 answer

6

The .egg file is a distribution format for Python packages. It's just an alternative to a source code or Windows exe distribution. But note that for pure Python, the .egg file is completely cross-platform.

The .egg file itself is essentially a .zip file. If you change the extension to "zip", you can see that it will have folders inside the file.

Read about here: link

You can learn how to create your own here: link

    
29.03.2017 / 18:22