Posts Tagged ‘Jython’
Jython 2.5 and a book!
Posted on July, 2 at 3:17 pm | Filed Under Jython, Python
Jython 2.5, the latest version, is out and available. Get it here: http://www.jython.org/. This brings Jython to compatibility with CPython 2.5 so it can run more python than ever. Additionally, there is an open source Jython book in the works called The Definitive Guide to Jython. The book is a collaboration of multiple people close [...]
Jython 2.5 nears release – Beta 3 is out
Posted on March, 10 at 9:08 pm | Filed Under Jython
Things seem to be settling in for Jython 2.5. Frank Wierzbicki announced that Beta 3 is out of the oven.
Mobile Jython – Jythonroid
Posted on January, 19 at 10:48 am | Filed Under Jython, Python
Jythonroid is a build of Jython now available for your Android based phone. Cool! I wonder if we will get android based phone up in the frozen north any time soon…
Jython 2.5 Beta 0 is Out
Posted on October, 31 at 9:47 pm | Filed Under Jython, Python
Happy Halloween! Here is treat, Jython 2.5′s first beta is out. This is great news as it shows the progress being made to jython 2.5 finished. Great work guys.
Frank’s Jython Roadmap
Posted on October, 20 at 6:26 pm | Filed Under Jython, Python
Jython is nearing some important dates. From Frank Wierzbicki: Jython 2.5 Beta We are closing in on a beta at the time of this writing. We have a pretty good implementation of Python, passing more than 99% of the unit tests that we pull in from CPython. We have implemented all of the 2.5 language [...]
How To Script Webservices with Jython and Axis
Posted on September, 29 at 7:18 am | Filed Under Jython
This post covers the steps required to build and use a Jython webservice client. The goal is to end up with a scripting environment that is easy to use. The short version of the post is as follows: Use Apache Axis to generate and build a java library (jar) for the target webservice. Add that [...]
Progress Report Scripting Webservices with Jython and Apache Axis
Posted on September, 26 at 1:42 pm | Filed Under Jython
I’ve figured out most of the steps required to use a webservice from Jython. As long as you are using Axis and adding the stubs into the Jython environnment, it all works pretty well. This kind of approach to webservices might make a pretty neat extension to Jython itself (namely the ability to easily build [...]
Please help updating the Jython resource list – Jython Bibliography
Posted on September, 23 at 9:51 am | Filed Under Jython, Python
Jython is progressing towards a new release and so it is time to update the Jython Bibliography. It is a list of all the articles and books that either reference Jython directly or in a signifcant way. Please take a look at it and let me know if there is anything I have missed. Lets [...]
Django, Webservices and Jython
Posted on September, 22 at 7:14 am | Filed Under Jython
The recent DJango 1.0 release adds tons of updated features, but for me the one feature that is most intriguing is its support for Jython. I think this may be a first for a web framework, and it holds some interesting potential. One of the first things that comes to mind is that we can [...]
Jython Bean Scripting Framework (BSF) Example
Posted on September, 17 at 1:11 pm | Filed Under Collaboration, Jython, Python
Every time I have to put my head back into java and figure out how to embed Jython, I have a hard time finding any examples. So, here is a quick example of getting jython working in BSF. The java class runs jython first by exec’ing a string that contains a python fragment, and then [...]
DJango on Jython!
Posted on August, 21 at 12:22 pm | Filed Under CM, Collaboration, Jython
Yes it looks like it is finally here via random.choice(['idea', 'rant', 'link', 'tip']). This I think is great news for both Jython and DJango and shows in particular how far Jython has come lately. The momentum on the Jython front is also great to see since I persuaded our product team to add Jython into [...]
More on Django on Jython
Posted on September, 5 at 7:03 pm | Filed Under Jython, Python, Software
Seems that Jython 2.2 release coincides with a desire by some Django / Java developers to try to merge their favourite technologies (python and django) with their for pay technologies. Here is another person working on porting Django to Jython.
Django on Jython 2.2
Posted on September, 4 at 9:16 am | Filed Under Jython, Software, Web Tools
Here is an interesting mix of two of my favorite tools, Jython and Django. Leo Soto is working to get Django running on the newly released Jython 2.2. So far he has the development web running. This should be an interesting real world test for the new features in Jython 2.2.
Jython 2.2 Released!
Posted on August, 23 at 11:35 am | Filed Under Jython, Python, Software
Frank Wierzbicki announced that Jython 2.2 has been released! Jython catches up to Python 2.2 and now has the following features: new-style classes Java List integration PEP 302 implementation iterators generators __future__ division support for running on modern JVMs a new installer ssl and non-blocking support for socket See the Jython Bibliography and more Jython [...]
Script Oracle and Mysql from Jython
Posted on August, 10 at 6:28 pm | Filed Under Jython, Python, Software
Here are a couple of links to articles on how to use Jython to script oracle. Andrew has this example and Adam has this other example. See also my earlier post on how to script mysql from Jython.
Jython 2.2 RC3 is Ready!
Posted on August, 2 at 3:00 pm | Filed Under Jython, Python, Software
Jython 2.2 is nearing release and its latest release candidate is ready for download.
Updated Jython Bibliography
Posted on July, 19 at 5:53 pm | Filed Under Jython, Python, Software
I’ve updated the Jython Bibliography. Please let me know if I’ve missed anything out there in the way of books, articles, or significant web documents that are of interest to the Jython community.
Jython MySQL Sample using JDBC
Posted on June, 15 at 9:22 am | Filed Under Jython, Python, Software
Here is a quick sample jython script to query a MySQL database using the mysql jdbc driver. Make sure that the jdbc driver is in your classpath and available to jython. from java.lang import * from java.sql import *driverName=”com.mysql.jdbc.Driver” Class.forName(driverName) url = “jdbc:mysql://localhost/mydatabase?user=myuser&password=mypassword” con = DriverManager.getConnection(url) stmt = con.createStatement() sql = “select column from table [...]
Updated Jython Bibliography for 2007
Posted on June, 1 at 3:18 pm | Filed Under Jython, Python
Jython seems to be gaining steam again. In celebration here is an updated Jython Bibliography updated to include resources I’ve found published in late 2006 and 2007. If there is anything I’ve missed, please let me know.
Updated Jython Bibliograhpy
Posted on March, 30 at 12:11 pm | Filed Under Jython, Python
I have updated my Jython Bibliography to include articles and or books published during late 2005 and 2006. The current Bibliography now has 38 separate published resources! Please leave me comments if I have missed any.
Inline Java code into Jython
Posted on January, 2 at 9:30 pm | Filed Under Jython
This recipe shows how to insert java code into a jython program. The java code is automatically compiled and the resulting class is imported and returned. Compilation only occurs after a change of the java source. [via Python Cookbook]
How to do an XSL transformation in Jython
Posted on September, 3 at 8:56 pm | Filed Under Jython
Here is a quick way to do xsl transformation in jython. I also found at the same site the a quick intro to dom style parsing of xml files from Jython. You might also look at using jdom to do this as well.
Scripting LDAP with Jython — Queries
Posted on July, 13 at 3:29 am | Filed Under Jython
I’ve been playing with LDAP directories from Jython and thought I should share a couple of useful examples of what you can do. The first of these is a quick barebones query example. Enjoy. # Jython LDAP Example from javax.naming import * from java.util import * from javax.naming.directory import * # Credentials to access LDAP [...]
Write Your Own Mini Aggregator with Jython and Rome!
Posted on June, 28 at 8:52 pm | Filed Under Jython
Rome is a new java API for reading RSS and ATOM feeds. Here is a quick demonstration of what you can do with it using Jython, the Java Scripting Swiss Army Knife. Ok, you will need to add both the latest build of Rome and JDOM to your classpath. Next fire up jython or if [...]
Use Jython to Write Ant Tasks
Posted on April, 23 at 4:03 am | Filed Under CM
This is an article I wrote that looks at how to add scripted behaviour to ant builds. It details the steps to write a custom Ant task in Jython, compile it and install it into Ant so it can be used as any other task in an ant build. The article also takes a quick [...]
