kivy /python-for-android

Turn your Python application into an Android APK

★ 8,948⑂ 2,056👁 334⑃ 1,804● 1,588▤ 21
PythonMITCreated 2011-11-28python-for-android.readthedocs.io
More from this author
Download: v2026.05.09v2026.05.09 ↓2026.05.092026-05-10
+1
Daily
8,948
stars
2,056
forks
334
watchers
1,804
prs
1,588
issues
21
releases

README

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













 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.

Top issues

Latest release

v2026.05.09 v2026.05.09 2026-05-10
What's Changed
 Merge master into develop by @misl6 in https://github.com/kivy/python-for-android/pull/2960
 recipes: new materialyoucolor recipe by @T-Dynamos in https://github.com/kivy/python-for-android/pull/2950
 Add support for display cutouts in manifest and add methods to retrieve data by @kuzeyron in https://github.com/kivy/python-for-android/pull/2969
 (recipes/materialyoucolor): update to 2.0.7 by @T-Dynamos in https://github.com/kivy/python-for-android/pull/2975
 Arch type error when creating apk for project with setup.py by @pramodin in https://github.com/kivy/python-for-andro

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON