3 ms·
You should try python-cffi. Using python code as a shared library under C is pretty easy, and calling C from python is pretty easy. The documentation is a bit c
by traverseda 9y ago
You should try python-cffi. Using python code as a shared library under C is pretty easy, and calling C from python is pretty easy. The documentation is a bit crappy, but it's alright once you get the hang of it.
I recently used it to prototype a shared library that overrides the `getenv` syscall, with the intent of providing decrypt-on-use environment variables. It's pretty simple, stolen from lua I believe.
https://cffi.readthedocs.io/en/latest/overview.html#embedding https://cffi.readthedocs.io/en/latest/overview.html#embeddin...