Skip to main content

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:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_for_android-2026.5.9.tar.gz (525.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_for_android-2026.5.9-py3-none-any.whl (582.0 kB view details)

Uploaded Python 3

File details

Details for the file python_for_android-2026.5.9.tar.gz.

File metadata

  • Download URL: python_for_android-2026.5.9.tar.gz
  • Upload date:
  • Size: 525.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for python_for_android-2026.5.9.tar.gz
Algorithm Hash digest
SHA256 64df210c491c29a70a13803821f98cf774dcc24aa082f85f19852f13f277431a
MD5 ca542eb1f542c3c32ec4c712edc92aa6
BLAKE2b-256 49c88774f981bc3f8e1aaedc611534c30ad1a66debdef6da371d0f624efa7a6a

See more details on using hashes here.

File details

Details for the file python_for_android-2026.5.9-py3-none-any.whl.

File metadata

File hashes

Hashes for python_for_android-2026.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 79a58606a78ed3cec1aba110876a414d4aa988f082385d68393e208d009e1e94
MD5 80f70d379a40937fe5da5d09841aba32
BLAKE2b-256 798655c5a20b30b3b3bf68829a174f209f398b4b24b4a951febda3ce54544124

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page