What is Python Egg?

Asked

Viewed 1,016 times

12

Reading a book about Python, the author shows a command in which it is possible to create a Egg and make upload of your package on Pypi (python official package repository). Basically using the command below:

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

Actually I didn’t understand exactly what this "Egg" would be. Would it just be a module? What is Python Egg? How can it actually be used?

1 answer

8


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

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

Read about here: http://mrtopf.de/en/a-small-introduction-to-python-eggs/

You can learn how to create yours here: https://www.blog.pythonlibrary.org/2012/07/12/python-101-easy_install-or-how-to-create-eggs/

  • 1

    It is basically equivalent to .jar java?

  • @Brunocosta, yes, basically this.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.