0

I'm very comfortable with Swift, Obj-C, and Javascript but for a new project I need to use a library that is only available in Python. How do I integrate python or python scripts into an OSX project?

There is the option of going PyObjc or pyapp to build the entire application but that seems extravagant given that I only need Python for a small portion of that program.

It seems the preferable route would be to push Python to the cloud. Is there a pre bundled solution for doing this or would it require me to set up my own environment?

asked Jun 9, 2016 at 22:41
1

2 Answers 2

2

If the amount of data that needs to be passed is small, then for an OS X application, one can run some Python code via a system() shell command from Swift or Objective C code.

For iOS, unless you want to build a Python interpreter into your app, it may be best to push running the Python library and scripts to a server "in the cloud".

answered Jun 11, 2016 at 18:00
1
  • That's exactly what I was thinking. I'm just not sure the tool kit to do that. I often write cloud code in js, just not Python. Any stack suggestions? Commented Jun 12, 2016 at 15:39
0

For ways to embed Python code, see:

answered Dec 18, 2016 at 0:14

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.