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

Project description

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.

Download Python 3 For Android Phone

Features include:

  • Support for building with both Python 2 and Python 3.
  • Different app backends including Kivy, PySDL2, and a WebView withPython webserver.
  • Automatic support for most pure Python modules, and built in supportfor many others, including popular dependencies such as numpy andsqlalchemy.
  • Multiple architecture targets, for APKs optimised on any givendevice.

For documentation and support, see:

  • Website: http://python-for-android.readthedocs.io
  • Mailing list: https://groups.google.com/forum/#!forum/kivy-users orhttps://groups.google.com/forum/#!forum/python-android.

Documentation

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.

Support

If you need assistance, you can ask for help on our mailing list:

  • User Group: https://groups.google.com/group/kivy-users
  • Email: kivy-users@googlegroups.com

We also have #support Discord channel.

Contributing

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:

  • Dev Group: https://groups.google.com/group/kivy-dev
  • Email: kivy-dev@googlegroups.com

We also have #dev Discord channel.

License

python-for-android is released under the terms of the MIT License.Please refer to the LICENSE file.

History

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.

Contributors

Python

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Release historyRelease notifications

2019.8.9

Download

2019.7.8

2019.6.6.post0

2019.6.6

0.7.0

0.6.0

0.5.3

0.5.2

Python on android phone

0.5.1

0.5

0.4

0.3

Download files

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

Files for python-for-android, version 2019.8.9
Filename, sizeFile typePython versionUpload dateHashes
Filename, size python_for_android-2019.8.9-py3-none-any.whl (583.3 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size python-for-android-2019.8.9.tar.gz (1.0 MB) File type Source Python version None Upload dateHashes

Python For Android Tablet

Close

Hashes for python_for_android-2019.8.9-py3-none-any.whl

Hashes for python_for_android-2019.8.9-py3-none-any.whl
AlgorithmHash digest
SHA256795f7676368e136f528783995e9eff43b0696f9c91a8938fe49d3b2a7e556ab2
MD52be36928037c2da95ba9fe47b2c3964a
BLAKE2-25647d78820213dfbf06ec29e0a4a36356ff52338eee80217aaabb3d05d9c9579d0
Close

Hashes for python-for-android-2019.8.9.tar.gz

Hashes for python-for-android-2019.8.9.tar.gz
AlgorithmHash digest
SHA256a9c7995c1d5df93d731af52af7ebc366f4378f197bde042546ae0975d184ac5d
MD59de663005d70d35a0c2542a744a86132
BLAKE2-2562614494e12966fb63f2687da554e037ead62265d5ea1d45d70cbd370e0230631