开发者

Looking for non-Boost::Python C++ Python embedding framework [closed]

开发者 https://www.devze.com 2023-04-05 17:46 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 3 years ago.

Improve this question

I have a project of mine, written in C++, that has now progressed to a stage where I require an embedded programming language. I've chosen Python for several reasons, and have been playing around with revealing an API to a dynamically-loaded Python module. It works well, and I think I will stick with Python for the foreseeable future.

I have a question, though. I've been spending a lot of time adding each function to the Python API that I'm providing, and so I've been looking for a framework that alleviates much of the repetition.

The framework that seems to be mentioned time and time again is Boost::Python. While I have nothing against Boost::Python -- in fact I will probably use it in the near future -- for this project I unfortunately cannot use Boost-related libraries.

Are there any other decent frameworks out there? I don't particularly fancy writing my own, but neither do I wish to continue my use of th开发者_Python百科e straight Python C API.

Thanks!


I was facing nearly the same problem but at the end I sticked Boost::Python ;) However an option to Boost::Python is Swig. If you use Swig you also, don't have to write so much boilerplate code than you have to with Boost::Python.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号