Brython是否完全在客户端? [英] Is Brython entirely client-side?

查看:96
本文介绍了Brython是否完全在客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一段用Python编写的代码.我想将该代码放在网页中. Brython似乎是将这两件事粘合在一起的最简单方法,但是我没有一个服务器可以实际在服务器端运行代码.

Brython是否需要服务器端代码,或者我可以使用(例如)Dropbox廉价地托管使用它的页面?

解决方案

Brython本身似乎完全是客户端,但是这是否足够,实际上取决于您编写的代码.它不是功能完善的Python解释器,并且没有库.您可能希望后端支持它,或者使用注释中建议的其他客户端解决方案.

鉴于真正的网络托管服务商支持Python的情况很少,如果您确实需要在服务器上进行处理,我认为Dropbox不太可能适合此操作.

I have a piece of code written in Python. I would like to put that code in a webpage. Brython seems like the simplest way to glue the two things together, but I don't have a server that can actually run code on the server side.

Does Brython require server-side code, or can I host a page using it on the cheap with (say) Dropbox?

解决方案

Brython itself seems to be completely client side, but whether that will be enough really depends on the code you wrote. It is not a full blown Python interpreter and does not have the libraries. You might want a backend to support it or use another client side solution as suggested in the comments.

Given how few real web hosters support Python, I think it is very unlikely that Dropbox would be suitable for this, in case you do need processing on the server as well.

这篇关于Brython是否完全在客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆