Stubs for the Pythonista iOS API. This allows for better error detection and IDE / editor autocomplete.
Install using your preferred package manager:
# Using uv (recommended)
uv add pythonista-stubs
# Using pip
pip install pythonista-stubs
You can now develop from your computer editor with proper typing and completions.
Module | Status | Documentation |
---|---|---|
appex | ✔ | API Docs |
canvas | WIP | API Docs |
cb | WIP | API Docs |
clipboard | ✔ | API Docs |
console | ✔ | API Docs |
contacts | ✔ | API Docs |
dialogs | ✔ | API Docs |
editor | ✔ | API Docs |
keychain | ✔ | API Docs |
linguistictagger | ✔ | API Docs |
location | ✔ | API Docs |
motion | ✔ | API Docs |
notification | ✔ | API Docs |
objc_util | WIP | API Docs |
photos | ✔ | API Docs |
reminders | ✔ | API Docs |
scene | ✘ | API Docs |
sound | ✔ | API Docs |
speech | ✔ | API Docs |
✘ | API Docs | |
ui | WIP | API Docs |
- PEP 484 -- Type Hints
- PEP 561 -- Distributing and Packaging Type Information
- PEP 3107 -- Function Annotations
- VSCode: Ensure the Python extension is using the correct interpreter where pythonista-stubs is installed
- PyCharm: Check that the stub package appears in your project's external libraries
- mypy: Make sure mypy can find the stubs in your Python path
- Verify pythonista-stubs is installed in the same environment as your project
- Try restarting your IDE after installation
- Check that your IDE is using the correct Python interpreter
Please file a bug report for any issues you find. Even more excellent than a good bug report is a fix for a bug, or the implementation of a much-needed stub. We'd love to have your contributions.
Everyone participating in this community is expected to treat other people with respect and more generally to follow the guidelines articulated in the Python Community Code of Conduct.
- Harold Martin - harold.martin at gmail
- Dmytro Yaroshenko
This is not an official project and is not associated with omz:software