F2PY user guide and reference manual
The purpose of the F2PY –Fortran to Python interface generator– utility
is to provide a connection between Python and Fortran. F2PY distributed as part
of NumPy (numpy.f2py) and once installed is also available as a standalone
command line tool. Originally created by Pearu Peterson, and older changelogs
are in the historical reference.
F2PY facilitates creating/building native 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
COMMONblocks and Fortran 90/95 module data, including allocatable arrays
from Python.