Project

General

Profile

Anyone using WT with Python language?

Added by peter ritter over 5 years ago

Hello

It just occured to me that 'Jython' allows Python to use Java libraries. Since WT has now been 'wrapped' or even reimplemented in Java, it should theoretically be possible to call these Java libs via Jython/Python.

I'm just wondering if anyone is doing such a thing, and if so, whether the experience is pleasant and recommended.

Also, I'd like to know if the WT Java implementation exposes exactly the same functionality as the C version? Or is the C version more complete? Just curious. I wonder how popular the JAVA API is compared to the C version. Would be greateful for any responses!

Thanks, Peter


Replies (2)

RE: Anyone using WT with Python language? - Added by Roel Standaert over 5 years ago

Wt is actually translated to Java using our own tools. Some things are missing or different in JWt, but we try to keep their feature set the same. Here's some things I can think of that are different in JWt:

  • No Wt::Dbo: there are plenty of popular database frameworks for Java
  • Servlet-based instead of wthttp (or wtfcgi/wtisapi)

It's not as popular as Wt. There are some users outside of us (Emweb), but we use JWt quite extensively for projects we work on ourselves, like Genome Detective.

I have never really tried Jython so I can't comment on that.

Regards,

Roel

RE: Anyone using WT with Python language? - Added by peter ritter over 5 years ago

Hello Roel

Thanks for this answer! It is very interesting that you are using the WT java API mostly internaly. I've been programming C for 27 years and I love the power of the language but sometimes things get a bit too verbose for me. I think for web projects I don't want to deal with any pointers, which is why I am looking to move to Python which is a better fit for us than Java. Maybe Jython will work - would be great - since Python lacks tools for this kind of work.

Thanks, Peter

    (1-2/2)