Skip to main content

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:

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, PySDL3 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 most 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.

Backers on Open Collective Sponsors on Open Collective GitHub contributors Contributor Covenant

PyPI - Version PyPI - Python Version

Unit tests & build apps Coverage Status Docker

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.

Release files for python-for-android 2026.5.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-for-android 2026.5.9
File Size Uploaded
python_for_android-2026.5.9.tar.gz 525.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-for-android 2026.5.9
File Interpreter ABI Platform
python_for_android-2026.5.9-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / python_for_android-2026.5.9.tar.gz

Download URL python_for_android-2026.5.9.tar.gz
Size 525.8 kB
Tags Source
SHA-256 checksum
How to use checksums
64df210c491c29a70a13803821f98cf774dcc24aa082f85f19852f13f277431a
BLAKE2b-256 checksum
How to use checksums
49c88774f981bc3f8e1aaedc611534c30ad1a66debdef6da371d0f624efa7a6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13

Release files / python_for_android-2026.5.9-py3-none-any.whl

Download URL python_for_android-2026.5.9-py3-none-any.whl
Size 582.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79a58606a78ed3cec1aba110876a414d4aa988f082385d68393e208d009e1e94
BLAKE2b-256 checksum
How to use checksums
798655c5a20b30b3b3bf68829a174f209f398b4b24b4a951febda3ce54544124
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page