Integrating Python code in NET Java

0 votes
Team,

I would like to know the Python code deployment formats & thoughts around how to integrate them in other technologies like .NET / Java. I would like to keep “Hosting Python code library as a Service / REST API” as a last preferable option to explore.   

Thanks in advance.

-- Rajesh
Jul 17, 2020 in Python by anonymous
• 120 points
456 views

1 answer to this question.

0 votes

Hi,@Rajeshmthakkar,

Jython is a Python interpreter implemented in Java. It can be fully integrated into existing Java applications; alternatively, Python applications can be compiled into a collection of Java classes. Python programs running on the Jython virtual machine have full access to the Java classes and APIs.

More about Jython can be found here https://wiki.python.org/jython

Py4J enables Python programs running in a Python interpreter to dynamically access Java objects in a Java Virtual Machine. Methods are called as if the Java objects resided in the Python interpreter and Java collections can be accessed through standard Python collection methods. Py4J also enables Java programs to call back Python objects. To dig more into this her you go https://www.py4j.org/index.html

JPype is a Python module to provide full access to Java from within Python. It allows Python to make use of Java only libraries, exploring and visualization of Java structures, development, and testing of Java libraries, scientific computing, and much more. By gaining the best of both worlds using Python for rapid prototyping and Java for strongly typed production code, JPype provides a powerful environment for engineering and code development.

IronPython is an implementation of the Python programming language on the .NET Framework. It supports an interactive interpreter with a fully dynamic compilation.

answered Jul 27, 2020 by Gitika
• 65,910 points

Related Questions In Python

0 votes
1 answer

Is it possible to access .NET code written in C# from Python?

If you want to mainly base your ...READ MORE

answered Jul 18, 2019 in Python by Arvind
• 3,040 points
1,266 views
0 votes
1 answer

How to Convert usual text to executable machine code in python

what you are looking for is a ...READ MORE

answered Oct 1, 2018 in Python by Priyaj
• 58,090 points
2,161 views
0 votes
1 answer

How to correctly return an a dictionary as an output in zappier code using python?

David here, from the Zapier Platform team. ...READ MORE

answered Dec 3, 2018 in Python by charlie_brown
• 7,720 points
1,359 views
0 votes
1 answer

Execute PHP code in Python

Try the following Code: import subprocess # if the ...READ MORE

answered Dec 11, 2018 in Python by SDeb
• 13,300 points
13,432 views
0 votes
1 answer

How can I import tensorflow libraries in my Python code?

You are doing it wrong as tf is not ...READ MORE

answered Dec 31, 2018 in Python by charlie_brown
• 7,720 points
5,872 views
0 votes
1 answer

Confusion in Python Pandas code

I have added the explanation of code ...READ MORE

answered Jan 26, 2019 in Python by Omkar
• 69,210 points
1,503 views
+6 votes
28 answers

Which of them is better between Java vs Python? And why?

Python. Don’t even think about it to select ...READ MORE

answered Feb 1, 2019 in Career Counselling by navdeep
• 240 points
4,328 views
0 votes
3 answers
0 votes
1 answer

What is the purpose of ​#!/usr/bin/python​on the first line in the above code?

Hey, @Roshni, By specifying #!/usr/bin/python you specify exactly ...READ MORE

answered Jun 23, 2020 in Python by Gitika
• 65,910 points
10,390 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP