Skip to content

johnlinvc/swiftpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiftpy : embedding Python in Swift

Requirements

  • OSX 10.11.4
  • Swift toolchain swift-DEVELOPMENT-SNAPSHOT-2016-05-31-a-osx
  • Python 2.7 (system Python)

Building

git checkout develop
./build.sh

run demo

./build.sh
.build/debug/SwiftpyDemo

Features

  • run python code from string
  • load python module
  • call function on python objects with normal args(no kargs)
  • convert String between Swift & Python
  • getting/setting attr from object

Usage

see Demo

Todos

  • run python code from file
  • automagic conversion between Swift & Python
  • call function with keyword args
  • test system

About

Embbeding python in swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages