Python 相当于 Java 的 JNLP Web Start?
有没有办法在 Python 中实现相同的功能,即从浏览器启动脚本并从中央服务器位置自动更新它?
Is there any way to achieve the same functionality in Python, i.e., launching a script from a browser and automatically updating it from a central server location?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 Jython 上运行您的应用程序并使用 Java Web Start?
根据下面的评论, http://blog .pyproject.ninja/posts/2016-03-31-web-start-on-jython.html,提供了一个完整的示例。
请注意,Jython 不是 Python - 有些东西不起作用,而且值得注意的是 Jython 仅与 Python-2.7 兼容。
Run your app on Jython and use Java Web Start?
From a comment below, http://blog.pyproject.ninja/posts/2016-03-31-web-start-on-jython.html, provides a complete example.
Note that Jython is not Python- some stuff does not work, and notably Jython is only Python-2.7 compatible.
好吧,这仍然不完全匹配 JNLP 的功能,但也许 esky 更接近你想要的。它不是基于浏览器的,但一旦您的应用程序安装在客户端上,它就可以自行更新。它也可能缺乏跨平台部分的东西,所以这取决于你的环境 YMMV。
另一种选择可能是 dabodev.com 上的 Dabo 框架。我已经好几年没看过它了,但它看起来仍然还活着:-)
Well this is still not a full match of the features of JNLP but maybe esky is closer to what you want. It's not browser based but once your app is installed on the client it can update itself. It might also lack something in the cross-platform department so depending on your environment YMMV.
Another alternative might be the Dabo framework at dabodev.com. It's been a few years since i looked at that but it still looks like it's alive :-)
您也许可以使用 Skulpt 实现某些功能,尽管它使用无类 python,因此其功能相当有限。
我们来看看 这个 python wiki 页面,因为它列出了各种选项。
You may be able to achieve some functionality with Skulpt although it uses classless python, so its functionality is rather limited.
Well check out this python wiki page as it lays out various options.