Jython
From Wikipedia, the free encyclopedia
Latest release | 2.2.1 / 13 October 2007 |
---|---|
Preview release | 2.5 Beta 3 / 9 March 2009 |
Written in | Python and Java |
Operating system | Cross-platform |
Platform | Java Virtual Machine |
Type | Python Programming Language Interpreter |
License | mixed, see License terms |
Website | www.jython.org |
Jython, successor of JPython, is an implementation of the Python programming language written in Java.
Contents |
[edit] Overview
Jython programs can seamlessly import and use any Java class. Except for some standard modules, Jython programs use Java classes instead of Python modules. Jython includes almost all of the modules in the standard Python programming language distribution, lacking only some of the modules implemented originally in C. For example, a user interface in Jython would be written with Swing, AWT or SWT. Jython compiles to Java bytecode (intermediate language) either on demand or statically.
Jython also includes jythonc, a compiler that converts Python source code into Java bytecode. This allows Python programmers to write classes which can be fully utilized by a Java program.
[edit] License terms
Jython is released under a mix of three licenses:[1]
- Python Software Foundation License (v2)
- Jython 2.0, 2.1 license
- JPython 1.1.x Software License.
The first two are permissive free software licenses. The third also appears to be but this is unclear because neither Free Software Foundation or Open Source Initiative have reviewed and commented on it.
[edit] History
Jim Hugunin created Jython in late 1997, and developed it until 1999. In February 1999, Barry Warsaw took over as the primary developer. In October 2000, Jython moved to SourceForge. For a long time, Samuele Pedroni did most of the work to maintain and develop Jython. To the end of 2004, Pedroni stepped down as the primary developer to concentrate his effort to PyPy, but he is still considered the authority on Jython internals. In January 2005, Brian Zimmer received a grant from the Python Software Foundation to develop Jython. In December 2005, Frank Wierzbicki succeeded Zimmer as the primary developer. During 2005, development was slow due to lack of knowledgeable developers.
On March 3, 2008, it was announced that Sun Microsystems hired Ted Leung and Frank Wierzbicki to work on Jython and Python, similar to Sun's hiring of two JRuby developers.[2] Development progresses steadily,[3][4] and Jython can now even run Django, a Python framework comparable to Ruby on Rails.[5]
[edit] Status and roadmap
The current release is Jython-2.2.1. It includes improvements to Java integration and implements the same set of language features as CPython 2.2. CPython 2.5 is targeted for the next release[6].
Developments are going steady and an alpha version corresponding to the CPython 2.5 release has been available since July 2008 [7][8][9]. As of January 9, 2009, a beta version, Jython 2.5b1, is available.
[edit] Usage
- Jython is one of two scripting languages (with Jacl) used in WebSphere Application Server. It is used in IBM Rational development tools, where Jython projects can be created using wizards.
[edit] See also
- WebLogic Server Application Server's wlst tool scripting using Jython
- IBM WebSphere Application Server's wsadmin tool scripting using Jython
- IronPython is an implementation of Python for .NET and Mono, originally created by Jython's creator, Jim Hugunin.
- ZK is a Java Ajax framework that allows glue logic written in Jython.
[edit] References
- ^ "The Jython License". Jython's project. http://www.jython.org/Project/license.html. Retrieved on 2008-02-09.
- ^ Leung (2008-03-03). "The Sun is going to shine on Python". http://www.sauria.com/blog/2008/03/03/the-sun-is-going-to-shine-on-python. Retrieved on 2008-03-03.
- ^ "WhosDoingWhat". Jython's Wiki. 2007-12-29. http://wiki.python.org/jython/WhosDoingWhat. Retrieved on 2008-02-09.
- ^ Nutter, Charles (2008-01-03). "Jython's Back, Baby!". http://headius.blogspot.com/2008/01/jythons-back-baby.html. Retrieved on 2008-02-09.
- ^ Baker, Jim (2008-01-03). "Django on Jython: Minding the Gap". http://zyasoft.com/pythoneering/2008/01/django-on-jython-minding-gap.html. Retrieved on 2008-02-17.
- ^ "Jython Roadmap". Jython's Project. http://www.jython.org/Project/roadmap.html. Retrieved on 2007-05-09.
- ^ Baker, Jim (2008-06-24). "Flipping the 2.5 Bit for Jython". http://zyasoft.com/pythoneering/2008/06/flipping-25-bit-for-jython.html. Retrieved on 2008-07-12.
- ^ Wierzbicki, Frank (2008-07-15). "Jython 2.5 Alpha Released!". http://fwierzbicki.blogspot.com/2008/07/jython-25-alpha-released.html. Retrieved on 2008-07-16.
- ^ Baker, Jim (2008-06-24). "Flipping the 2.5 Bit for Jython". http://zyasoft.com/pythoneering/2008/06/flipping-25-bit-for-jython.html. Retrieved on 2008-07-12.
[edit] External links
- Jython Home Page
- Jython Sourceforge Page
- differences between CPython and Jython
- Charming Jython: Learn how the Java implementation of Python can aid your development efforts
- Get to know Jython
- Learn how to write DB2 JDBC tools in Jython
- Tips for Scripting Java with Jython
- Jython tips for Python programmers
- Jython license information
- Scripting on the Java platform
- Jython Bibliography
|