tags:

views:

85

answers:

3

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?

A: 

Cython's syntax is very Pythonic, breaking the rules only where necessary.

Ignacio Vazquez-Abrams
Yep, but it doesn't do C++ -- in my answers, I listed only projects that do (SIP and Cxx are C++ only, SWIG supports multiple languages).
Alex Martelli
@Alex: Then how come the page at the link I gave exists?
Ignacio Vazquez-Abrams
Cython _does_ C++.
carl
There are people saying that Cython does C++ well in 0.13, but the latest release is 0.12.1 :(The main question however is whether I can easily use a library, written in Cython, from Python (CPython).
Magnus
+1  A: 

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).

Alex Martelli
Gotta give my upvote to SWIG.
wheaties
+1  A: 

Take a look at SWIG.

zdan