Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import Python code and library in Swift [duplicate]

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?

like image 781
Dominik Kovac Avatar asked Apr 01 '16 04:04

Dominik Kovac


People also ask

Can you combine Python and Swift?

Swift For TensorFlow supports Python interoperability. You can import Python modules from Swift, call Python functions, and convert values between Swift and Python.

Does PythonKit work for iOS?

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.


1 Answers

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

like image 127
Wes Avatar answered Oct 12 '22 23:10

Wes