Python

From postmarketOS Wiki

Why Python?

Python is an easy to use programming/scripting language that can be used to quickly prototype mobile applications. It is possible to run and develop python programs on a postmarketOS installation. It is recommended that users install python 3. Due to the fact that postmarketOS uses busybox, it may be necessary to install extra files through apk if you are adding modules using pip. As per Pythons documentation, it is recommended that you install all add-on modules through pip and not through the distros package installer (apk)

Installing with pmbootstrap

When using pmbootstrap init to setup your flash image, you have the option to add packages. add python3 in this section and it will be automatically installed in your image. pip comes bundled in this installation

Installing modules

Below is a list of modules that are likely to be wanted by python users

  • Kivy is a fantastic user interface for developing touch screen apps for a mobile device
  • Pocketsphinx is a speech to text library developed at Carnegie Mellon University