Python 的 SignalR 替代品 [英] SignalR Alternative for Python

查看:82
本文介绍了Python 的 SignalR 替代品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Python 世界中 SignalR 的替代品是什么?

What would be an alternative for SignalR in Python world?

准确地说,我在 Windows 8 上使用带有 python 2.7.6 的 Tornado;我发现了 sockjs-tornado(Python 菜鸟;对于给您带来的不便,我们深表歉意).但是 sockjs 仅支持 3 种类型的事件,并且存在一些限制;我需要诸如组、订阅者、传播和 SignalR 提供的其他功能之类的东西.

To be precise, I am using tornado with python 2.7.6 on Windows 8; and I found sockjs-tornado (Python noob; sorry for any inconveniences). But sockjs supports just 3 types of events and there are some limitations; I need things like groups, subscribers, propagating and other features that SignalR provides.

推荐答案

您可能正在寻找 Twisted,一个完整的应用程序实时引擎.https://twistedmatrix.com/trac/

You are probably looking for Twisted, a whole real-time engine for applications. https://twistedmatrix.com/trac/

如果你做微框架,Flask(想想 ruby​​ 上的 Sinatra)也有一个实时模块,但它真的都是准系统,它可能不是你想要的:

If you do microframeworks, Flask (think Sinatra on ruby) also has a real-time module, but it's all barebones really, it might not be what you're looking for:

http://flask.pocoo.org/

干杯.

这篇关于Python 的 SignalR 替代品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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