F2PY reference manual

  • Signature file
    • Signature files syntax
  • Using F2PY bindings in Python
    • Fortran type objects
    • Scalar arguments
    • String arguments
    • Array arguments
    • Call-back arguments
    • Common blocks
    • Fortran 90 module data
    • Allocatable arrays
  • F2PY and build systems
    • Basic concepts
    • Build systems
  • Advanced F2PY use cases
    • Adding user-defined functions to F2PY generated modules
    • Adding user-defined variables
    • Dealing with KIND specifiers
    • Character strings
  • Boilerplate reduction and templating
    • Using FYPP for binding generic interfaces
  • F2PY test suite
    • Adding a test

© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.0/f2py/f2py-reference.html