PitchHut
Log in / Sign up
Python-Apple-support
7 views
Integrate Python seamlessly into your Apple ecosystem.
Pitch

Introducing Python Apple Support, a robust meta-package that enables seamless integration of Python 3.13 into your macOS, iOS, tvOS, and watchOS projects. Effortlessly build a relocatable version of Python, ensuring dynamic functionality across devices with tailored support for Apple’s platforms. Streamline your app development while leveraging the power of Python.

Description

Python Apple Support is an innovative meta-package designed to seamlessly embed Python into various Apple platforms including macOS, iOS, tvOS, and watchOS. This project provides a convenient way to build and integrate a specialized version of Python, with the current branch focused on Python 3.13.

Key Features:

  • Cross-Platform Compatibility: Supports multiple architectures including x86_64 and arm64 for macOS, and arm64_32 for watchOS, ensuring broad device compatibility.
  • Framework Packaging: Facilitates the creation of frameworks that can be included in Xcode projects, allowing for streamlined development on Apple devices.
  • Dynamic Loading: The Python standard library is distributed as dynamically loadable binary modules, enhancing flexibility and performance in application development.
  • Platform-Specific Enhancements: Leveraging PEP 730, the project modifies Python to ensure compatibility across macOS, iOS, tvOS, and watchOS, with additional patches for each platform.

Supported Platforms:

  • macOS: Compatible with macOS 11 (Big Sur) or later across various devices including MacBook and iMac models using Apple Silicon.
  • iOS: Works on devices running iOS 13.0 or later, such as iPhone (6s and newer) and iPad (5th generation and newer).
  • tvOS: Support for Apple TV from the 4th generation onward, with tvOS 12.0 or later.
  • watchOS: Compatible with Apple Watch from the 4th generation and watchOS 4.0 or later.

Getting Started:

You can quickly set up Python in your project through Briefcase, which automates the process of integrating the required support packages or directly download pre-built packages from the GitHub releases page. For users looking to build the frameworks from scratch, simply run:

make all

This command will build all necessary packages while applying the required patches for compatibility.

More Resources:

  • Detailed usage instructions can be found in the usage guide.
  • For building binary wheels for iOS, refer to the Mobile Forge project available on GitHub.

You can explore older versions of Python for historical context, but note that they are no longer maintained:

Python Apple Support empowers developers to harness the capabilities of Python across Apple platforms, ensuring responsive and efficient application development tailored for modern users.