planning
Python wrapper generator that is part of NumPy
Main limitations:
Fortran to Python interface generator that extends f2yp with derived type support.
"An easy-to-use Fortran wrapper for Python." Still in development.
Library to allow calling fortran code from python.
"A versatile, template-based Fortran wrapper written in Python."
"Forthon generates links between Fortran95 and Python."
Foreign function library in the Python standard library.
Python wrapper generator for C
Compiler for Python C-extensions. Can load shared libaries.
Making your C library callable from Python by wrapping it with Cython
Module to facilitate working with NumPy arrays in C interfaces
numpy.ctypeslib.as_ctypes
Converting array to C array
numpy.ctypeslib.as_array
Convert C array to NumPy array
numpy.ctypeslib.load_library
Alternative to ctypes.cdll that takes care of platform-specific things
An object to simplify the interaction of NumPy arrays with the ctypes module
x.ctypes.data
Attribute to access data as C array
Python wrapper generator for C
Well-established tool for MacOs
Well-established tool for Linux
Preliminary tool for Windows
Calling Fortran from Python
Fortran90.org: Interfacing with Python
Fortran Wiki: Generating C Interfaces
Fortran Wiki: Python
Foreign Fortran
Python-Fortran bindings examples
Interfacing Fortran code
Using fortran from python
High-Performance Python โ Compiled Code and Fortran Interface
Combining Python with Fortran, C and C++
Writing fast Fortran routines for Python
Interfacing With Other Programming Languages Using Cython
Interfacing Python with Fortran
Slides from INF3331 lectures โ combining Python with Fortran/C/C++