Build tool for ApplePy — scaffold, build, and publish Swift-powered Python packages
Project description
🍎 applepy-cli
Build tool for ApplePy — scaffold, build, and publish Swift-powered Python packages.
The equivalent of maturin for PyO3, but for Swift.
Install
# pip
pip install applepy-cli
# uv
uv pip install applepy-cli
Quick Start
applepy new myproject
cd myproject
applepy develop
python myproject/examples/demo.py
# → Hello, World! 🍎
Commands
| Command | Description |
|---|---|
applepy new <name> |
Scaffold a new project with Swift source, pyproject.toml, demo |
applepy develop |
Build Swift extension and install into current environment |
applepy build |
Build a distributable wheel (.whl) |
applepy publish |
Publish to PyPI (or --test for TestPyPI) |
applepy new Options
applepy new myproject # Uses GitHub ApplePy (default)
applepy new myproject --local # Uses local ApplePy checkout
applepy new myproject --applepy-path ../ApplePy # Explicit local path
applepy new myproject -d "My description" # Set project description
Generated Project Structure
myproject/
├── pyproject.toml
├── setup.py
├── README.md
├── myproject/
│ ├── __init__.py
│ └── examples/demo.py
└── swift/
├── Package.swift
└── Sources/MyProject/MyProject.swift
Requirements
- macOS (Apple frameworks require macOS)
- Swift 6.0+ toolchain
- Python 3.10+
License
BSD-3-Clause © Jagtesh Chadha
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
applepy_cli-0.1.2.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file applepy_cli-0.1.2.tar.gz.
File metadata
- Download URL: applepy_cli-0.1.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aae6dfaffc3b64a1dd55b7a2097d21b6c79ad2e49ca12fe2cfb70da1a7d26cf8
|
|
| MD5 |
e305446200eca3892fc650239aa3cc1d
|
|
| BLAKE2b-256 |
cb1f169700b79196874e9304708e9d7ac7649c5087336bcbe3564b211a06f44e
|
File details
Details for the file applepy_cli-0.1.2-py3-none-any.whl.
File metadata
- Download URL: applepy_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20f61a9e2d11d2ae794e777196983fe8ba6f55d47f95809acfb8d89186300eee
|
|
| MD5 |
ea2a41ab839e9fc4c95c5970122eae38
|
|
| BLAKE2b-256 |
ca17cc3b31e176315f0f8c358c1cbac79d421fbacfb3922b90dfd16d7a2b7a0d
|