How to create a python extension module from a shared library?

James Chapman james at uplinkzero.com
Tue Jan 2 09:30:06 EST 2018


I have an example of loading and communicating with a dynamic library using
ctypes in Windows here:
https://github.com/James-Chapman/python-code-snippets/tree/master/DLL_C_funcs_w_callbacks
It shouldn't be too dissimilar on Linux.

What starts uWSGI? Is it started from a Python application or a webserver?
Apologies for my lack of knowledge RE uWSGI.


> Any ideas how to compile lib into a python extension module with cffi?

No. Do you mean python binary extension? (
https://packaging.python.org/guides/packaging-binary-extensions/)
Or Python package? (https://python-packaging.readthedocs.io/en/latest/)

James



More information about the Python-list mailing list