Popular recipes tagged "jython"http://code.activestate.com/recipes/tags/jython/2013-10-15T16:33:48-07:00ActiveState Code RecipesCreating java class description files. (Python)
2013-10-15T16:33:48-07:00Jakub Jankiewiczhttp://code.activestate.com/recipes/users/4028109/http://code.activestate.com/recipes/502222-creating-java-class-description-files/
<p style="color: grey">
Python
recipe 502222
by <a href="/recipes/users/4028109/">Jakub Jankiewicz</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 5.
</p>
<p>Creating java class description files (like C/C++ headers) in html format, link together with data types.</p>
Image Web Visor (Python)
2005-04-19T18:46:28-07:00Mauricio Algalanhttp://code.activestate.com/recipes/users/1642338/http://code.activestate.com/recipes/410470-image-web-visor/
<p style="color: grey">
Python
recipe 410470
by <a href="/recipes/users/1642338/">Mauricio Algalan</a>
(<a href="/recipes/tags/jython/">jython</a>).
</p>
<p>This is a program in Jython to view a web images, basen in a anterior recipe</p>
Use Jython to time Java code (Python)
2005-02-07T04:57:15-08:00Victor Yanghttp://code.activestate.com/recipes/users/627255/http://code.activestate.com/recipes/363219-use-jython-to-time-java-code/
<p style="color: grey">
Python
recipe 363219
by <a href="/recipes/users/627255/">Victor Yang</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 3.
</p>
<p>Use Jython to time java code. An inexpensive solution to measure Java code's performance. In the following example, jtimeit.py is created to measure Main.doHttpGet()'s performance. Used google and yahoo as examples.</p>
inline java code into jython (Python)
2004-12-27T12:35:17-08:00Ferdinand Jamitzkyhttp://code.activestate.com/recipes/users/98863/http://code.activestate.com/recipes/360875-inline-java-code-into-jython/
<p style="color: grey">
Python
recipe 360875
by <a href="/recipes/users/98863/">Ferdinand Jamitzky</a>
(<a href="/recipes/tags/jython/">jython</a>).
</p>
<p>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.</p>
Using the Apache XPath API from Jython (Python)
2004-03-17T12:26:55-08:00Seanq McGrathhttp://code.activestate.com/recipes/users/1702703/http://code.activestate.com/recipes/274905-using-the-apache-xpath-api-from-jython/
<p style="color: grey">
Python
recipe 274905
by <a href="/recipes/users/1702703/">Seanq McGrath</a>
(<a href="/recipes/tags/jython/">jython</a>).
</p>
<p>Using the Apache XPath API from Jython.</p>
A generic jython taglib for tomcat (Python)
2003-11-17T14:33:29-08:00Ferdinand Jamitzkyhttp://code.activestate.com/recipes/users/98863/http://code.activestate.com/recipes/252132-a-generic-jython-taglib-for-tomcat/
<p style="color: grey">
Python
recipe 252132
by <a href="/recipes/users/98863/">Ferdinand Jamitzky</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 3.
</p>
<p>These java classes implement a jython taglib which can be used to embed jython code into jsp pages. It consists of two tags:
<jython:exec> ...some code... </jython:exec>
and
<jython:get var=.../>
With these two tags you can write active jython pages.</p>
Write a plugin for ImageJ (Python)
2003-11-17T06:01:09-08:00Ferdinand Jamitzkyhttp://code.activestate.com/recipes/users/98863/http://code.activestate.com/recipes/252130-write-a-plugin-for-imagej/
<p style="color: grey">
Python
recipe 252130
by <a href="/recipes/users/98863/">Ferdinand Jamitzky</a>
(<a href="/recipes/tags/jython/">jython</a>).
</p>
<p>ImageJ (<a href="http://rsb.info.nih.gov/ij/" rel="nofollow">http://rsb.info.nih.gov/ij/</a>) is a very good image processing program which can be extended using plugins. It is also possible to write ImageJ plugins in jython and generate a class file. This plugin implements an image inverter.</p>
Pickle objects under jython (Python)
2003-11-17T06:11:21-08:00Ferdinand Jamitzkyhttp://code.activestate.com/recipes/users/98863/http://code.activestate.com/recipes/252131-pickle-objects-under-jython/
<p style="color: grey">
Python
recipe 252131
by <a href="/recipes/users/98863/">Ferdinand Jamitzky</a>
(<a href="/recipes/tags/jython/">jython</a>).
</p>
<p>Using the pickle module under jython is a rather slow method for storing data. Using the ObjectOutputStream speeds it up. You can save and restore objects (jython and java) with these functions.</p>
View an image URL with Jython and Swing (Python)
2003-11-29T05:12:14-08:00Joel Lawheadhttp://code.activestate.com/recipes/users/545119/http://code.activestate.com/recipes/252144-view-an-image-url-with-jython-and-swing/
<p style="color: grey">
Python
recipe 252144
by <a href="/recipes/users/545119/">Joel Lawhead</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 2.
</p>
<p>The simple Jython function below accepts a url string for an image and displays it in a Swing window.</p>
Use jython to access an LDAP server (Python)
2003-10-23T13:42:31-07:00Zabil CMhttp://code.activestate.com/recipes/users/1414956/http://code.activestate.com/recipes/230342-use-jython-to-access-an-ldap-server/
<p style="color: grey">
Python
recipe 230342
by <a href="/recipes/users/1414956/">Zabil CM</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 2.
</p>
<p>This snippet shows how to use of jython to create an interactive environment for querying an LDAP database, searching a user/group and listing the attributes of that User/Group.</p>
Using ODBC for extracting data from MS Excel (Python)
2003-10-11T17:17:11-07:00Zabil CMhttp://code.activestate.com/recipes/users/1414956/http://code.activestate.com/recipes/228010-using-odbc-for-extracting-data-from-ms-excel/
<p style="color: grey">
Python
recipe 228010
by <a href="/recipes/users/1414956/">Zabil CM</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 4.
</p>
<p>This article discusses how to use jython to connect to an MS Excel file via ODBC using the JDBC-ODBC bridge.</p>
Simple JSP Custom Tag in Jython (Python)
2002-03-15T14:19:52-08:00Niko Schmuckhttp://code.activestate.com/recipes/users/261854/http://code.activestate.com/recipes/117239-simple-jsp-custom-tag-in-jython/
<p style="color: grey">
Python
recipe 117239
by <a href="/recipes/users/261854/">Niko Schmuck</a>
(<a href="/recipes/tags/jython/">jython</a>).
Revision 2.
</p>
<p>A simple example which shows how to implement your own JSP custom tag with the help of Jython.</p>