Back to browse
GitHub Repository

Write Python extension modules in Swift — PyO3 for Swift

5 starsSwift

ApplePy – Embed and Call Swift from Python (Like PyO3, but for Swift)

by sheepscreek·Apr 12, 2026·2 points·2 comments

AI Analysis

●●●BangerZero to OneWizardryNiche Gem

PyO3 for Swift with compile-time GIL enforcement and direct CoreML access.

Strengths
  • Swift macros eliminate boilerplate for @PyFunction, @PyClass, @PyMethod bindings
  • GILGuard provides compile-time scope enforcement preventing GIL escape errors
  • Comprehensive type mapping including tuples, Optionals, and Swift enums to Python
Weaknesses
  • Zero stars at launch suggests untested code and unknown production stability
  • macOS-only limitation restricts audience to Apple ecosystem developers
Target Audience

Python developers on macOS needing Apple framework access, Swift developers building Python bindings

Similar To

PyO3 · swift-python · PythonKit

Similar Projects

Developer Tools●●Solid

BustAPI Back

Python syntax on Rust Actix core reaches 20k RPS, but Mojo and uv already address Python speed.

WizardryBig Brain
ZOROX
203mo ago