Skip to content

Examples

Real-world Python packages built with ApplePy, each wrapping a different Apple framework.

Showcase Projects

Package Framework Install Source
SwiftKeychain Security (Keychain) pip install swiftkeychain GitHub
PyNatural NaturalLanguage (NLP) pip install pynatural GitHub
PyCoreML CoreML (ML inference) pip install pycoreml GitHub

All three are available on PyPI and can be installed with pip install.

SwiftKeychain

Secure credential storage using the macOS Keychain — set, get, delete, and find passwords from Python.

import swiftkeychain as kc

kc.set_password("myapp", "user@email.com", "s3cret")
pw = kc.get_password("myapp", "user@email.com")  # → "s3cret"

Full documentation

PyNatural

Apple's NaturalLanguage framework — language detection, tokenization, POS tagging, NER, sentiment analysis, and word embeddings.

import pynatural as nl

nl.detect_language("Bonjour le monde")  # → "fr"
nl.tokenize("東京は美しい都市です")       # → ["東京", "は", "美しい", "都市", "です"]

Full documentation

PyCoreML

Run CoreML models from Python — load .mlmodel files, make predictions, and control compute units.

import pycoreml as ml

model = ml.load_model("MyModel.mlmodel")
result = ml.predict(model, {"input": 42.0})

Full documentation