Chaquopy version 3.2.0
This release adds the following feature:
- The new methods Python.getPlatform and AndroidPlatform.getApplication allow the application context to be retrieved from anywhere.
And includes the following bugfixes:
This release adds the following feature:
And includes the following bugfixes:
This release adds support for installing pure-Python sdists. This means that all pure-Python packages on PyPI should now work with Chaquopy, whether they have wheels available or not. If you have any difficulty installing a package, please report it at our issue tracker.
Other changes:
buildPython
is now required to be the same as that of the app itself when using pip, and the default value of buildPython
has been changed accordingly.imp.find_module
and imp.load_module
.import
is currently implemented: all other lines are ignored.This version adds support for Android Gradle plugin version 3.1, and removes support for version 2.2. If you’re still using Android Studio 2.2, then we highly recommend that you upgrade to version 3.1. Our testing shows that it builds apps more than twice as fast, whether you’re using Chaquopy or not.
Other changes:
We’re happy to announce that, due to popular demand, the following packages are now available for Chaquopy 2.1 and later:
NumPy has also been updated to the newest version, and is now built to work with OpenBLAS. As a result, many calculations are significantly faster than in the previous build.
For a full list of native packages currently available for Chaquopy, see the repository. In addition, Chaquopy of course supports all pure-Python packages which are available as wheels on PyPI.
If your favorite package still isn’t available, please let us know!
This version is focused on improving support for Python requirements which are very large, or contain native code. Several new packages have been added to the repository as a result: see the next post for a list.
List of changes:
This version fixes the following bugs:
It also makes available the following fixes in the package repository:
The major version number is incremented due to the following incompatible change:
Other changes:
The Chaquopy SDK is now out of beta and is considered ready for production use. Thanks to all those who tested it during the beta period: your free license keys will remain valid for all future versions.
We’re looking forward to continuing to improve Chaquopy in the future, but we’d like to hear what features are most important to you. Do you want better performance, or are there any Python packages you’d like to be made available? Would you benefit from better Android Studio integration, or would you be more interested in a way to create apps in Python directly on an Android device?
Please let us know your thoughts by email or on our GitHub page.
This version adds the following feature:
And fixes the following bugs:
sys.stdin
now returns EOF rather than blocking. If you want to run some code which takes interactive text input, see below for the new console app template.write
method of sys.stdout
and sys.stderr
now returns the character count.sys.stdout
and sys.stderr
are now split into slightly smaller fragments, to allow for the shorter Logcat message length limit in recent versions of Android.Other notes:
exit()
, then restarted by pressing back and re-entering the activity.This is a minor update to fix issues with non-ASCII text in Python source code (#27).