|
JPython is a second, independent implementation of the Python
programming language, written in 100% Pure Java (certified). JPython
seamlessly integrates with your Java libraries and applications, and
is compatible with most Java 1.1 or 1.2 platforms. JPython is freely
available for both commercial and non-commercial purposes.
Visit the JPython web site
for downloads and documentation.
JPython is complementary to Java and is especially suited for the
following tasks:
-
Testing frameworks. Because JPython is easy to learn, read, and
write, it is ideally suited for writing unit and integration testing
frameworks for your Java libraries.
-
Embedded scripting. Java programmers can add the JPython libraries to
their system to allow end users to write simple or complicated scripts
that add functionality to the application. Since JPython is certified
100% Pure Java, it can be added to an application without fear of
compromising its ability to run on all Java platforms
.
-
Interactive experimentation. JPython provides an interactive
interpreter that can be used to interact with Java packages or with
running Java applications. This allows programmers to experiment with
and debug any Java system using JPython.
-
Rapid application development. Python programs are typically 2-10X
shorter than the equivalent Java program. This translates directly to
increased programmer productivity. The seamless interaction between
Python and Java allows developers to freely mix the two languages both
during development and in shipping products.
JPython supports the following features:
-
Dynamic compilation to Java bytecodes. leads to highest possible
performance without sacrificing interactivity.
-
Ability to extend existing Java classes in JPython. allows effective
use of abstract classes, and even supports subclassing Java classes in
Python or vice versa.
-
Optional static compilation. allows creation of applets, servlets,
beans, etc.
-
Bean Properties. make use of Java packages much easier.
-
Python Language. combines remarkable power with very clear syntax. It
also supports a full object-oriented programming model which makes it
a natural fit for Java's OO design.
Barry Warsaw of
PythonLabs is the lead maintainer of JPython. The original design and
implementation was done by Jim Hugunin.
|