简体   繁体   中英

Using C++ from Python? (not boost)

I'm currently using boost-python to wrap a small C++ library and make it usable from Python. However, I'd like to stop using boost (mainly due to reasons relating to building/linking). So what other options are there?

Is there something that's equally convenient to use?

There's Riverbank's SIP , Beazley's Swig , and Scott's/Dubois'/Furnish's Cxx . See also this page with other potentially relevant projects (but no direct answer to your immediate needs, I believe).

看看SWIG

Cython的语法非常Pythonic,只在必要时才违反规则。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM