Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python for IOS or Android

I have been looking at the different packages for python on android and IOS as i am going to be upgrading my phone soon.

However, i dont know which OS to go with. For android they have the SL4A package, but for IOS they have their equivilent. However, im stuck on which to go for. Does anyone have any suggestions for this?

I know its kind of a stupid question, however im just getting into mobile development since they allowed scripting languages on the mobile platform.

like image 983
IT Ninja Avatar asked Mar 31 '12 17:03

IT Ninja


People also ask

Does Python support Android and iOS?

On the other hand, neither Android nor iOS support interpreted languages, which means they can't natively run Python apps. That's where a number of frameworks bridge the gap to allow Python apps to be run on mobile devices with a native look and feel.

Can Python be used for iOS?

Python for iOS and iPadOSPyto also provides a complete development environment for running Python 3 including many third-party libraries and system integration on an iPad or iPhone.

Can Python be used for Android?

Python. Python can be used for Android App Development even though Android doesn't support native Python development. This can be done using various tools that convert the Python apps into Android Packages that can run on Android devices.

Is Python suitable for mobile apps?

It is probably the next big thing happening in the Android world. Even though Java is my preferred language, Kotlin has got native support, and many IDEs like IntelliJ IDEA and Android Studio is supporting Kotile for Android development. In conclusion, Python is not used for mobile development because of speed.


2 Answers

The python support for Android is pretty good, but still under development. You can do things that a scripting language can but not the stuff that Python as a OO language can.

Example:- When you go through the api reference here, you can see that one can write scripts to do basic to complex tasks, but, in a restrictive way. You can never build full blown apps, and even if you do, it will always be slow because the SLA4 is just another layer on top of few other layers in the Android hierarchy. There have been a lot of fun stuff that has been done using Python scripting, example: http://www.wired.com/gadgetlab/2010/07/nexus-one-phone-rides-a-rocket-up-28000-feet/#ixzz0v7LFT7ay (A bit over-board and crazy, but awesome nonetheless.)

I don't have much experience on an IPhone to pass on such comments. But, an IPhone is expensive. You can always get a used Nexus phone and do all kinds of Python hacking/scripting. All depends on your budget and your need.

That is all.

like image 145
RandomGuy Avatar answered Oct 27 '22 09:10

RandomGuy


I had been on the lookut for Python on iOS for sometime. About 2-months ago, one one released to the iTunes app store -- http://pythonforios.com/ and it is fantastic! It includes the complete set of Python 2.7.2 documentation -- which alone is worth the $3 price.

It's a bit of a challenge to code any serious apps (which I suspect is the result of the developer having to comply w/ Apple's app guidelines), but it is a perfect place to test ideas from a train or airport (when you are without a laptop).

1 caveat -- I've only tried it on an iPad. It could be a bit cramped screen real-estate on an iphone.

like image 26
user590028 Avatar answered Oct 27 '22 08:10

user590028