HomeUpdatesPython: Python apps coming to Android soon

Python: Python apps coming to Android soon

Python: Python apps coming to Android soon – Thanks to the evolution and rise of machine learning, the Python programming language is increasingly used by programmers, but has not had a place -so far- on mobile phones.

Of course, the creator, Guido van Rossum, and some Python developers believe that applications written in Python may one day be supported on iOS and Android.

Python: Python apps coming to Android soon

Russell Keith-Magee, head of BeeWare, is the one who gives hope that Python could come to mobile. BeeWare is porting CPython to Android, so that applications written in Python will automatically run on Android. CPython is the open-source reference implementation of the Python language and is used in Jython, which is written in Java and based on the Java Virtual Machine (JVM).

BeeWare's goal is to enable developers to write Python programs and run the code anywhere using user interface tools (UI). The goal is to help developers write Python-based applications that run on iOS, Android, Windows, macOS, Linux, browsers, and tvOS.

In February, Keith-Magee announced the first major milestone for the Android operating system after getting a pure Python application running on an Android device. He made the announcement at the Python 2020 conference, which was held online this year due to the pandemic.

Python: Python apps coming to Android soon

However, Python is not designed to be supported on mobile. To address this shortcoming, the Python Software Foundation has awarded BeeWare $50,000 to bring Android support to the same level as iOS tools. The Android CPython binding should support the latest Android versions, from version 4.4 onwards.

Initially, Beeware's strategy for Android was to convert Python to Java Bytecode, but now the Android kernel is more robust and devices are much faster to support CPython. For casual Python programmers, the mobile environment is a foreign planet. There are no subprocesses, sockets, pipes, and signals behave completely differently than on a simple Unix.

The biggest hurdle has been the size of Android apps written in Python, as they require their own Python runtime, meaning Python has had to be shrunk to fit on mobile. The solution some have proposed is to build a “stripped down core” of Python, which could solve many of the challenges, combined with a package installer (pip) that allows developers to install packages for an entire platform rather than just one system.

" Android's TLS certificate handling is particularly strange. In order for the CPython test suite to pass on mobile, it has to skip many checks that use fork or spawn, signals, or other APIs that are different or missing."

As Ned Deily, a Python lead developer at PSF, points out, there are still many obstacles, such as the fact that providing mobile support will cost a lot more money and require a lot more people than other Python projects.

📧
Subscribe to the SecNews Newsletter

The most important Security & Technology news in your Inbox.

SecNews
SecNewshttps://www.secnews.gr
In a world without fences and walls, who needs Gates and Windows

SEARCH

FOLLOW US

📧
Newsletter SecNews
The most important Security & Technology news in your inbox.

LIVE NEWS