Update README.md

add small example of what can be done.
This commit is contained in:
Gabriel Pettier 2012-08-14 16:36:26 +03:00
parent 7319fab9e5
commit 3ae545d21a
1 changed files with 19 additions and 0 deletions

View File

@ -1,6 +1,25 @@
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