Differences between revisions 5 and 6
Revision 5 as of 2007-07-27 22:29:45
Size: 1666
Editor: GregMoore
Comment: Fixed URL for jnumerical. previous one was invalid.
Revision 6 as of 2008-11-15 09:16:01
Size: 1605
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl MoinPagesEditorGroup:read,write,delete,revert All:read
Line 6: Line 5:
[[TableOfContents]] <<TableOfContents>>

Jython modules

JythonFaq


What parts of the Python library are supported?

The good news is that Jython now supports a large majority of the standard Python library. The bad news is that this has moved so rapidly, it's hard to keep the documentation up to date.

Built-in modules (e.g. those that are written in C for CPython) are a different story. These would have to be ported to Java, or implemented with a JNI bridge in order to be used by Jython. Some built-in modules have been ported to JPython, most notably cStringIO, cPickle, struct, and binascii. It is unlikely that JNI modules will be included in Jython proper though.

If you want to use a standard Python module, just try importing it. If that works, you're probably all set. You can also do a dir() on the modules to check the list of functions it implements.

If there is some standard Python module that you have a real need for that doesn't work with JPython yet, please send us mail.


Can I use the python DB API from Jython?

Take a look at zxJDBC which gives data database connectivity from Jython using the Python DB API 2.0 interface. Note that zxJDBC became part of the Jython project as of Jan 15, 2002. The original announcement is here:

- http://www.ziclix.com/zxjdbc

For more information about using zxJDBC see:

- http://www.jython.org/docs/zxjdbc.html


Can I use the Numeric package from Jython?

Take a look at at Tim Hochberg's Java implementation of Numeric, JNumeric.

- http://jnumerical.sourceforge.net/index.html

JythonFaq/JythonModules (last edited 2014-08-20 10:41:34 by PaoloDina)