Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is that possible to run a python built program on iOS as a static lib?

I have some AI code developed in python 2.7 that uses non-standard libraries.

I intend to compile it to work with my iPhone app.

I wouldn't like to re-program everything so, is that a way to compile my python code + all dependencies into a static file so I can call it from my iOS app as a function?

like image 637
marcelosalloum Avatar asked Sep 18 '13 18:09

marcelosalloum


People also ask

Can Python run on 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.

What can you do with Pythonista?

You can write scripts that access sensor and location data, your photo library, contacts, reminders, the clipboard, and much more. You can also use Pythonista to build interactive multi-touch experiences, custom user interfaces, animations, and 2D games.


1 Answers

kivy can do it

http://kivy.org/docs/guide/packaging-ios.html

also maybe look at https://itunes.apple.com/us/app/python-for-ios/id485729872?ls=1&mt=8

although I doubt you can just compile your existing project into it... you will need to re-write at least part of it and you can only use pure python libraries (kivy)

like image 98
Joran Beasley Avatar answered Oct 09 '22 22:10

Joran Beasley