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

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

PyPI - Version PyPI - Python Version

Unit tests & build apps Coverage Status

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-2024.1.21.tar.gz (484.8 kB view details)

Uploaded Source

Built Distribution

python_for_android-2024.1.21-py3-none-any.whl (543.4 kB view details)

Uploaded Python 3

File details

Details for the file python-for-android-2024.1.21.tar.gz.

File metadata

File hashes

Hashes for python-for-android-2024.1.21.tar.gz
Algorithm Hash digest
SHA256 f4f2854e4a31649cfbc4c17d6da475a59b0e7506fa1925151b4865b0d28fd497
MD5 ef3a0ad1460d32f4cae02c11e0d35667
BLAKE2b-256 7e08b917166a08b3a395acaed43908c700f5b1dcb61166a0f3db09a29a000b9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_for_android-2024.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 846296e53ae0cd004b0b7b1a296fb3d9bc3469de7bf43e7454f7bded28d7ce26
MD5 fff31b849192fd88f94175340024a72f
BLAKE2b-256 4e9ad7aaddc380894c51484669ca4ac9c5ab890fcda0ef91ed4ad73eadb881a2

See more details on using hashes here.

Supported by

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