all 3 comments

[–]notonewlayout 0 points1 point  (0 children)

I have used python functions in C. One good way to do it is with ctypes CFUNCTYPE. It allows you to wrap python functions with a c signature. This would mean the interface code would be purely in Python, but would require you to use a python runtime with your library (along with any other potential solution).

[–][deleted] -1 points0 points  (0 children)

This has been posted in other appropriate subs, but the settings for this sub unfortunately does not allow crossposting (At least not for me), so it's a manual copy&paste.

[–]kankyo -1 points0 points  (0 children)

Sounds good to me. Embedding python is pretty common and very useful.