iOSの(多分)NativeなAPIを自由自在に叩く
https://itunes.apple.com/jp/app/python-2.7-for-ios/id485729872?l=en&mt=8
昔_ctypes止まりで使えなかったctypesが、今使えるようになってて、
import ctypes libc = ctypes.CDLL('libc.dylib') print libc.printf('ok') # 2 will be printed as outputed bytes
とか
# Original source for Mac OS X: # http://d.hatena.ne.jp/moriyoshi/touch/20101113/1289663233import ctypes kCFUserNotificationNoteAlertLevel = 1 kCFStringEncodingUTF8 = 0x08000100 dll = ctypes.CDLL('/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation') title = dll.CFStringCreateWithCString(None, 'Hey', kCFStringEncodingUTF8) message = dll.CFStringCreateWithCString(None, 'Hello, binary world.', kCFStringEncodingUTF8) dll.CFUserNotificationDisplayNotice(ctypes.c_double(0.),kCFUserNotificationNoteAlertLevel,None, None, None, title, message, None) # Native popup will be shown
が動くのでかなり胸熱。