I want write a Skype application for OS X in Swift, but that application needs the skype4com library. I find that library in Python, which works on OS X.
Is it possible to import Python code into Swift?
Swift For TensorFlow supports Python interoperability. You can import Python modules from Swift, call Python functions, and convert values between Swift and Python.
Pythonkit does not support iOS for the same reason and has not been tested for the same. Save this answer. Show activity on this post. You can use my fork of PythonKit.
Best bet is probably going to be the python framework: https://developer.apple.com/library/ios/technotes/tn2328/_index.html
Also check this out, very similar to your question: How to call Python code from an existing iOS project written in Swift
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With