Mayank
Mayank

Reputation: 5728

Calling jython code from python

I was writing some code in python that needs to write/read to HBase. I thought of using HappyBase to interact with the HBase before I found out that it is not yet for python3.

What I'm thinking is to write a tiny package in jython to interact with the HBase. Rest of the business logic will remain in Cpython.

Is it possible to call a jython code from python. I want my code to be on CPython except from the section that should interact with HBase

I would be highly grateful if you could give me some hints/examples on how to do that? Do I need specific version of jython interpreter to mix with python3?

Edit: Could anybody please recommend how should HBase be accessed using python3?

Upvotes: 4

Views: 1358

Answers (1)

Fred Foo
Fred Foo

Reputation: 363567

In my experience, Pyro4 is the easiest CPython/Jython interop package.

Upvotes: 4

Related Questions