For this particular use case, it would seem to me that the Python CFFI would be ideal, rather than having to write all that boiler plate code. Personally, I would have just Cythonized the Python version.
For this particular use case, it would seem to me that the Python CFFI would be ideal, rather than having to write all that boiler plate code. Personally, I would have just Cythonized the Python version.