pyjnius/README.md

25 lines
474 B
Markdown
Raw Normal View History

2012-08-14 01:42:43 +00:00
PyJNIus
=======
description
-----------
2012-08-14 01:42:43 +00:00
Python module to access Java class as Python class, using JNI.
(Work in progress.)
quick overview
--------------
2012-08-14 13:36:57 +00:00
>>> from jnius.reflect import autoclass
>>> autoclass('java.lang.System').out.println('Hello world')
Hello world
2012-08-14 13:36:57 +00:00
>>>Stack = autoclass('java.util.Stack')
>>>stack = Stack()
>>>stack.push('hello')
>>>stack.push('world')
>>>print stack.pop()
world
>>>print stack.pop()
hello