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 -- https://mail.python.org/mailman/listinfo/python-list