CPython from Java?

I need to call CPython code from Java. What tools / APIs / libraries are there to help me do this?

Jython is not an option, as Python code is highly dependent on numpy.

edit 1: The function main()must be Java, not Python (i.e. I need to embed CPython in Java, not vice versa).

edit 2: I should also mention that I will pass large numeric arrays between Java and Python, and therefore a solution that brings them to the same process space would be preferable (but not required).

+3
source share
2 answers

Jepp, CPython Java. .

edit: Python 2.4, 2.5 2.6. Linux/Unix .

+4

, CPython. , , Java ( JNI?)

-1

Source: https://habr.com/ru/post/1776906/


All Articles