PylibKit: Python as a Swift SDK
CPython + curated wheels, wrapped in Swift async APIs
PylibKit: Python as a Swift SDK – CPython and curated wheels wrapped in Swift async APIs
Summary: PylibKit enables iOS/macOS apps to use Python libraries, including C-extension and Rust-backed wheels, via a single Swift XCFramework. It provides Swift async/await APIs with native Swift types while isolating Python internals from app code.
What it does
PylibKit bundles CPython and pinned wheels, generates Swift-first façades, runs Python on a dedicated thread, enforces asyncio safety, and produces signed, reproducible XCFrameworks for seamless Swift integration.
Who it's for
It targets Swift developers building iOS/macOS apps who want to leverage Python libraries without managing Python packaging, threading, or signing complexities.
Why it matters
It eliminates the overhead of embedding Python by treating it as a versioned SDK dependency, allowing teams to focus on app features instead of toolchain management.