Sproutcore 与 Python Scipy
我有一个用 Python Scipy 制作的计算后端,前端和管理部分将用 Sproutcore 制作。我需要什么才能让 sproutcore 运行 python 引擎。
我想我需要一个位于 sproutcore 和 scipy 之间的 python 框架。该框架的唯一作用是促进沟通。
其他选择是在服务器上使用 sproutcore 以及它调用 python scipy 脚本的方法(如果可能的话)
关于正确方法的任何建议? 关于这样一个简单的胶水框架的任何建议。
I have a computational backend made in Python Scipy and the frontend and admin section will be made in Sproutcore. What do i need to make the sproutcore run the python engine.
I think i need a python framework that sits between sproutcore and scipy. This framework's only job will be to facilitate communication.
Other option is to use sproutcore on the server as well and a way for it to call the python scipy scripts, if that is even possible
Any advice on the correct approach?
Any recommendation on such a simple glue framework.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用任何您喜欢的框架!我碰巧喜欢 Flask 上的 SimpleApi 之类的东西(你可以使用
nginx
运行它) 、apache2 或任何符合 wsgi 的服务器)。这基本上将 TCP/IP 侦听器置于您喜欢的任何 Python 代码之上。我猜你想公开的本质上就是
run(some_well_control_and_obviously_not_from_the_user_code)
。您可能会遇到一些问题:
Beaker
可能有帮助吗?让我知道这是怎么发生的。这绝对是需要的,我也考虑过自己启动一个类似的项目。
You can use any framework you like! I happen to like something like SimpleApi atop Flask (which you can run with
nginx
, apache2 or any wsgi-compliant server). This basically puts an TCP/IP listener on top of whatever python code you like.I am guessing all you want to expose is essentially
run(some_well_controlled_and_obviously_not_from_the_user_code)
.Some problems you might encounter:
Beaker
might help here?Celery
orZero-MQ
?Let me know how this comes along. This is definitely needed, and I have thought about starting a similar project myself.