A few examples to illustrate the main steps required to build and call Fortran code from Python with the following tools:
| Tool | Pros | Cons |
|---|---|---|
| ctypes | ||
| f2py | ||
| f90wrap | ||
| gfort2py |
A rather comprehensive list of tools to invoke Fortran code from Python can be found here.