Access Java classes from Python
Go to file
Mathieu Virbel d15564cf23 add a test for overflow 2012-08-14 18:26:58 +02:00
jnius remove generated files 2012-08-14 18:21:25 +02:00
tests add a test for overflow 2012-08-14 18:26:58 +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:57 +03:00
setup.py little fixes for android, remove the recursive part in autoclass for the moment 2012-08-14 17:21:55 +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