From 3ae545d21a5a53a17cf9ed0034d576cb8e3d32b1 Mon Sep 17 00:00:00 2001 From: Gabriel Pettier Date: Tue, 14 Aug 2012 16:36:26 +0300 Subject: [PATCH] Update README.md add small example of what can be done. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 34b2cbd..69f43cf 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file