Python Forum
Portability in Python and Java - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: Portability in Python and Java (/thread-37608.html)



Portability in Python and Java - ankitdixit - Jun-30-2022

Hello All, I am working on a freelance project which is based on python and java both and I am good at java. I want to know which programming language has more portable for running the code. According to this post, Any device capable of running a JVM (Java Virtual Machine) is capable of running a Java Code but not an idea about python? Can anyone tell me about python?


RE: Portability in Python and Java - snippsat - Jun-30-2022

Portability of Python is now ok,it depend of what the goal is.
Linux and Mac ship with Python pre-installed on Windows have to install Python.
Python ship with pip then can use PyPi to install one the 384,771 projects.

An other way is to ship a stand alone(no need for Python pre-installed) with using eg,
Pyinstaller, cx_Freeze, Briefcase, Nuitka, PyOxidizer, List of tools

For Data Science/Python there are many way eg using NoteBooks is a central way to show/distribute code.
Can i share a Notebook(Google Colab) like this one, so can look at code and also run it.

For web app/sites using Flask, Django and the is normal to use a host eg Heroku, DigitalOcean...ect.
Then the availability is everywhere as long has network and a Browser.

For Mobil Python for Mobile App Development in 2022 – Kivy Vs BeeWare
I tested KivyMD i while ago and was able to make good looking test app(as Material Design is default).
Did make a APK file using Buildozer and tested it on Phone.