Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/kivy/pyjnius

Access Java classes from Python
https://github.com/kivy/pyjnius

fix a leak when calling constructor with string arguments

5fc9e58b4c108e7a8476784d417747cda516ae96 authored about 11 years ago by Mathieu Virbel <[email protected]>
Remove duplicated text from TextToSpeech example.

6a9705138f751602dff82fd69dbf4fb1ba951ee4 authored over 11 years ago by Ian <[email protected]>
Fix field dereference when multiple instances of a class exist. Fixes #77

51889323a34bed4722d448942b2aa0ed7a424629 authored over 11 years ago by Michał Zieliński <[email protected]>
Document autoclass syntax for nested Java classes.

9ecf8b22637b2b34f39d6d81aa37fdc90fe19cf1 authored over 11 years ago by Ian Foote <[email protected]>
new ByteArray native class, used to transport [B in python, instead of using Python list + integer.

ByteArray have .tostring() + .tolist(), and support slices / item lookup / size, but everything i...

693275fe48b59c3a3ebe2afcf15ba105643feea6 authored over 11 years ago by Mathieu Virbel <[email protected]>
fixes for convert_jobject_to_python to correctly handle [B as parameters, as well as "Ljava/lang/Object;" that can be converted into "[Ljava/lang/String;"

af824144cc00aee7526421d3c204934bc6f1100d authored over 11 years ago by Mathieu Virbel <[email protected]>
proxy: add "except *" to correctly propagate the python exception in invoke0, and let traceback print it. (python exception doesn't go through java... ^^).

+ avoid double-referencing in proxy. Before, we was having weird issue without it, but i'm not ab...

9a18e94aa9d26be46241145854ee09bc64bb8aec authored over 11 years ago by Mathieu Virbel <[email protected]>
Fix string format error in 2.6

In 2.6, you should give index value to format.

a92308975bb6822bd13333aaf4983eda93c8f503 authored over 11 years ago by limodou <[email protected]>
Merge branch 'master' of github.com:kivy/pyjnius

04c8ced2a77cfa4cb095a00b46d778a45ef4495c authored over 11 years ago by Mathieu Virbel <[email protected]>
make sure that GetObjectArrayElement are freed.

8541c489ff7b68846635b12cf0d2ad8b2a6a67e3 authored over 11 years ago by Mathieu Virbel <[email protected]>
Merge pull request #69 from smglab/master

fix NotImplemented not found

c74679672315665adf6b4452b57404c4aa4860ff authored over 11 years ago by Gabriel Pettier <[email protected]>
fix NotImplemented not found

d226263174a654676f3422d9da1891583e27a611 authored over 11 years ago by Max Shabalihin <[email protected]>
dont overload the type, or later if will failed as well.

54097ccacbc7f7eb787089f106415904c129ba9a authored over 11 years ago by Mathieu Virbel <[email protected]>
Merge pull request #66 from zielmicha/master

Check for exception after calling constructor

afc1d9d788ce81b37293f0d62a0a437164386ff6 authored over 11 years ago by Mathieu Virbel <[email protected]>
fix lookup_java_object_name local reference leak

35c410e542f6f45f6b56f6ff051ecb407afde23a authored over 11 years ago by Michał Zieliński <[email protected]>
Delete local reference after constructing class

d6a3d1cf5f609a94671c697e30dac6df71e90578 authored over 11 years ago by Michał Zieliński <[email protected]>
Check for exception after calling constructor

2df76cb7f62e2dff6476e39e0783815b74161574 authored over 11 years ago by Michał Zieliński <[email protected]>
Pyjnius is now under MIT license

1dce4a0b5df8cc04589d30f4c204b11c524cee0c authored over 11 years ago by Mathieu Virbel <[email protected]>
basic support for output args. works only in the original type allow slice assignment. We gently ignore TypeError if the assignation didnt work. closes #58

481b3e5d30fbf2cd09409b024ead0a1ee27fb354 authored over 11 years ago by Mathieu Virbel <[email protected]>
update README.md. closes #64

8e2564ccc88847ef65bf5053bd19e2ee6b98b669 authored over 11 years ago by Mathieu Virbel <[email protected]>
last fixes to make pyjnius Java-thread proof. If you call any jnius related from a C thread, it will leak and/or crash (this hasnt been tested).

5ff62b146e47b0795ee1fe54d67cb304653885fb authored over 11 years ago by Mathieu Virbel <[email protected]>
XXX avoid to switch between thread when invoke0 is called / new push_jnienv/pop_jnienv. Without it, if another thread use pyjnius = crash. (i have explored TLS storage for storing j_env, but it seems not available on Android.

21d365df24aa821729d4eede98a57c555ac1e270 authored over 11 years ago by Mathieu Virbel <[email protected]>
class: fix thread issues when using a class between thread (j_cls MUST be a global ref to work.)

3db9a76ed8860e8a2ed0fa5a023c8bb1bd9ce843 authored over 11 years ago by Mathieu Virbel <[email protected]>
jnius: fix push/pop jnienv in order to avoid GIL going on using the previous thread env while we are still on the current thread

8349037dd3d1e4e5f66f62a367e99b37acc3feda authored over 11 years ago by Mathieu Virbel <[email protected]>
Merge branch 'master' of github.com:kivy/pyjnius

eedf301d60942d8901b9a64369292ff2bd17b1bf authored over 11 years ago by Mathieu Virbel <[email protected]>
jnius: refactor to not save jni env, and use the current pushed/pop env. This resolve few issues when pyjnius is called from a proxy (error such as E/dalvikvm( 6036): JNI ERROR: env->self != thread-self (0x68415860 vs. 0x400bb010); auto-correcting)

5bf97da477d45090d7881c97d4f2a5b1d02ce902 authored over 11 years ago by Mathieu Virbel <[email protected]>
Merge pull request #63 from amirouche/master

improve JRE/JDK home detection using which and default JRE location when JDK is installed

16eee21807de79df60811e3dadbc2776cd6e8c10 authored over 11 years ago by Mathieu Virbel <[email protected]>
fix encoding issues in test_implementation.py

2c5a14dae2846d3275f2f67a882629b548873848 authored over 11 years ago by Mathieu Virbel <[email protected]>
add tests for testing Python string -> [B, using ByteBuffer.wrap(byte[])

68165ed04b04ae214f5b4ba0eada3a4e56d03e8f authored over 11 years ago by Mathieu Virbel <[email protected]>
accept python string as a valid argument for [B and [C

5ec6d80ba3ae3cce15aacd71915b315e7d841f3e authored over 11 years ago by Mathieu Virbel <[email protected]>
Allow to pass None for array (example: String[] can be null.)

3fe55c1bb292c1ae381a3120de9b36c8afc6e859 authored over 11 years ago by Mathieu Virbel <[email protected]>
add missing documentation for __javacontext__ in PythonJavaClass

bd3f007ed3e1f4015ef43d64c14abfea481d310a authored over 11 years ago by Mathieu Virbel <[email protected]>
improve JDK_HOME and JRE_HOME detection

44df78e2cbdf05da570c7ccfac5d6ce8cae87b0b authored over 11 years ago by Amirouche Boubekki <[email protected]>
Add __javacontext__ for proxy class, which can be either "system" or "app". Default goes to system if non existent.

Also check the exception before trying to convert the returned value, as i've experienced, someti...

ded2378679d38c6838ad2425bce16fd9c1a9aa58 authored over 11 years ago by Mathieu Virbel <[email protected]>
add a better repr for LocalRef class (ie, indicate the source reference we came from.)

1844de341e56a9714c47f2b637a93ea4bcf3c50d authored over 11 years ago by Mathieu Virbel <[email protected]>
cython 0.19 fixes, jlong was interpreted as a number, not as a pointer value anymore.

4cf0b865b9e4ac0efb0f8694fc3898b628589f1a authored over 11 years ago by Mathieu Virbel <[email protected]>
test unicode handling

7baebbb46557ca739514b5acac7a14beca87c00f authored over 11 years ago by tshirtman <[email protected]>
fix tests

abc36192c38adcfb82925dd5993c23b58013598e authored over 11 years ago by Mathieu Virbel <[email protected]>
proxy: force GIL on invoke0, and add a special case for $Proxy name (android failed to FindClass)

242245a6f43d5d692e84243f21de98c010bf9196 authored over 11 years ago by Mathieu Virbel <[email protected]>
add documentation for proxy, and for java signature format

44f1a338ac2867af8211f85d43b8a170deacf02f authored almost 12 years ago by Mathieu Virbel <[email protected]>
cleanup proxy code

2a95adc6740b20e4f069ad34bc07f24ebd7228a0 authored almost 12 years ago by Mathieu Virbel <[email protected]>
fix proxy tests, it works!

5fa7030778a722afdd7d058c9dd40db045e79dfa authored almost 12 years ago by Mathieu Virbel <[email protected]>
add DEBUG boolean in the java class

a1c18107d32dbeac47e23617cfcee1e051f85894 authored almost 12 years ago by Mathieu Virbel <[email protected]>
reduce code

717c0166cf87b2a4081baa855cb3ac40739dabc2 authored almost 12 years ago by Mathieu Virbel <[email protected]>
implement void return

46555de7b2c31a05d76b0474e635c35c2b840368 authored almost 12 years ago by Mathieu Virbel <[email protected]>
compile with debug info by default, can be stripped later

8cf95425184e1d38988d839386ed7cb81263c607 authored almost 12 years ago by Mathieu Virbel <[email protected]>
ident java

0686d6b54b4d6ab301f13c908200a7ac91504d62 authored almost 12 years ago by Mathieu Virbel <[email protected]>
fix crash in Java, it look like changing CreateLocalRef to CreateGlobalRef works, and retain correctly some references needed for the invocation. But i'm not entirely sure about the implication.

ac94b7c81555bb31aa8ba7b79107e8767e905919 authored almost 12 years ago by Mathieu Virbel <[email protected]>
Merge branch 'master' into extend_class_support

118d1dd48d1ee1512020cf3d6847748d59c5e713 authored almost 12 years ago by Mathieu Virbel <[email protected]>
Merge pull request #52 from artagnon/master

A couple of quick fixes

4ee1bcd81fff09bbc7adf7b6193e785de7cb8b8f authored almost 12 years ago by Gabriel Pettier <[email protected]>
docs/source/android: add note about nested classes

Right after the first DPI example, write a short note demonstrating
the use of autoclass() with ...

95e0b3b94ba920b80172f046d8bc4fba60ad7f79 authored almost 12 years ago by Ramkumar Ramachandra <[email protected]>
.gitignore: tighten ignore rules in jnius/

Tighten the ignore rules for jnius/jnius.c, jnius/jnius.so, and add a
rule for jnius/config.pxi....

5158f5ffe63b1611de3c929be1a7b1e0c613f345 authored almost 12 years ago by Ramkumar Ramachandra <[email protected]>
small fixes

9dd20611fe354a46e21f7d0627882c09dc963708 authored almost 12 years ago by tshirtman <[email protected]>
doing a call to ListIterator() before fix the issue XXX find why

add get/set to TestImplemIterator so it does the shuffle correctly

f840d9a25314713bcf604a1b841a8a36829df98e authored almost 12 years ago by tshirtman <[email protected]>
fix classpath for windows and CLASSPATH definition

7068b37d693f9e43adc8ed7f33b14aebd0f9a45c authored almost 12 years ago by tshirtman <[email protected]>
move testImpl to tests/test_proxy.py and move NativeInvocationHandler

adapt jnius_jvm_desktop to have access to java jnius package

e10ed056bb784693fa4344fd31e096bff540b4d3 authored almost 12 years ago by tshirtman <[email protected]>
fix issue with int/long not being accepted as Object in conversion

not sure it's the best fix, but seems to fix it

be312974f310cce149693d21a42823d176b9e37f authored almost 12 years ago by tshirtman <[email protected]>
add support for multiple signatures, add various tests

208806f63532e6dd4ff54efa7e5817a088ae60af authored almost 12 years ago by tshirtman <[email protected]>
added convert_python_to_jobject: don't do convert to java primitive/jvalue, but jobject. fixed array translation.

a2d0076e561b8f7cad9689fcd58ecfc31d7e1aca authored almost 12 years ago by Mathieu Virbel <[email protected]>
more work on the proxy, better argument conversion. shuffle() works on array <= 3. with 9 argument, it seem to call toArray(), and argument conversion is not great for [I

143ab371b6636991719a62c93df25a78eb964f71 authored almost 12 years ago by Mathieu Virbel <[email protected]>
debug

8915e9d558bfafac83622134c76c5350007cf086 authored almost 12 years ago by Mathieu Virbel <[email protected]>
fix for always returning an Object from invoke(). If it's a native primitive, create the corresponding native java.lang.<type>.

The current conversion is only for: int (java.lang.Long), bool (java.lang.Boolean), float (java.l...

9838ac928257019a712f4dab3c191762a3f105a5 authored almost 12 years ago by Mathieu Virbel <[email protected]>
add auto conversion for java.lang.Long/Integer/Float/Double/Short/Boolean/Byte/Character

f12abcbc882b682ad18a02726965c138fa1f0f9c authored almost 12 years ago by Mathieu Virbel <[email protected]>
various fix for java/python implementation. It finally start working, but still lot to do.

Use: make testimplem, and check the jnius/jnius_utils.pxi:test() function.

dcfe369f1e376aa22f265c853975a39b685041a3 authored almost 12 years ago by Mathieu Virbel <[email protected]>
some clarifications for java classes extended support

9b758a81c3fb3f176ad290483986b75021e38a82 authored almost 12 years ago by tshirtman <[email protected]>
put NativeInvocationHandler in jnius java package

5d143331a824b2ecc7efb10df7209d70cfd693f9 authored almost 12 years ago by Gabriel <gaby@oldkong.(none)>
some progress on proxy/invocation handler for wrapping python classes in java

21a6e0d4ceec640eaa55a9589f46d6c130cb2f6f authored almost 12 years ago by Gabriel <gaby@oldkong.(none)>
Merge branch 'master' into extend_class_support

70fa391458de49a7045ffdb0e54a354af12dd50b authored almost 12 years ago by Gabriel <gaby@oldkong.(none)>
-always- release the arrays, whatever is the iscopy boolean. According to the documentation, "The result is valid until the corresponding Release<PrimitiveType>ArrayElements() function is called". The iscopy boolean serve just for another case: "Since the returned array may be a copy of the Java array, changes made to the returned array will not necessarily be reflected in the original array until Release<PrimitiveType>ArrayElements() is called.Since the returned array may be a copy of the Java array, changes made to the returned array will not necessarily be reflected in the original array until Release<PrimitiveType>ArrayElements() is called."

f03dfdf886bb6d17c5dffb1e710a86b5ad96e95b authored about 12 years ago by Mathieu Virbel <[email protected]>
Merge pull request #42 from allfro/patch-1

Updated to support Mac OS X build support

844f8f48268c461ea8e518698b6cd3a895180750 authored about 12 years ago by Mathieu Virbel <[email protected]>
add an example of TTS

fdb785e516c59e0576baa5cc49238e34a703308c authored about 12 years ago by Mathieu Virbel <[email protected]>
add travis file

1a06bedd977e3afd6393f9bf5c4ca5688fcf4ff6 authored about 12 years ago by tshirtman <[email protected]>
Updated to support Mac OS X build support

4e6063ec82afd54fa17ea240cc524fcb048d11da authored about 12 years ago by allfro <[email protected]>
Merge pull request #41 from amirouche/master

added support for Python Java class objects as parameter of java methods that takes Java Class o...

383cdf57422008f5ab8c09e75b5095a87aca072f authored about 12 years ago by Gabriel Pettier <[email protected]>
added support for Python class as parameter of java methods that takes Java Class object as parameter

fcfb1e64a8ff56eaeeb74f15222c34aa1532a6b0 authored about 12 years ago by Amirouche Boubekki <[email protected]>
Merge pull request #40 from amirouche/master

Added basic tests that shows that autoclass of interface, nested enum and nested class is possible

dc50d40ebf1797a3348a380fb2288f19c7d5afee authored about 12 years ago by Gabriel Pettier <[email protected]>
added some tests for Interface, enums and nested enums in Interface

99a4c3be713073a18ef4f9dd16a5b07781039858 authored about 12 years ago by Amirouche Boubekki <[email protected]>
Merge pull request #37 from amirouche/master

Several fixes related to arrays being Java Object

200ef2390bbd0e5bb002653350dac9e8eaf2defd authored about 12 years ago by Gabriel Pettier <[email protected]>
convert arrays returned as Java Object to python list

c2160576474208b68a700869b0b670ee7e25a1fd authored about 12 years ago by Amirouche Boubekki <[email protected]>
proper indentation of according to emacs :>

4bcf4c5e16ed57217802762746e428d6818bb9aa authored about 12 years ago by Amirouche Boubekki <[email protected]>
convert list of integer, float and long to their equivalent Java Array object

4a6945accd9e90d641d75917c6ef0c724037a55f authored about 12 years ago by Amirouche Boubekki <[email protected]>
allow to use python list and tuple as Object params

20b4bd5d62941b2093e54946ad2b56272643bc23 authored about 12 years ago by Amirouche Boubekki <[email protected]>
no need to raise an exception here

78a68134aea8268ac1a5641e1d382d7b0fac3be1 authored about 12 years ago by Amirouche Boubekki <[email protected]>
Merge pull request #36 from amirouche/method-resolutions-fixes

Method resolutions fixes for the case where there are varargs

08a9d7888daffaedfb00ce47bb049ce949db125c authored about 12 years ago by Gabriel Pettier <[email protected]>
fix method resolution when they are varargs

b8ee0f8ab5c3f2621d332878bc02611d068e01ec authored about 12 years ago by Amirouche Boubekki <[email protected]>
no need to recompute return and args definition

c58de98b8ae045c6508e8c2d709a0c5c84b3439e authored about 12 years ago by Amirouche Boubekki <[email protected]>
use of iteritems to retrieve key and value

65d3d9bc121880dc21a3233fd01854467866f3ac authored about 12 years ago by Amirouche Boubekki <[email protected]>
Merge pull request #31 from GeorgS/patch-1

Fixed URI Bug ( uri.parse )

528120c550b7f4277ec4205bd9a043e2d5d7d5d5 authored about 12 years ago by Gabriel Pettier <[email protected]>
Fixed URI Bug

e58a7cf82fe31cc6e9f2bf3516dcd7f19c01e493 authored about 12 years ago by Georg Schelkshorn <[email protected]>
start to add native invocation handler

+fix badly formated string

52aea7efb8f0810b9473c656331364aa47f4d074 authored over 12 years ago by tshirtman <[email protected]>
Merge branch 'master' into extend_class_support

Conflicts:
jnius/jnius_export_class.pxi

82b703c0c1891eccc9a2207021b3faa755900fcc authored over 12 years ago by tshirtman <[email protected]>
Merge pull request #24 from apalala/classpath

Allow for '*' wildcards in CLASSPATH+(some tipos).

4ff916dfdf07021ce7b38e527081bc08ee719507 authored over 12 years ago by Gabriel Pettier <[email protected]>
partial work on extending java classes from python

non-functionnal!

7ac9bcd3d78b877d56fab6e15f5493f449cd0a8d authored over 12 years ago by tshirtman <[email protected]>
Update README.md

2ca5cee5efbfeef52e1944b939f39bce75338eaf authored over 12 years ago by Gabriel Pettier <[email protected]>
Merge pull request #26 from kivy/varargs_support

Varargs support

f83827353be4fa437cea39f8f857bf013b413406 authored over 12 years ago by Mathieu Virbel <[email protected]>
varargs works!

at least for printf, and probably for other methods accepting Strings

need more tests cases!

858bff6e25043426d394bf18f98f71c6269ba7c5 authored over 12 years ago by gabriel.pettier <[email protected]>
Doesn't break the tests anymore, add test for varargs, not passing (yet)

708b2d075fd0d1daa29cffc94b19cd38d80c0d73 authored over 12 years ago by gabriel.pettier <[email protected]>
work on varargs support

17258f100d111c1c06928987ca36c8ac12ae09dc authored over 12 years ago by gabriel.pettier <[email protected]>
Allow for '*' wildcards in CLASSPATH+(some tipos).

9bd899e371067ce56987a3afe33c58d6c68324ea authored over 12 years ago by Juancarlo Añez <[email protected]>
Merge pull request #20 from nklever/patch-1

Typo in line 39

3651d1ac2099ccbaae4f95ba89faa3b9a5d5cb5e authored over 12 years ago by Gabriel Pettier <[email protected]>