The aim of the F2PY project
The F2PY project is created to unify the efforts of supporting easy connection between Fortran and Python languages. The project will provide software, documentation, and support to solve a difficult task of automatically generating Python wrappers to Fortran libraries. It will also coordinate the further development of the F2PY tool and related software. Our ultimate aim is to have a tool that can automatically generate Python wrappers to any Fortran program, be it written in Fortran 66/77 or in Fortran 90/95/2003.
Existing tools
NumPy/F2PY
NumPy/F2PY (Fortran to Python interface generator) is the current stable version of the F2PY tool. It is included and maintained within the NumPy project.
F2PY2E
F2PY2E (Fortran to Python interface generator, 2nd Edition) is a previous stable version of the F2PY tool. F2PY2E implements support to Numeric and numarray array backends. Because NumPy replaces Numeric and numarray packages then F2PY2E is not developed nor maintained any further. Note that NumPy/F2PY is a copy of F2PY2E where the Numeric/numarray support is replaced with NumPy support.
G3 F2PY
G3 F2PY (The 3rd Generation of F2PY) is a complete rewrite of the F2PY tool. Its main aim is to implement a full support to wrapping Fortran 90 codes, in particularly, support for Fortran 90 derived types. The rewrite was started because the code base of NumPy/F2PY and F2PY2E was not suitable for supporting derived types.
FParser
FParser (Fortran Parser) is a subproduct of G3 F2PY that implements a complete Fortran 66/77/90/95/2003 parser. It will be used in G3 F2PY but it can be used as a starting point for other tools like Fortran to X converters or Fortran to X interface generators.
SrcGen
SrcGen (Source Generation Library) is a tool (currently experimental) for generating sources for various targets such as C and Fortran source codes, Python C/API extension sources, Python modules and packages, etc.
