# Integrating a python code with kotlin

**URL:** <https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639>\
**Category:** Native\
**Created:** [April 16, 2022, 12:37pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639 "2022-04-16T12:37:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dagim](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@dagim](https://discuss.kotlinlang.org/u/dagim)\
**Post date:** [April 16, 2022, 12:37pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/1 "2022-04-16T12:37:42Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![darksnake](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/darksnake/32/2479_2.png) [@darksnake](https://discuss.kotlinlang.org/u/darksnake)\
**Post date:** [April 16, 2022, 3:03pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/2 "2022-04-16T15:03:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dagim](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@dagim](https://discuss.kotlinlang.org/u/dagim)\
**Post date:** [April 18, 2022, 10:35pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/3 "2022-04-18T22:35:37Z")

</div>

thanks for the help

---

<div class="post-metadata">

**Author:** ![Gelassen](https://avatars.discourse-cdn.com/v4/letter/g/f04885/32.png) [@Gelassen](https://discuss.kotlinlang.org/u/Gelassen)\
**Post date:** [August 21, 2023, 4:42am UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/4 "2023-08-21T04:42:23Z")

</div>

I have been looking for integration options for python on Android kotlin/java and found [chaquopy](https://chaquo.com/). There is no much other options and this one looks the most promising.

---

<div class="post-metadata">

**Author:** ![ctrue](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ctrue/32/10648_2.png) [@ctrue](https://discuss.kotlinlang.org/u/ctrue)\
**Post date:** [May 2, 2024, 2:13am UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/5 "2024-05-02T02:13:57Z")

</div>

For Python on Android, there is also [Kivy](https://github.com/kivy/).

---

<div class="post-metadata">

**Author:** ![pythonh05](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pythonh05/32/11452_2.png) [@pythonh05](https://discuss.kotlinlang.org/u/pythonh05)\
**Post date:** [September 1, 2026, 10:29pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/6 "2026-09-01T22:29:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pythonh05](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pythonh05/32/11452_2.png) [@pythonh05](https://discuss.kotlinlang.org/u/pythonh05)\
**Post date:** [September 1, 2026, 10:31pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/7 "2026-09-01T22:31:31Z")

</div>

try check this out for that solution [Kotlin and Python](https://discuss.kotlinlang.org/t/kotlin-and-python/31214)

---

<div class="post-metadata">

**Author:** ![pythonh05](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pythonh05/32/11452_2.png) [@pythonh05](https://discuss.kotlinlang.org/u/pythonh05)\
**Post date:** [September 1, 2026, 10:32pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639/8 "2026-09-01T22:32:36Z")

</div>

bro kindly luk here and get the solutions to all those problem [Kotlin and Python](https://discuss.kotlinlang.org/t/kotlin-and-python/31214)
