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

Closed. This question 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 the 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.

Related

quickJS documentation and/or well commented projects [closed]

Closed. This question 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 1 year ago.
Improve this question
I am porting an in-house system from Duktape to quickJS to take advantage of the support for ES6 features and good module support (including dynamic imports).
Have ported some simple class libraries to be imported as shared object modules. But getting stumped with more advanced inter-operation issues. quickjs.h contains approximately 400 entries, but there are less than 2 pages of documentation for the C-API.
Any suggestions as to where more detailed documentation could be found?
Failing that pointers to any well documented project using quickJS might help. Yes, I have Googled and haven't found anything useful.
I am also in the same boat,QuickJS docs & examples are hard to find here are the best ones I found so far :
https://github.com/sntg-p/QuickJS-raylib : very nice as it wraps a good portion of the relatively large RayLib API
https://github.com/saghul/txiki.js might also have some nice things (as it wraps libuv amomngs other things
a more simple example https://github.com/calbertts/async-quickjs
hope the above examples help !

C++ - most popular framework for interacting with SQL? [closed]

Closed. This question 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 6 years ago.
Improve this question
I am a computer science student and I want to do a personal project demonstrating some skills that I have learned. Recently I learned how to use SQL with PHP. Since PHP isn't as relevant as it once was, I was hoping someone could point me towards a more commonly used back-end tool where I still interact with my database through SQL queries. In my question, I specifically asked about a C++ framework since I am most comfortable with C++, but if there are much more common frameworks for what I'm looking for that use Java or Python, that would work as well.
Doing a quick google search gave me a very very large list of potential frameworks, so I was hoping someone with more knowledge in the field can point me towards one that employers would find the most relevant.
On a side note, I was also wondering if a framework is completely necessary, or if I can create my back-end just using native c++? If so, is this a valuable skill to look into?
Thanks for the help.
check out QT for the C++ GUI & MySQL for the backend...

python cookbook for beginners? [closed]

Closed. This question 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 4 years ago.
Improve this question
I know there's a python cookbook, and it seems to be a good one. But it also seems to be aimed more towards intermediate and advanced users.
Does anyone know of something along the lines of a python cookbook for beginners?
I'd really like some useful examples of code that I could use right away for fun things to learn about python programming, that ISN'T the absolute basics.
Here's a small set of resources you may want to study:
Hidden features of Python
What are some cool Python tricks?
Short (and useful) python snippets
30 Python Language Features and Tricks You May Not Know About
Python snippets
There are a lot of interesting examples that could help you understand the language better.
My professor recommended for me a book called "think python like computer scientist".
I'm reading it for now , it's very good at python and methods of thinking .
You can download it from :
https://greenteapress.com/thinkpython/thinkpython.pdf

What C/C++ library to use for HTML DOM building/changing? [closed]

Closed. This question 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 2 years ago.
Improve this question
I am using perl module HTML::DOM (link to CPAN) for building HTML DOM tree from HTML code and then changing it using standard DOM's removeAttribute, removeChild, innerHTML, createElement and so on.
But, I have found out it's really, really slow and eating too much memory (it's fully in perl, anyway). So, I thought that there will be some C/C++ library that does it faster and more efficiently (because it happens in every browser that have JavaScript support).
So far, I have not found anything. Maybe I am searching wrong?
edit: I will add. I would like it if it worked similarly to linked Perl module - by that, I really mean so I could use directly HTML's innerHTML, className, idName... Is it posible, or will I need to use general XML parser and then write these by myself?
edit2: OK, the slowness of the Perl module was actually my fault entirely. However, since I already asked, the question still stands :)
libgdome is a library adding a DOM implementation on top of libxml2.
Many of the faster higher-level language modules for this purpose (such as, in the Python world, lxml) tend to be built directly on libxml2, doing the DOM bits themselves.

C++ Library for XML-RPC [closed]

Closed. This question 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
There is a list of C++ XMLRPC implementations in Wikipedia:
Libiqxmlrpc
Ultra lightweight XML-RPC library for C++
XML-RPC for C and C++
XmlRpc++
XmlRpc C++ client for Windows
gSOAP toolkit for C and C++ supporting XML-RPC and more
libmaia: XML-RPC for Qt/C++
I wonder that people use which of these libraries most. Do you have experience with these libraries?
I've used gSOAP in the past. I found it pretty nice to work with. It's fairly mature and runs on a variety of platforms. I thought the documentation, along with examples to be sufficient. We used it on a project that needed to communicate with ASP.NET web services from a Linux environment.
I think that xmlrpc++ is what you're looking for. Though I can't give objective comparison to every library listed here, I must say that's it's extremely versatile, well-written and somewhat easy to get used to.
Well, it actually some kind of lacks in documentation, but this is also subjective (hate this doxygenized way of presenting information).
Added : ulxmlrpcpp also (never used it, just looked through documentation) seems fine and well-designed.