« Return to Thread: Use Python libs or Java libs

Re: Use Python libs or Java libs

by kilon :: Rate this Message:

Reply to Author | View in Thread

Thanks  Jim for replying .

It is great news that sqlite3 is coming to jython. I am sure it will make alot of people happy.

Pygame is something I wish to mess out with at some point , seams like an easy way to work with graphics.

Swing is all nice and cool ,  and integrates perfectly with JAVA2D which expands its capabilities . But I always like to keep my options open. I am new with wxPython, and would like to try pyGTK . I cannot comment on wxPython abilities but it seems to me easier to handle than Swing.

One more question , how can I connect a python and jython program ? I know that jython follows closely the python syntax or should I say to the letter? So I was wondering if the two could work together without too many steps.    

Thanks for all the help!!!!

Jim Baker wrote:
Kilon,
sqlite3 support is planned for Jython 2.5.1. Leo Soto demonstrated working
with it for his Summer of Code project with me last year, but only through a
Django backend. I think he ran into some issues, but they're likely
surmountable.
pygame uses ctypes extensively. It will be a good test case for our
implementation of ctypes, again planned for 2.5.1.
wxPython support would be very unlikely, given that Swing and SWT provide
much better capabilities. Of course we would always welcome someone working
on this if it made sense to them.

Your best bet for using C code today is through JNA, which can be directly
called from Jython and does not require a separate compilation step, unlike
JNI. It's not sufficient for implementing a general foreign function
interface, but it's certainly workable for most usages.

- Jim

On Tue, May 19, 2009 at 11:08 AM, kilon <thekilon@yahoo.co.uk> wrote:

>
> Well As far As I have seen , most python libraries that I do use are
> wrappings of C/C++ libraries .
> I saw several discussions here that C/C++ wrapped python libraries cannot
> be
> accessed directly.
>
> Ok I stand corrected.
>
> So then it is my turn to ask questions.
>
> 1) Is pySqlite3 ported to jython ?
>
> 2) Is pygame ported to jython ?
>
> 3) Is wxPython ported to jython ? (SWIG is alright but i find Wx Python ,
> more pythonic ;) )
>
> These three libraries are the MOST important to me.
>
> Sorry if I mislead the original poster but I thought that most python
> libraries were using or interacting with C++ code in one way or anotherto
> make it hard to port to jython. My bad !!!
>
> Another question , how do you make CPython libraries immediately availables
> in jython , through JNI or other means ?
>
> I agree ctypes addition will be very useful for jython as it already is for
> python.
> --
> View this message in context:
> http://www.nabble.com/Use-Python-libs-or-Java-libs-tp23602091p23620517.html
> Sent from the jython-users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Jython-users mailing list
> Jython-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jython-users
>



--
Jim Baker
jbaker@zyasoft.com

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users

 « Return to Thread: Use Python libs or Java libs