Can you recommend any cross platform Python app development frameworks where you write code once and it can be deployed to Linux, Android, Windows, MacOS and iOS.

    • matl@lemmy.mlOP
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      Exactly @AgreeableLandscape@lemmy.ml , I am thinking of developing and shipping an GUI based app, which is ready to use without installing Python seperately. I am not sure if GTK and Qt for Python can be easily packaged and deployed on Android devices?

      I found BeeWare which claims to write code once and deeploy it everywhere, such as on iOS, Android, Windows, MacOS, Linux, Web, and tvOS. I tested it once, but I had trouble with OS independet packages, which were not available for both OS, such as Android and Linux.

      Furthermore I found KIVY, which claims to run on Linux, Windows, OS X, Android, iOS, and Raspberry Pi as well, but I didn’t manage to gete an Android apk up and running yet.

      Your hint @masu@lemmy.ml is valuable, I think I need to make some code more OS independent. That should be the problem while playing with BeeWare, that some Python packages are not available on all plattforms.

      • Jesse@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        3 years ago

        That would really suck if some Python packages were OS dependent, do you have an example?. I know some are hardware dependent (jit for computing on your Cuda enabled GPU). But the OS identification is really useful for things like understanding if you should be using forward or backward slashes and nomenclature like that.

        • AgreeableLandscape@lemmy.ml
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          edit-2
          3 years ago

          Any package that need access to hardware or the kernel would need to directly use operating system APIs. For example, a package that accesses LM_SENSORS on Linux wouldn’t work on Windows because the API would be completely different.

          • Jesse@lemmy.ml
            link
            fedilink
            arrow-up
            2
            ·
            3 years ago

            Ah very nice! I use Python for data science applications but that’s about it.