Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use Python to write cross-platform apps for both iOS and Android?

Is it possible to use Python to write cross-platform apps for both iOS and Android

like image 777
user1404932 Avatar asked May 19 '12 10:05

user1404932


People also ask

Can you make Android and iOS apps with Python?

Fundamentally, iOS and Android do not support interpreter-type languages. It means you can't run the Python app natively. This is why it was not common to create mobile apps for Python earlier.

Can you make cross-platform apps with Python?

An option is kivy: a cool cross platform Python framework which works for Android, Win7, Linux, MacOSX and iOS.

How can I develop an app for both Iphone and Android?

Native Script NativeScript is a free and open-source framework to develop a mobile application for both Apple iOS and Google's Android platform. It allows you to build native mobile apps in both TypeScript and JavaScript and using Angular and Vuejs.

Can you develop for Android and iOS at the same time?

Developing iOS and Android Apps SimultaneouslyCross-platform development delivers the ability to code once and build everywhere. It saves a lot of time, even if you only plan to develop for iOS and Android.


2 Answers

An option is kivy: a cool cross platform Python framework which works for Android, Win7, Linux, MacOSX and iOS.

Update: kivy project is growing daily, now supports also Raspberry Pi

like image 167
piertoni Avatar answered Sep 18 '22 03:09

piertoni


For Android Google provides something called ASE (Android Scripting Environment) which allows scripting languages (Python included) to run on Android. More details here

For iOS, it might be quite a bit more complicated (and I'd advise to check the latest version of iOS SDK agreement to check the current state of the law - apple tends to allow & disallow such apps periodically). For the technical part you might need to interface between Python & Objective C as well as do some wizardry to statically link all the libraries Python requires; full details are available here. Another approach for iOS Python development would be to embed a Python interpreter into you app and distribute your Python script with it (so to play nicely with Apple rules). In this case your Python application would be a Python interpreter which is packaged with your script and runs it automatically.

Second option is to use Kivy framework(kivy.org) - it's a framework to write touch-friendly applications in Python and package them for different platforms. It's had Android support for a while, and recently added iOS support

like image 44
Raheel Avatar answered Sep 19 '22 03:09

Raheel