Tool to create PySwiftKit based Apps
First, add the Homebrew tap:
brew tap PythonSwiftLink/toolsThen install PSProject:
brew install psprojectTo upgrade PSProject:
brew update
brew upgrade --formula psprojectAlternatively, you can build PSProject from source using Swift Package Manager.
git clone https://github.com/Py-Swift/PSProject
cd psproject
swift build -c release --disable-sandbox --product PSProjectintel
.build/x86_64-apple-macosx/release/PSProjectarm64
.build/arm64-apple-macosx/release/PSProjectFirst, create a new project which will generate a pyproject.toml file:
psproject init HelloWorldNavigate to the new project directory:
cd HelloWorldOr open it in VS Code:
code HelloWorldThe generated pyproject.toml will contain default configuration. To create a Kivy-based app, add Kivy to the project dependencies and configure the PSProject backends:
[project]
name = "helloworld"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"kivy"
]
[tool.psproject]
app_name = "HelloWorld"
backends = [
"kivyschool.kivylauncher"
]
cythonized = false
extra_index = []
pip_install_app = false
[tool.psproject.ios]
backends = []
extra_index = [
"https://pypi.anaconda.org/beeware/simple",
"https://pypi.anaconda.org/pyswift/simple",
"https://pypi.anaconda.org/kivyschool/simple"
]Generate the Xcode project:
psproject create xcodeTo update the Xcode project's site-packages:
psproject update site-packagesMIT License - See LICENSE file for details