Difference between revisions of "Python"

From postmarketOS
Jump to navigation Jump to search
(Created page with "== 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...")
 
m (python 2 is eol,so no reason to mention it equally to python 3 here anymore)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Why Python? ==
 
== 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, and both versions 2 and 3+ can be used. It is recommended that first time 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)
+
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 <code>pmbootstrap init</code> to setup your flash image, you have the option to add packages. add <code>python3</code> 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
 +
 
 +
[[Category:Technical Reference]]

Latest revision as of 23:51, 16 March 2021

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