[swift-dev] Bridging Python Packages to Swift
Brent Royal-Gordon
brent at architechies.com
Sat Jul 2 16:43:29 CDT 2016
> I lack the experience the rest of the people in this list probably have being an undergraduate student but I would love to participate in this language because I see its potential.
>
> With that being said, one of the biggest advantages python has is its immersive number of packages that is appealing to anyone that writes scripts. Swift is evolving into a scripting language as well but it lacks the libraries python has.
>
> I suppose its worth bridging python packages with swift until Swift is grown up to take over the world :D
>
> Can anyone help me figure out how thats done ?
I'm no Pythonista, but this is where I'd start: <https://docs.python.org/3/extending/index.html> Swift and Python can both call into C, so pretty much any bridge between the two is going to start by using Python's C API to embed a Python interpreter in a Swift library.
--
Brent Royal-Gordon
Architechies
More information about the swift-dev
mailing list