Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to incorporate Python libraries in C?

Tags:

python

c

wrapper

Like many libraries coded in C can be wrapped over for Python, Is there any general way to do other way around ?

like image 942
Xasel Avatar asked Dec 04 '25 15:12

Xasel


1 Answers

Yes. (embed the CPython interpreter in your C/C++ application and that way you can make use of Python libraries.)

like image 51
Irmen de Jong Avatar answered Dec 07 '25 04:12

Irmen de Jong