Documentation
From your first call to a shipped app.
Install the runtime, choose an execution model, and keep building.
New to SwiftPython?
Make your first call. ↗
Package setup, an in-process call, and a worker example.
Ready to distribute?Package your app. ↗
Runtime, worker, Python dependencies and signing.
Public API guide
11 chaptersShowing all 11 chapters
0102030405060708091011
Core runtime
Run Python in your app process.
Data & shared memory
Convert values, retain buffers and share tensors.
Concurrency & handles
Keep Python identity and ownership explicit.
Worker pools
Run work in separate Python processes.
Streaming
Consume generators and progress from Swift.
Task graphs
Order dependencies and run independent work.
Python → Swift callbacks
Let Python use services owned by your app.
Python packages
Wrap package calls in your own Swift API.
Linux sandboxes
Run tools and Python in isolated tenants.
Full-duplex sessions
Send, receive and control a running session.
Audio & Metal
Connect native media with Python workloads.
No matching chapters. Try “worker”, “data” or “audio”.