i am thinking something along these lines Fortran : f2py C/C++ : Cython, cffi C++ : pybind11, nanobind