Access Java classes from Python
Go to file
Gabriel Pettier 3ae545d21a Update README.md
add small example of what can be done.
2012-08-14 16:36:26 +03:00
jnius fix package import, make tests work again. 2012-08-14 15:12:34 +02:00
tests fix package import, make tests work again. 2012-08-14 15:12:34 +02:00
.gitignore add autoclass/ensureclass, auto reflection for JavaObject, and fixes around j_self 2012-08-14 15:09:48 +02:00
Makefile wip 2012-08-14 15:04:13 +02:00
README.md Update README.md 2012-08-14 16:36:26 +03:00
setup.py add autoclass/ensureclass, auto reflection for JavaObject, and fixes around j_self 2012-08-14 15:09:48 +02:00

README.md

PyJNIus

description

Python module to access Java class as Python class, using JNI.

(Work in progress.)

quick overview

from jnius.reflect import autoclass autoclass('java.lang.System').out.println('Hello world') Hello world

Stack = autoclass('java.util.Stack') stack = Stack() stack.push('hello') stack.push('world') print stack.pop() world print stack.pop() hello