21939
Comment:

19070

Deletions are marked like this.  Additions are marked like this. 
Line 106:  Line 106: 
* Fftwnumpy [http://pylab.sourceforge.net/ [details]] [http://pylab.sourceforge.net/packages/fftwnumpy0.6.2.tar.gz [source]] Fftwnumpy is a generic wrapping of the FFTW2.1.3 Clibrary into Python done using SWIG. FFTW is advertised as a very fast implementation of the FFT and I believe it lives up to its billing. It has support for arbitrary Ndimensional arrays as well as fast realtocomplex FFT's. As part of the package, I have included a module called FFT2 that can act as a dropin replacement for FFT in NumPy (except there is no realtocomplex transform yet). There is also a benchmark script that shows that FFT2 is about 1825% faster than fftpack (at least on pentium machines). There is also support for arbitrary multidimensional transforms (not just 2D). (Travis Oliphant) 
* SciPy  http://www.scipy.org 
Line 131:  Line 117: 
* Signaltools [http://pylab.sourceforge.net/ [details]] [http://pylab.sourceforge.net/packages/signaltools0.5.3.tar.gz [source]] A work in progress toolbox intended to contain most of the signal processing functionality available in other arrayoriented systems like MATLAB. the included routines are fast ND convolution and ND correlation procedures for use when filtering big datasets with small kernels and a fast ND order statistic filter routine. (A median filter is an example of an orderfilter and is also included). There is also a routine to filter along an arbitrary dimension of an ND array with a rational transfer function filter (like the filter function in MATLAB) and a remezexchange algorithm. Recently added are an ND median filter and an ND wiener filter. (Travis Oliphant) 

Line 167:  Line 137: 
* Multipack [http://pylab.sourceforge.net/ [details]] [http://pylab.sourceforge.net/ [source]] A collection of FORTRAN routines interfaced with NumPy. There are modules for special function evaluation, signal and image processing, and modules that wrap common FORTRAN functions from ODEPACK, MINPACK, and QUADPACK. (Travis Oliphant) 
* SciPy  http://www.scipy.org 
Line 206:  Line 169: 
==== Linear Programming ====  ==== Mixed Integer and Linear Programming ==== 
Line 216:  Line 179: 
Lp_solve5 (5.1 and %.5)  New one, NO python binding yet. Volunteers needed for python binding. [http://groups.yahoo.com/group/lp_solve/] It has CPLEX, LINDO, AMPL/MathProg, etc. formats. * GLPK (GNU Linear Programming Kit) [http://www.gnu.org/software/glpk/glpk.html] Has python binding for 4.7 but not for 4.8. No debian packages [http://rpm.pbone.net/index.php3/stat/4/idpl/1709746/com/pythonglpk0.42mdk.i586.rpm.html] * optimize [http://pylab.sourceforge.net/ [details]] FIXME broken link (netpedia.net is gone...) http://oliphant.netpedia.net/packages/optimize.py [source] ((is it this ?: [http://pylab.sourceforge.net/packages/optimize.py http://pylab.sourceforge.net/packages/optimize.py] )) A module containing optimization algorithms written in pure Python. Currently it contains implementations of the NelderMead simplex algorithm, the BroydenFletcherGoldfarbShanno (BFGS) quasiNewton algorithm, and a linesearch conjugategradient Newton algorithm for minimizing a function of many variables. (Travis Oliphant) 
* Lp_solve5 (5.1 and 5.5) Mixed Integer Programming (MIP) and LP  New ones, NO python binding yet. Volunteers needed for python bindings. [http://groups.yahoo.com/group/lp_solve/ [details]] [http://groups.yahoo.com/group/lp_solve/ [source]] CPLEX, LINDO, AMPL/MathProg, LP etc. formats supported. (Noli Sicad) * GLPK (GNU Linear Programming Kit) MIP and LP [http://www.gnu.org/software/glpk/glpk.html [details]] [http://www.gnu.org/software/glpk/glpk.html [source]] Python bindings [http://rpm.pbone.net/index.php3/stat/4/idpl/1709746/com/pythonglpk0.42mdk.i586.rpm.html [source]] Has python bindings for 4.7 and can be used for 4.8. No debian package (use RPM then Alien for debian) CPLEX, LINDO, AMPL/MathProg, LP etc. formats supported as well. (Noli Sicad) * SciPy  http://www.scipy.org 
Line 257:  Line 212: 
Line 272:  Line 226: 
* SparsePy [http://pylab.sourceforge.net/ [details]] [http://pylab.sourceforge.net/packages/SparsePy0.1.tar.gz [source]] A module that implements a sparse matrix class for Python. The attributes of the class are Numeric arrays and the methods are based on the included toolkits SPARSEKIT2 by Yousef Saad (in FORTRAN) and SuperLU (in C) by Xiaoye Li and Jim Demmel. Note: You need the BLAS library (in LAPACK at netlib or from your vendor) and a FORTRAN compiler to compile this package. (The binary for Linux just needs Python and NumPy). (Travis Oliphant) 
* SciPy  http://www.scipy.org 
Line 437:  Line 381: 
* Quadrature [http://pylab.sourceforge.net/ [details]] [http://pylab.sourceforge.net/packages/quadrature.py [source]] A module that allows one to perform Gaussian Quadrature (numerical integration) over a finite interval for arbitrary Python functions. (Travis Oliphant) 
* SciPy  http://www.scipy.org 
Line 495:  Line 434: 
* Cephesmodule [http://pylab.sourceforge.net/ [details]] [http://oliphant.netpedia.net/packages/cephes1.2.tar.gz [source]] A module patterned after the umath (ufuncs) module that comes with Numerical Python; it makes most of the special functions (like elliptic, and modified Bessel) from the cephes and amos libraries available to python. (Travis Oliphant) 
* SciPy  http://www.scipy.org 
Line 506:  Line 437: 
Line 520:  Line 450: 
* Rpy [http://rpy.sourceforge.net/ [details]] [http://rpy.sourceforge.net/ [source]] RPy is a very simple, yet robust, Python interface to the R Programming Language. [http://www.rproject.org/ [source]]. It can manage all kinds of R objects and can execute arbitrary R functions (including the graphic functions). All errors from the R language are converted to Python exceptions. Any module installed for the R system can be used from within Python. (Noli Sicad) * SciPy  http://www.scipy.org 
The following are links to scientific software libraries that have been recommended by Python users.
Number Crunching and Related Tools
This page lists a number of packages related to numerics, number crunching, signal processing, financial modeling, linear programming, statistics, data structures, datetime processing, random number generation, and crypto.
Data Structures
PyPolyhedron [http://cens.ioc.ee/projects/polyhedron/ [details]] [http://cens.ioc.ee/projects/polyhedron/src/polyhedron.tgz [source]] Calculate polyhedron's V and Hrepresentation. This is a Python interface to a Clibrary cddlib (Pearu Peterson)
 avl_tree
[http://www.nightmare.com/software.html [details]] [ftp://squirl.nightmare.com/pub/python/pythonext/avl/avl2.0.tar.gz [source]] AVL module provide a hybrid between a dictionary and a list which can come in handy. AVL trees (named after the inventors, Adel'sonVel'skii and Landis) are balanced binary search trees. (Sam Rushing)
 bplustree
[http://www.pythonpros.com/arw/bplustree [details]] [http://www.pythonpros.com/arw/bplustree/bplustree.py.txt [source]] Classical compsci B+trees, implemented entirely in Python: Fast, portable file based indexing with range queries and including a dbmcompatibility mode. (Aaron Watters)
 fsm
[http://musical.mojam.com/~skip/python/ [details]] [http://musical.mojam.com/~skip/python/fsm.py [source]]
FiniteStateMachine module. (Skip Montanaro)
 graph_lib
[http://www.ece.arizona.edu/~denny/python_nest/ [details]] [http://www.ece.arizona.edu/~denny/python_nest/graph_lib.py [source]] This module defines the Python class Graph. Graph is loosely modelled after the Library of Efficient Data types and Algorithms (LEDA). It includes methods for constructing graphs, BFS and DFS traversals, topological sort, etc.
 kjbuckets
[http://www.pythonpros.com/arw/kjbuckets/ [details]] [http://www.pythonpros.com/arw/kjbuckets/kjb.tar.gz [source]] kjbuckets is a C extension to python which defines three Python data types kjSet, kjGraph, and kjDict, implemented using a fast and space efficient hash table strategy. The types are tightly coupled and may be combined and manipulated using a collection of fast "set at a time" operations written in C. If you need to manipulate collections and mappings quickly take a look at this module. It comes with no warrantee of course, but it has been pounded pretty heavily and I consider it fairly solid. (Aaron Watters)
 npstruct
[http://www.nightmare.com/software.html [details]] [ftp://squirl.nightmare.com/pub/python/pythonext/misc/npstruct.tar.gz [source]] An extension module useful for parsing and unparsing binary data structures. Somewhat like the standard struct module, but with a few extra features (bitfields, userfunctionfields, byte order specification, etc...) and a different API more convenient for streamed and contextsensitive formats like network protocol packets, image and sound files, etc. (Sam Rushing)
Date/Time
 mxDateTime
[http://www.lemburg.com/files/python/mxDateTime.html [details]] [http://www.lemburg.com/files/python/egenixmxbase2.0.2.tar.gz [source]] These types were created to provide a consistent way of transferring date and time data between Python and databases. Apart from handling date before the Unix epoch (1.1.1970) they also correctly work with dates beyond the Unix time limit (currently with Unix time values being encoded using 32bit integers, the limit is reached in 2038) and thus is Year 2000 and Year 2038 safe. (M.A. Lemburg)
 Mayalib
[http://www.pauahtun.org/ftp.html [details]] [FTP://www.pauahtun.org/pub/mayalib.zip [source]] Mayan dates and numbers (math) for Python. (Ivan Van Laningham)
 normalDate
[http://starship.python.net/crew/jbauer/normalDate/ [details]] [http://starship.python.net/crew/jbauer/normalDate/normalDate.py [source]]
NormalDate is a specialized class to handle dates without all the excess baggage (time zones, daylight savings, leap seconds, etc.) of other date structures. (Jeff Bauer)
FFT
 fourier
[http://starship.python.net/~hochberg/ [details]] [http://starship.python.net/~hochberg/fourier.py [source]] A set of routines to perform Fourier transforms using pure (Numerical) Python. These are slower by a factor of 210 than pure C version in the FFT module (which is pretty good for a pure Python solution), but they make an interesting example. (Tom Hochberg)
Finance
 pyfi
[http://goldenspud.com/blog/python/pyfi [details]] [http://goldenspud.com/python/pyfi/2.4/pyfi.py [source]] pyfi provides a set of functions that perform commonly used financial calculations.
([http://hobbiton.thisside.net [Rupert Scammell]] and [http://goldenspud.com [Matthew Scott]])
 pyFinancials
[http://starship.python.net/~zanzi/ [details]] [http://starship.python.net/~zanzi/pyFinancials0.66.tgz [source]] A collection of algorithms for advanced financial calculations. (G. P. Ciceri)
Interface
 SAML
[http://topo.math.upsud.fr/~bousch/samleng.html [details]] [ftp://topo.math.upsud.fr/pub/bousch/ [source]] Interface to the "Simple Algebraic Math Library", a C library for computer algebra, together with some application programs: a desktop calculator, a spreadsheet (sort of) and a program to factorize integers. (Thierry Bousch)
 pymat
[http://claymore.engineer.gvsu.edu/~steriana/Python [details]] [http://claymore.engineer.gvsu.edu/~steriana/Python/pymat.zip [source]]
PyMat is an interface between NumPy and a MATLAB engine session. It can be used to support NumPy's functionality with the features of MATLAB. An example module is included that presents a very simple interface to MATLAB's plotting functions. This allows you to, for example, plot NumPy arrays in a MATLAB plot window. (Andrew Sterian)
 PYML
[http://www.mathsource.com/cgibin/MathSource/Enhancements/Interfacing/Other/0209292 [details]] [http://www.mathsource.com/MathSource/Enhancements/Interfacing/Other/0209292/pyml.tar.gz [source]] PYML is an interface between the computer language Python and Mathematica. Mathematica expressions can be written in Python code, evaluated, and their results returned to Python. Support for postscript graphics returned from Mathematica exists. (David Konerding)
Mixed Integer and Linear Programming
 lpsolvpy
[http://eda.ei.tum.de/~mcp/lpsolvepy [details]] [http://eda.ei.tum.de/~mcp/lpsolvepy/lpsolve3.20.2.tar.gz [source]] An interface to the LGPL'd numerical linear program solver lp_solve. (Michael Pronath)
 Lp_solve5 (5.1 and 5.5) Mixed Integer Programming (MIP) and LP  New ones, NO python binding yet. Volunteers needed for python bindings.
[http://groups.yahoo.com/group/lp_solve/ [details]] [http://groups.yahoo.com/group/lp_solve/ [source]] CPLEX, LINDO, AMPL/MathProg, LP etc. formats supported. (Noli Sicad)
 GLPK (GNU Linear Programming Kit) MIP and LP
[http://www.gnu.org/software/glpk/glpk.html [details]] [http://www.gnu.org/software/glpk/glpk.html [source]]
Python bindings [http://rpm.pbone.net/index.php3/stat/4/idpl/1709746/com/pythonglpk0.42mdk.i586.rpm.html [source]]
 pySimplex ((FIXME both links broken !?))
[http://www.pythonpros.com/arw/pysimplex/ [details]] [http://www.pythonpros.com/arw/pysimplex/pysimplex.tgz [source]] Pysimplex provides some basic symbolic programming tools for constructing, solving and optimizing systems of linear equations and inequalities. It includes an implementation of the classical SIMPLEX linear optimization algorithm as well as a filter for parsing and optimizing linear models encoded using the standard MPS format. (Aaron Watters)
 Simplex
[http://www.omniscia.org/~vivake/python/ [details]] [http://www.omniscia.org/~vivake/python/Simplex.py [source]] Simplex minimizes an arbitrary nonlinear function of N variables by the NedlerMead Simplex method. (Vivake Gupta)
Matrix/Vector
 matrix
[http://www.nightmare.com/software.html [details]] [http://www.nightmare.com/squirl/pythonext/misc/matrix.py [source]] Yet Another Matrix Module. This one leans more toward the flexible end of the spectrum, sacrificing performance for correctness. For example, it can correctly handle rationals and other strange things being inserted into it. Also implemented: LU[P] decomposition, and a simultaneous linear equation solving capability. Most of the standard matrix ops: transpose, determinant, inverse, etc.. along with some functionalstyle methods for mapping and iteration. (Sam Rushing)
 Sparsemodule
[http://www.enme.ucalgary.ca/~nascheme/ [details]] [http://www.enme.ucalgary.ca/~nascheme/python/sparsemodule0.4.tar.gz [source]] An extension module wrapping the sparse library. It can be used for solving large systems of linear equations. (Neil Schemenauer)
MatPy [http://MatPy.sourceforge.net [details]] [ftp://MatPy.sourceforge.net/pub/MatPy/ [source]] A Python package for numerical computation and plotting with a
MatLablike interface. It currently consists of wrappers around the Numeric, Gnuplot and SpecialFuncs packages. It provides an alternative interface to NumPy that is somewhat more convenient for matrix and vector computation. Eventually both will be based directly on the same low level routines. We are also looking for the possibility of interface to Octave. (H. Zhu)
Music
 ratio
[http://www.execpc.com/~wsannis/ratio.html [details]] [http://www.execpc.com/~wsannis/ratio.py.txt [source]] For those who are big fans of Just Intonation, one tedious aspect of this is that you end up fondling ratios a lot. The math gets boring after a while, though I do believe you should be able to do the math on your own to get a feel for what it is you're doing. Having said that, I decided I needed some help because I got sick of reducing multiplied ratios. I've written a quick Python module, ratio.py, which handles a lot of the tedium. In particular, building up JI tetrachords and scales based on justly intuned chords or by katapyknosis is pretty simple with this module. (William Annis)
Neural Networks
 bpnn
[http://arctrix.com/nas/python/bpnn.py [source]] A simple backpropagation neural network module. (Neil Schemenauer)
Number Theory
 logic
[http://www.ourobourus.com [details FIXME: empty page ]] [http://www.ourobourus.com/logic.py1.0.1.zip [source FIXME: broken link]] A class which provides pure 2, 3 and multivalue (fuzzy) logic. (Mark Summerfield)
Numerics
 numberTheory [details !? FIXME: was same as source]
[http://www.dorb.com/python/numberTheory.py [source FIXME: broken link]] Collection of functions from the book numberTheory. Darrell Gallion.
FixedPoint [http://sunsite.compapp.dcu.ie/pub/linux/redhat/DMA/ [details: FIXME: broken link]] [http://sunsite.compapp.dcu.ie/pub/linux/redhat/DMA/Python/SRPMS/FixedPoint0.0.32.src.rpm [source]] Fixed decimal precision arithmetic.
 Fraction
[http://www.binary.net/thehaas/fractionpy.shtml [details]] [http://www.binary.net/thehaas/fraction.tar.gz [source]] Simple class implemented in pure Python that does fraction arithmetic. (Mike Hostetler)
 SILOON ((FIXME: both link broken))
[http://www.acl.lanl.gov/siloon/index.html [details]] [http://www.acl.lanl.gov/distributions/silooncurrent.tgz [source]] SILOON (Scripting Interface Languages for ObjectOriented Numerics) gives users the ability to rapidly prototype their scientific codes in a simple yet elegant fashion using the popular scripting languages Python and Perl. While programming in these flexible and dynamic languages, SILOON users maintain the capability of accessing the full power and complexity of C++ and FORTRAN (coming soon) libraries executed on highperformance parallel computers. (SILOON Team)
 surd ((FIXME: both link broken))
[http://sunsite.compapp.dcu.ie/pub/linux/redhat/DMA/ [details]] [http://sunsite.compapp.dcu.ie/pub/linux/redhat/DMA/Python/SRPMS/surd1.11.src.rpm [source]] Irrational numbers (surds) as objects.
 yarn ((FIXME: both link broken))
[http://sunsite.compapp.dcu.ie/pub/linux/redhat/DMA/ [details]] [http://sunsite.compapp.dcu.ie/pub/linux/redhat/DMA/Python/SRPMS/yarn0.2.01.src.rpm [source]] Yet Another Rational Numbers module.
Other Tools
 Evol
[http://home.nikocity.de/polzin/python.html [details]] [http://th.informatik.unimannheim.de/cgibin/local/download.py?name=evol.py [source]] Evolutions strategies: Powerful global optimisation Basic class for a global optimisation strategie called 'Evolutionsstrategie' by Prof. Schwefel. (Tobias Polzin)
 explore
[http://home.nikocity.de/polzin/python.html [details]] [http://th.informatik.unimannheim.de/cgibin/local/download.py?name=explore.py [source]] Explore Array Data with Gnuplot Interactive Rotating, Zooming of 3Dgnuplot surface plot. (Tobias Polzin)
 emath
[http://www.python.org/topics/scicomp/recipes_in_python.html [details]] [http://www.python.org/topics/scicomp/recipes_in_python.html [source]] 100% Python functions which are based on the famous Numerical Recipes  polynomial evaluation, zero finding, integration, FFT's, and vector operations. "They are loosely modelled after Numerical Recipes in C because I needed, at the time, actual source codes which I can examine instead of just wrappers around Fortran
libraries like NumPy and Octave. As evident from the documentations, the routines were written with emphasis on clarity rather than on runtime efficiency." (William Park)
PyClimate [http://starship.python.net/crew/jsaenz/pyclimate/ [details]] [http://starship.python.net/crew/jsaenz/pyclimate/downloads/PyClimate1.1.1.tar.gz [source]] A Python package designed to accomplish some usual tasks during the analysis of climate variability using Python. It provides functions to perform some simple IO operations, operations with COARDScompliant netCDF files, EOF analysis, SVD and CCA analysis of coupled data sets, some linear digital filters, kernel based probabilitydensity function estimation and access to DCDFLIB.C library from Python. (Jon Saenz)
 Pythonica
[http://home.nikocity.de/polzin/python.html [details]] [http://th.informatik.unimannheim.de/cgibin/local/download.py?name=pythonica0.2.tar.gz [source]] A simple version of mathematica for python. (Tobias Polzin)
ScientificPython [http://starship.python.net/crew/hinsen/scientific.html [details]] [http://starship.python.net/crew/hinsen/ScientificPython2.2.tar.gz [source]] A collection of Python modules that are useful for scientific computing. In this collection you will find modules that cover basic geometry (vectors, tensors, transformations, vector and tensor fields), quaternions, automatic derivatives, (linear) interpolation, polynomials, elementary statistics, nonlinear leastsquares fits, unit calculations, Fortrancompatible text formatting, 3D visualization via VRML, and two Tk widgets for simple line plots and 3D wireframe models. (Konrad Hinsen)
Random Number Generators
 ccrandom
[http://www.ccraig.org/software [details]] [http://www.ccraig.org/software/ccrandom.py [source]] This module is mostly compatible with Python's random module, but uses Linux or BSD's /dev/urandom device to generate numbers, thus yielding more random output than the default Python module. (Christopher A. Craig)
 crng ((FIXME: both links broken))
[http://www.sbc.su.se/~per/crng [details]] [http://www.sbc.su.se/~per/crng/crng1.1.tar.gz [source]] The Python module crng implements randomnumber generators (RNGs) based on several different algorithms producing uniform deviates in the open interval (0,1), i.e. exclusive of the endpoint values 0 and 1. A few continuous and integervalued nonuniform deviates are also available. Each RNG algorithm is implemented as a separate Python extension type. The RNG types are independent of each other, but have very similar interfaces. The entire module is implemented as one single C source code file. (Per J. Kraulis)
 MTRand ((FIXME: both links broken))
[http://www.dorb.com/darrell/randomNumber/ [details]] [http://www.dorb.com/darrell/randomNumber/Rand.zip [source]] Mersenne Twister random number generator. Far longer period and far higher order of equidistribution than any other implemented generators. Fast generation and efficient use of memory. (Darrell Gallion)
Special Functions
Statistics
 stats
[http://www.nmr.mgh.harvard.edu/Neural_Systems_Group/gary/python.html [details]] [http://www.nmr.mgh.harvard.edu/Neural_Systems_Group/gary/python/stats.py [source]] A collection of statistical functions, ranging from descriptive statistics (mean, median, histograms, variance, skew, kurtosis, etc.) to inferential statistics (ttests, Ftests, chisquare, etc.). The functions are defined for operation on lists and, if Numeric is installed, also defined for array arguments. REQUIRES pstat.py (v0.3 or later) and io.py (v0.1 or later). (Gary Strangman)
 Rpy
[http://rpy.sourceforge.net/ [details]] [http://rpy.sourceforge.net/ [source]] RPy is a very simple, yet robust, Python interface to the R Programming Language. [http://www.rproject.org/ [source]]. It can manage all kinds of R objects and can execute arbitrary R functions (including the graphic functions). All errors from the R language are converted to Python exceptions. Any module installed for the R system can be used from within Python. (Noli Sicad)
For more information on related numeric packages, see the [http://www.python.org/pypi Python Package Index].