Well, the Pajamas Python Javascript Compiler will not be complete - not all python functions are available in javascript, so it is not possible to convert all python to javascript. It may or may not do what you want, but I do not think this is happening on the fly. I think you need to write something on the desktop and run it through the "compiler" to get javascript from the other side.
FireBreath is the most amazing thing that has ever hit the Internet - I should have known since I wrote it - and this will absolutely allow you to do what you want, but you will need to know how to associate Python with C + + to do what you want. However, you can probably use boost.python, which is included in the subset of boost that comes with FireBreath, but I never used it, so I don't know. You can pretty much do whatever you want with the NPAPI plugin, but you need to be aware of security issues.
A quick look at pyplugin makes it look like pyplugin - this is basically what you write in FireBreath, but just a raw npapi plugin. If this will do what you want, this is probably the easiest way. It is intended for use with XUL, which can be a problem since Chrome does not support XUL. You can also change it (as it is GPL) to do what you want. Of course, if you do not plan to release your source, this can also be a problem.
The fastest way to solve your problem? Well, you have to decide; it will require a few more studies, but I hope this is enough to at least begin. Good luck
source share