Integrating a python code with kotlin

Hello, I recently wrote a python program and I wanted to integrate the program with my Kotlin application and anyone could tell me how can I do that ?

2 Likes

You can call it as external process: https://www.baeldung.com/java-lang-processbuilder-api.

2 Likes

thanks for the help

I have been looking for integration options for python on Android kotlin/java and found chaquopy. There is no much other options and this one looks the most promising.

For Python on Android, there is also Kivy.

bro i tried chaqoupy, but its a mess, i rather did it with fastapi and called the api in my kotlin app

try check this out for that solution Kotlin and Python

bro kindly luk here and get the solutions to all those problem Kotlin and Python