Skip to content

Comment on Pyjnius: Accessing Java classes from Python

Comments

Looks good!

Has anyone tried this for accessing a Java Socket API? (e.g. Interactive Brokers API) Im currently using Jython but would love to switch to "real" Python, unfortunately i am still a noob when it comes to get these things working..

@jpdus Will you elaborate on why you are eager to ditch Jython in favor of CPython? I guess I have a soft spot for Jython.

Overall this project looks very interesting- Can't wait to go through the source code at https://github.com/kivy/pyjnius to see how this works under the hood.

Cheers.

@jaytaylor The main reason for my part is that most/all my projects are pure python so far and im way more familiar with (C)Python and its libraries (numpy/scipy fe), dependencies, etc. than i am with Java. I like Jython too, but if i had the opportunity to do everything in pure Python i would ditch it nevertheless!

Mostly JNI, plus using our core class to use the java.reflect and discover methods and fields (you can't do it in JNI :/)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.