Live data from Hacker News

Show HN: Python on iOS Native Apps

github.com

1–10 of 24 posts

Re: Show HN: Python on iOS Native Apps

#2
This project is a base for which to add a python interpreter to a swift iOS project. It allows us to call python functions and get the resulting string, and then use the result in swift code (to update native widgets, etc.)

As I'm a beginner in swift and iOS, I've documented all the process at https://github.com/joaoventura/pybridge-ios/blob/master/docs....

I hope this allows me to share all the Python code in my Android app (https://play.google.com/store/apps/details?id=com.flatangle....), which uses the same technique but for android (https://github.com/joaoventura/pybridge)

Re: Show HN: Python on iOS Native Apps

#3
post #2

This project is a base for which to add a python interpreter to a swift iOS project. It allows us to call python functions and get the resulting string, and then use the result in swift code (to update native widgets, etc.) As I'm a beginner in swift and iOS, I've documented all the process at https://github.com/joaoventura/pybridge-ios/blob/master/docs... . I hope this allows me to share all the Python code in my An…

Will Apple approve apps that use this?

Re: Show HN: Python on iOS Native Apps

#4
post #3
post #2

This project is a base for which to add a python interpreter to a swift iOS project. It allows us to call python functions and get the resulting string, and then use the result in swift code (to update native widgets, etc.) As I'm a beginner in swift and iOS, I've documented all the process at https://github.com/joaoventura/pybridge-ios/blob/master/docs... . I hope this allows me to share all the Python code in my An…

Will Apple approve apps that use this?

As long as there is no downloading, side-loading or user editing of python code in the app then Apple doesn't care.

There are limited exceptions for apps that teach programming, such as Pythonista.

Re: Show HN: Python on iOS Native Apps

#7
post #5

Does anyone know the latest on the Swift-Python bridge from the TensorFlow team[0]? Is this still in development or usable for iOS apps? [0] https://www.tensorflow.org/swift/tutorials/python_interopera...

I believe that you need the S4TF fork of the Swift compiler. It might be doable to swap it into Xcode as part of an alternate toolchain, but it's not likely to be easy.

Re: Show HN: Python on iOS Native Apps

#8
post #5

Does anyone know the latest on the Swift-Python bridge from the TensorFlow team[0]? Is this still in development or usable for iOS apps? [0] https://www.tensorflow.org/swift/tutorials/python_interopera...

I believe that you need the S4TF fork of the Swift compiler. It might be doable to swap it into Xcode as part of an alternate toolchain, but it's not likely to be easy.

Note that Apple will not let you put an application built with an alternative toolchain on the App Store.

Re: Show HN: Python on iOS Native Apps

#9
post #5

Does anyone know the latest on the Swift-Python bridge from the TensorFlow team[0]? Is this still in development or usable for iOS apps? [0] https://www.tensorflow.org/swift/tutorials/python_interopera...

This [0] is an equivalent/tracking project. I would be very interested if it gains iOS support.

[0] https://github.com/pvieito/PythonKit

Post reply on HN