QPython allows usage of Kivy library for developing graphical applications
是的,qpython是一个解释器相关的工具,并且有一些很好的kivy集成。你不能将kivy代码编译成一个独立的apk,只有使用qpython android。
QPython and Kivy both use SL4A, while QPython has expanded standard SL4A (or it’s bindings for Python) by adding some NFC and similar functions
Kivy不使用SL4A。我们通过pyjnius实现android api集成,这是一个使用python自动包装java类的库,可以直接调用java api。我们还将一些标准的东西抽象到与plyer的pythonic接口。
(我以后看到你已经找到了这些)
QPython is used to create python scripts that can use wide range of modules, libraries, but they need QPython installed to be executed on target device. There is no way to package script into an apk.
我不使用qpython很多,但我认为这是正确的,虽然可能有一些工具在一些情况下将脚本转换为apks(例如,如果您有一个kivy界面,或者sl4a有一些这样的东西,你可以使用kivy的构建工具)。
Kivy OTOH, allows developer to write applications that compile to apk, using their cloud based build system (alternative – local build system can be set up on Ubuntu Linux) [However, I noticed that most of the sample apk’s that use Kivy are pretty large, in the 40MB range. Did I miss anything ?]
我们有一个基本的基于云的构建系统,但现在还没有其他的东西,几乎每个人都使用我们的Android构建工具在自己的机器上构建apks。这些运行在linux或OSX上,如果需要,可以轻松地在虚拟机中运行。
由于需要捆绑python解释器和很多模块,最小的应用程序大约有7MB的APK大小。
QPython apk has 2 version i.e. one for Python-2.7 and another one for Python-3.x. For Kivy, I’m not sure which version it is.
Kivy本身支持python3,但是我们的android构建工具现在只支持python2.7。
Get the impression that both QPython and Kivy are developed by a single developer each (or only one person is really active at present), and don’t yet have a biggish community. [This is my biggest concern] I notice that there are 3-4 questions with ‘qpython’ tag on SO, and more than thousand with ‘kivy’!
Kivy的发展是相当活跃的几个常规贡献者加上更多的零星。您可以看到例如最近的提交活动on github.它肯定比单个开发人员更多!
Kivy seems to be trying to expand the nature of application that could possibly be written using it, compare to QPython. There are API’s like plyer and pyjnius that help expand the possibilities. Perhaps quite significantly, compared to QPython.
我认为qpython包括pyjnius。不知道洗礼者。
Both QPython and Kivy seem to be heavily under development. Program (/ script) crashes (/ failures) seem to be reported on both set of tools.
我不知道你在看什么,但任何不平凡的项目都会有崩溃/失败/错误报告。我不认为kivy特别本质上是不稳定的。
Overall, the opinion as a result (of above points) appears to swing in favour of Kivy, a bit more.
我会说,qpython和kivy是完全不同的事情。 Qpython允许您编写和运行脚本,而kivy是一个图形框架和相关工具来创建独立应用程序。与他们可以实现的任务有一些重叠,但也有很多东西都不适合 – 例如,我认为qpython可以更方便地制作没有gui的快速脚本。简单的自动化(我认为这是可能的),而我认为kivy是一个更好的选择创建独立的应用程序与非平凡的guis。当然,您可以在qpython中编写kivy代码,如同讨论的那样,但是这并不是一个非常简单的用户体验,您需要一台台式机/笔记本电脑才能制作一个独立的apk。