A development tool that packages Python apps into binaries that can run on Android devices.
Project description
python-for-android
python-for-android (p4a) is a development tool that packages Python apps into binaries that can run on Android devices.
It can generate:
- Android Package (APK) files, ready to install locally on a device, especially for testing. This format is used by many app stores but not Google Play Store.
- Android App Bundle (AAB) files which can be shared on Google Play Store.
- Android Archive (AAR) files which can be used as a re-usable bundle of resources for other projects.
It supports multiple CPU architectures.
It supports apps developed with Kivy framework, but was built to be flexible about the backend libraries (through "bootstraps"), and also supports PySDL2, and a WebView with a Python web server.
It automatically supports dependencies on most pure Python packages. For other packages, including those that depend on C code, a special "recipe" must be written to support cross-compiling. python-for-android comes with recipes for many of the mosty popular libraries (e.g. numpy and sqlalchemy) built in.
python-for-android works by cross-compiling the Python interpreter and its dependencies for Android devices, and bundling it with the app's python code and dependencies. The Python code is then interpreted on the Android device.
It is recommended that python-for-android be used via Buildozer, which ensures the correct dependencies are pre-installed, and centralizes the configuration. However, python-for-android is not limited to being used with Buildozer.
Documentation
More information is available in the online documentation including a quickstart guide.
python-for-android is managed by the Kivy team.
Support
Are you having trouble using python-for-android or any of its related projects in the Kivy ecosystem? Is there an error you don’t understand? Are you trying to figure out how to use it? We have volunteers who can help!
The best channels to contact us for support are listed in the latest Contact Us document.
Code of Conduct
In the interest of fostering an open and welcoming community, we as contributors and maintainers need to ensure participation in our project and our sister projects is a harassment-free and positive experience for everyone. It is vital that all interaction is conducted in a manner conveying respect, open-mindedness and gratitude.
Please consult the latest Code of Conduct.
Contributors
This project exists thanks to all the people who contribute. [Become a contributor].
Backers
Thank you to all of our backers! 🙏 [Become a backer]
Sponsors
Special thanks to all of our sponsors, past and present. Support this project by [becoming a sponsor].
Here are our top current sponsors. Please click through to see their websites, and support them as they support us.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-for-android-2024.1.21.tar.gz
.
File metadata
- Download URL: python-for-android-2024.1.21.tar.gz
- Upload date:
- Size: 484.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f2854e4a31649cfbc4c17d6da475a59b0e7506fa1925151b4865b0d28fd497 |
|
MD5 | ef3a0ad1460d32f4cae02c11e0d35667 |
|
BLAKE2b-256 | 7e08b917166a08b3a395acaed43908c700f5b1dcb61166a0f3db09a29a000b9e |
File details
Details for the file python_for_android-2024.1.21-py3-none-any.whl
.
File metadata
- Download URL: python_for_android-2024.1.21-py3-none-any.whl
- Upload date:
- Size: 543.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 846296e53ae0cd004b0b7b1a296fb3d9bc3469de7bf43e7454f7bded28d7ce26 |
|
MD5 | fff31b849192fd88f94175340024a72f |
|
BLAKE2b-256 | 4e9ad7aaddc380894c51484669ca4ac9c5ab890fcda0ef91ed4ad73eadb881a2 |