F2PY Users Guide and Reference Manual — NumPy v1.13 Manual (original) (raw)
Introduction¶
The purpose of the F2PY –_Fortran to Python interface generator_– project is to provide a connection between Python and Fortran languages. F2PY is a Python package (with a command line toolf2py
and a module f2py2e
) that facilitates creating/building Python C/API extension modules that make it possible
- to call Fortran 77/90/95 external subroutines and Fortran 90/95 module subroutines as well as C functions;
- to access Fortran 77
COMMON
blocks and Fortran 90/95 module data, including allocatable arrays
from Python. See F2PY web site for more information and installation instructions.