'jip.embed: On-the-fly classpath resolution for Jython'

Fri 10 June 2011
  • ANN tags:
  • jip
  • jython
  • opensource
  • project published: true comments: true

jip 0.7 introduces a module called jip.embed, which allows you to add libraries to your code in the runtime as you declare them. With jip.embed, you don't have to download jars manually and append them to your -Dpython.path. You just pick your editor, import jip.embed, code your business, then save and run it.

Code example:

[cc lang="python"]
import jip.embed
jip.embed.require('commons-lang:commons-lang:2.6')
from org.apache.commons.lang import StringUtils

print StringUtils.reverse('jip rocks')
[/cc]

Output:
[cc]
skcor pij
[/cc]
(jip will print some log here if dependencies are included for first time)

So please check out my new released jip, 0.7: https://github.com/sunng87/jip

For virtualenv user, you can install full-featured jip via pip: $ pip install jip

To install jip globally, download the package from python cheese shop and run: $ jython setup.py install