Latest version
Python3-Android 3.4.2 or Python3-Android 3.5.1. It currently supports Python 3.4.2 or 3.5.1 and the 10d version of the NDK. It can also support 3.3 and 9c, 11c and 12. It's nice in that you simply download it, run make and you get the.so or the.a. I currently use this to run raw Python on android devices.
Last released:
Android APK packager for Python scripts and apps
python-for-android is a packaging tool for Python apps on Android. You cancreate your own Python distribution including the modules anddependencies you want, and bundle it in an APK along with your own code.
Features include:
For documentation and support, see:
Follow the quickstartinstructionsto install and begin creating APKs.
Quick instructions: install python-for-android with:
(for the develop branch: pip install git+https://github.com/kivy/python-for-android.git
)
Test that the install works with:
To build any actual apps, set up the Android SDK and NDKas described in the quickstart.Use the SDK/NDK API level & NDK version as in the quickstart,other API levels may not work.
With everything installed, build an APK with SDL2 with e.g.:
For full instructions and parameter options, see thedocumentation.
If you need assistance, you can ask for help on our mailing list:
We also have #support Discord channel.
We love pull requests and discussing novel ideas. Check out the Kivyproject contribution guide andfeel free to improve python-for-android.
See ourdocumentationfor more information about the python-for-android development andrelease model, but don't worry about the details. You just need tomake a pull request, we'll take care of the rest.
The following mailing list and IRC channel are used exclusively fordiscussions about developing the Kivy framework and its sister projects:
We also have #dev Discord channel.
python-for-android is released under the terms of the MIT License.Please refer to the LICENSE file.
In 2015 these tools were rewritten to provide a new, easier to use andextend interface. If you'd like to browse the old toolchain, itsstatus is recorded for posterity at athttps://github.com/kivy/python-for-android/tree/old_toolchain.
In the last quarter of 2018 the python recipes has been changed, thenew recipe for python3 (3.7.1) has a new build system which has beenapplied to the ancient python recipe, allowing us to bump the python2version number to 2.7.15. This change, unifies the build process forboth python recipes, and probably solve some issues detected over theyears. Also should be mentioned that this unified python recipesrequire to target to a minimum api level of 21,Android 5.0 - Lollipop, so in case the you need to build targeting anapi level below 21, you must use an old version of python-for-android(<=0.7.1). All this work has been done using android ndk version r17c,and your build should success with that version...but be aware that theproject is in constant development so...the ndk version will change atsome time.
Those mentioned changes has been done this way to make easier the transitionbetween python3 and python2. We will slowly phase out python2 supporttowards 2020...so...if you are using python2 in your projects you shouldconsider to migrate it into python3.
This project exists thanks to all the people who contribute. [Contribute].
Thank you to all our backers! 🙏 [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]
2019.8.9
2019.7.8
2019.6.6.post0
2019.6.6
0.7.0
0.6.0
0.5.3
0.5.2
0.5.1
0.5
0.4
0.3
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size python_for_android-2019.8.9-py3-none-any.whl (583.3 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size python-for-android-2019.8.9.tar.gz (1.0 MB) | File type Source | Python version None | Upload date | Hashes |
Algorithm | Hash digest |
---|---|
SHA256 | 795f7676368e136f528783995e9eff43b0696f9c91a8938fe49d3b2a7e556ab2 |
MD5 | 2be36928037c2da95ba9fe47b2c3964a |
BLAKE2-256 | 47d78820213dfbf06ec29e0a4a36356ff52338eee80217aaabb3d05d9c9579d0 |
Algorithm | Hash digest |
---|---|
SHA256 | a9c7995c1d5df93d731af52af7ebc366f4378f197bde042546ae0975d184ac5d |
MD5 | 9de663005d70d35a0c2542a744a86132 |
BLAKE2-256 | 2614494e12966fb63f2687da554e037ead62265d5ea1d45d70cbd370e0230631 |