UrbanPro
true

Learn Python Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is Python Egg?

Jatin Miglani
22/02/2017 0 0

(Attention: This is a  technical post  for Python developers. If you are not python programmer you might want to skip this).

An .egg format files in Python is the standard distribution package contains the files used for installation. It can be correlated with .jar in Core Java and .zip for windows archive folder where all the related files are placed at single location.

A new alternative of .egg files are .whl file (wheel files), The .egg format was introduced by setuptools in 2004, and the new wheel format was introduced by pep 427 in year 2012.

"An.egg file is normally a .zip file in Windows. Just change the extension of .egg file to .zip, we can see the folders and python files available in it"

To create an .egg file is simple from setup tools. Create a file setup.py file with below content, Here is the code snipped which generate the  myDisributionPackage.egg file for Mypackage

from setup tools import setup, find_packages
setup (name = "myDisributionPackage", version = "1.0", packages = find_packages(),author='JatinSir')

In a cmd terminal run the following: python setup.py bdist_egg

This will generate the folder dist which has the file myDisributionPackage-1.0-py2.7.egg.

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Bit-wise operators
Operation Syntax Function Bitwise And a & b and_(a, b) Bitwise Exclusive Or a ^ b xor(a, b) Bitwise Inversion ~ a invert(a) Bitwise Or a b or_(a, b) Left...

A program to determine the molecular weight of a hydrocarbon based on the number of Hydrogen,Carbon and Oxygen atoms.
import osimport math# A program to calculate Molecular Weight of a Hydrocarbon # These are the atomic weights(grams/mole) of Hydrogen,Carbon and OxygenatomicwtH = 1.0079atomicwtC = 12.011atomicwtO = 15.994Hatoms...

Write your first Python program in 10 minutes
1. Download python from python official site search "python download" in google 2. Install in your machine 3. verify using : "python --version" command 4. Write first program using notepad create...

Decorators In Python
A decorator takes in a function, adds some functionality and returns it. Functions and methods are called callable as they can be called. Any object which implements the special method __call__() is...

Using Lambda and Filter with Regular expressions.
1) Start the Python interpreter and import the re module: >>> import re 2)Define a tuple strings to filter with regular expressions: t=('python','pycon','perl','peril','step','stop','come','came','exercise','hello','storm','my.mail','year','yam') ...
X

Looking for Python Training Classes?

The best tutors for Python Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Python Training with the Best Tutors

The best Tutors for Python Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more