We can use Swig to develop Python modules. For a detailed introduction, please see: Python Modules with Swig
We can also use Cython to build Python modules.
We can also use pybind11 to build python modules.
We can also use the C-API interface provided by the Python Library to build Python modules directly.