Lib.jythonlib.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython-installer Show documentation
Show all versions of jython-installer Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
from _jythonlib import *
import _bytecodetools as bytecodetools
# Convenience imports, since this is the most common case for using
# jythonlib, especially with MapMaker
try:
# jarjar-ed version
import org.python.google.common as guava
from org.python.google.common.collect import MapMaker
from org.python.google.common.cache import CacheBuilder, CacheLoader
except ImportError:
# dev version from extlibs
import com.google.common as guava
from com.google.common.collect import MapMaker
from com.google.common.cache import CacheBuilder, CacheLoader