swift, python bridges

Hi, Is it possible to build an app with swift that controls machines run with python? If yes How? Thank you.

Replies

… machines run with python?

What do you mean by “machines run with python”? What sort of machines are you talking about? And how does one communicate with them?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi, and thank you for answering. So am building a vacuum robot and I want to build an app to control it, the hardware all written with Paython. Is there is any way to build a bridge between the two languages? Sorry am kinda new on swift.

Is there is any way to build a bridge between the two languages?

In the context of languages, bridge usually means to transfer data or control between two languages in the same process. For example, PyObjC lets you bridge between Python and Objective-C, or Swift strings are bridged to NSString.

In your case, however, it seems that the two languages are running on different hardware (Python on the robot, Swift on iOS). Is that right?

If so, what you’re talking about here is communication, or perhaps even networking. To that end, what communication protocols does your robot speak? Is it Bluetooth LE? Or does it have a full TCP/IP stack?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"