Projects / F2PY


f2py is a command line tool for binding Python and Fortran code. It scans Fortran 77/90/95 code and generates a Python C/API module that makes it possible to call Fortran routines and to access Fortran data (COMMON blocks and Module data) from Python. No Fortran or C expertise is required for using this tool.

Operating Systems

Recent releases

  •  26 Feb 2004 02:26

    Release Notes: This release has new statements (usercode and pymethoddef), support for character arrays and arrays of strings, a new function as_column_major_storage(), a new macro F2PY_REPORT_ON_ARRAY_COPY, numarray support, improved support for Win32 and Mac OS X platforms, support for more than 13 Fortran compilers, and bugfixes.

    •  08 Dec 2002 21:22

      Release Notes: The issue with Fortran and C multi-dimensional array storage ordering is finally resolved. F2PY generated wrappers automatically carry out all necessary transformations, trying hard to minimize any performance hits. As a result, multi-dimensional arrays in Python and Fortran have now exactly the same signatures. The F2PY Users Guide has been throughly revised to describe and illustrate all latest F2PY features such as wrapping Fortran 77 COMMON blocks, Fortran 90 module data, including Fortran 90 module ALLOCATABLE arrays, etc.

      •  17 Aug 2001 23:23

        Release Notes: An update to work witn Numeric Python 20.x.

        •  18 Sep 2000 13:35

          Release Notes: Initial freshmeat announcement.


          Project Spotlight


          A Fluent OpenStack client API for Java.


          Project Spotlight

          TurnKey TWiki Appliance

          A TWiki appliance that is easy to use and lightweight.