r/PythonLearning • • Nov 16 '25

Discussion In what ways python's code is used in mobile and desktop apps ?

2 Upvotes

6 comments sorted by

6

u/FoolsSeldom Nov 16 '25

Not sure, I follow. Python is just a programming language, you can use it to write programmes.

Obviously, web apps will work on any device, the more responsive the design (or better targeted for mobile devices) the better it will fit specific mobile devices. That applies regardless of the programming language used.

The primary languages for IoS and Android are Swift and Kotlin, respectively. You cannot create a Python app to work these directly, but need to use something like Kivy or Beeware. Flutter is another option, via flet. There are apps in the respective app stores using all of these approaches.

1

u/Temporary_Pie2733 Nov 17 '25

I think he’s asking about how the code actually gets executed. Python isn’t typically built-in to a web browser like JavaScript is, and mobile devices don’t usually have Python pre-installed like a desktop/laptop does. 

1

u/FoolsSeldom Nov 17 '25

Ok. I think that's largely addressed.

As Android is based on Linux, and termux offers a Linux sandbox, I'm happy compiling Python source code there and running Python for my own apps. (Owing to certain Android security controls and environment specifics, there are some workarounds required that prevent some Linux tools and scripts working directly.)

The locked down nature of IoS (Unix based) doesn't offer the same freedom but you can run pure Python and a few select binary packages in apps.

Will be interesting to see if OP responds and clarifies.

2

u/secretstonex Nov 17 '25

A lot of big mobile apps use Python on the back end. Youtube, Instagram, Reddit, Spotify. The Dropbox desktop is all python. pgAdmin is python/django

I prototype a lot of apps in Python and turn some into full GUI apps if they are not too complicated.

1

u/Zamdongo Nov 16 '25

I did a noteapp very simple, I used Kivy and kivymd ver 2.0.1dev, wich I don't recommend, I would use another kivy version has more options, you have to hardcode everything, and not everything works according to documentation, is the best option for now.