https://github.com/hugomvale/fortran-in-python
Examples of how to build/call Fortran modules in Python
https://github.com/hugomvale/fortran-in-python
ctypes f2py fortran interoperability python
Last synced: 2 months ago
JSON representation
Examples of how to build/call Fortran modules in Python
- Host: GitHub
- URL: https://github.com/hugomvale/fortran-in-python
- Owner: HugoMVale
- License: mit
- Created: 2023-04-15T20:29:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-14T21:36:51.000Z (over 2 years ago)
- Last Synced: 2024-01-28T21:43:27.307Z (almost 2 years ago)
- Topics: ctypes, f2py, fortran, interoperability, python
- Language: Fortran
- Homepage:
- Size: 37.1 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
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](https://docs.python.org/3/library/ctypes.html) |
| [f2py](https://numpy.org/doc/stable/f2py/index.html) |
| [f90wrap](https://github.com/jameskermode/f90wrap) |
| [gfort2py](https://github.com/rjfarmer/gfort2py)|
A rather comprehensive list of tools to invoke Fortran code from Python can be found [here](https://github.com/Beliavsky/Fortran-Tools#interoperability).