The toolkit
Templates and a CLI for adding Python to Apple platform projects.
- Combined Swift project templates with a Python CLI.
- Worked on Python runtime bundling, code signing, and notarization.
- Built an early beta alongside usage documentation.
Detailed development notes
Timeline
2025.01 - (in progress)
- Early beta: developing SwiftPM templates, a CLI, and web documentation in parallel
- Experimenting with macOS distribution, signing, and notarization
Tools & skills
Skills
- Swift template design
- Python-based CLI tooling
- GitHub Actions
- Codesign/Notarization pipeline
Motivation
Can we make Python easier to integrate into Apple platform projects? Building on my thread management and Python runtime bundling experience from Applepie-RPC, I wanted to make these capabilities available to anyone through "templates + CLI." The workflow aims to bootstrap new projects in one step by bundling Swift templates and Python scripts.
What I learned
- Designed a pipeline for generating and extending SwiftPM templates from the CLI
- Swift <-> Python bridge (Transcript) design, runtime/package bundling
- Automating codesign/notarization with GitHub Actions while working on documentation and deployment
- Documented how to embed the Python runtime and packages in macOS apps, including signing and notarization
Results
- CLI & Templates: Pylibkit — https://pylibkit.org
- Website/Docs: https://pylibkit.org
- 2025 · Open Source