Difference between revisions of "Python"

From IARC 207 Wiki
Jump to navigation Jump to search
 
 
Line 5: Line 5:
  
 
Python package installer:
 
Python package installer:
# Download ''ez_setup.py'' from:
+
# Download ''ez_setup.py'' from:<br>http://peak.telecommunity.com/DevCenter/EasyInstall<br>
http://peak.telecommunity.com/DevCenter/EasyInstall
+
# from command line type ''python ez_setup.py'' to install<br><pre>$ python ez_setup.py </pre>
# from command line type ''python ez_setup.py'' to install
 
$ python ez_setup.py  
 
 
# see the peak website for usage.  Or, to get you going try the following example.
 
# see the peak website for usage.  Or, to get you going try the following example.
  
Python package used in EEI webpage & plot routines:
+
Two Python packages used in EEI webpage & plot routines:
  
http://pypi.python.org/pypi/kid/0.9.6
+
# A simple and pythonic XML template language<br>http://pypi.python.org/pypi/kid/0.9.6
 +
# World timezone definitions, modern and historical<br>http://pypi.python.org/pypi/pytz/2008c
  
 
To install the kid package using EasyInstall from the command line type:
 
To install the kid package using EasyInstall from the command line type:

Latest revision as of 11:47, 3 September 2008

To start things off... Download python here:

http://python.org

Python package installer:

  1. Download ez_setup.py from:
    http://peak.telecommunity.com/DevCenter/EasyInstall
  2. from command line type python ez_setup.py to install
    $ python ez_setup.py 
  3. see the peak website for usage. Or, to get you going try the following example.

Two Python packages used in EEI webpage & plot routines:

  1. A simple and pythonic XML template language
    http://pypi.python.org/pypi/kid/0.9.6
  2. World timezone definitions, modern and historical
    http://pypi.python.org/pypi/pytz/2008c

To install the kid package using EasyInstall from the command line type:

$ easy_install http://pypi.python.org/packages/2.5/k/kid/kid-0.9.6-py2.5.egg

You can also install python using cygwin to access it from the cygwin shell.