- Notifications
You must be signed in to change notification settings - Fork1.9k
Turn your Python application into an Android APK
License
kivy/python-for-android
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
python-for-android (p4a) is a development tool that packages Python apps intobinaries that can run on Android devices.
It can generate:
- Android Package (APK)files, ready to install locally on a device, especially for testing. This formatis used by manyapp storesbut notGoogle Play Store.
- Android App Bundle(AAB) files which can be shared onGoogle Play Store.
- Android Archive(AAR) files which can be used as a reusable bundle of resources for otherprojects.
It supports multiple CPU architectures.
It supports apps developed withKivy framework, but wasbuilt to be flexible about the backend libraries (through "bootstraps"), andalso supportsPySDL2, and aWebView witha Python web server.
It automatically supports dependencies on most pure Python packages. For otherpackages, including those that depend on C code, a special "recipe" must bewritten to support cross-compiling. python-for-android comes with recipes formany of the most popular libraries (e.g. numpy and sqlalchemy) built in.
python-for-android works by cross-compiling the Python interpreter and itsdependencies for Android devices, and bundling it with the app's python codeand dependencies. The Python code is then interpreted on the Android device.
It is recommended that python-for-android be used viaBuildozer, which ensures the correctdependencies are pre-installed, and centralizes the configuration. However,python-for-android is not limited to being used with Buildozer.
More information is available in theonline documentation including aquickstart guide.
python-for-android is managed by theKivy team.
Are you having trouble using python-for-android or any of its related projectsin the Kivy ecosystem?Is there an error you don’t understand? Are you trying to figure out how to useit? We have volunteers who can help!
The best channels to contact us for support are listed in the latestContact Usdocument.
In the interest of fostering an open and welcoming community, we ascontributors and maintainers need to ensure participation in our project andour 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 thelatest Code of Conduct.
This project exists thanks toall the people who contribute.[Become a contributor].
Thank you toall of our backers!🙏 [Become a backer]
Special thanks toall 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.
About
Turn your Python application into an Android APK
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.