最好的python XMPP/Jabber客户端库?
您对Python Jabber/XMPP客户端库有何经验? 您有什么建议?
What are your experiences with Python Jabber / XMPP client libraries? What do you recommend?
这取决于您可以使用哪种许可证.一些流行的库是GPL,如果您需要使用它来工作,尤其是需要保留专有扩展名,可能会导致严重的问题.我认为LGPL库不那么受欢迎,但是您可以灵活地使用它们.
It depends what license you can use. Some popular libraries are GPL which can cause serious issues if you need to use it for work, especially if you need to keep proprietary extensions. The LGPL libraries are a little less popular, I think, but you have more flexibility with what you can use them for.
我曾经看过将twist直接用于一些简单的XMPP脚本,但是该文档实际上不存在.就像,我打开了一本扭曲的参考手册,它根本不包含xmpp或jabbber .也许他们现在已经解决了.
I'd once looked at using twisted directly for some simple XMPP scripting but the documentation was literally non-existant. Like, I opened a published twisted reference manual and it didn't include xmpp or jabbber at all. Maybe they've fixed that now.
MIT库.
- sleekxmpp (是:电子邮件列表 ,并在sleek@conference.jabber.org上有一个聊天室.
- slixmpp 是sleekxmpp的友好分支.它删除了所有线程,并且适用于python 3.4 +.
- sleekxmpp (was: sleekxmpp) is pretty popular and is used for examples in Peter Saint-Andre's XMPP book from O'Reilly. It reportedly works well, and finally got an email list in April 2010, and has a chat room at sleek@conference.jabber.org.
- slixmpp is a friendly fork of sleekxmpp. It has removed all threads, and is for python 3.4+.
GPL库.
- xmpppy 由gajim从2005年至2014年使用,最初是一个分叉的小混混.还生活在 xmpppy .
- nbxmpp 分叉为xmpppy,由gajim使用.至少有一些python 3支持.它是积极维护的.
- xmpppy was used by gajim from 2005-2014, and began as a forked jabberpy. Also lives at xmpppy.
- nbxmpp forked xmpppy, and is used by gajim. Has at least some python 3 support. It is actively maintained.
LPGL库.
- aioxmpp 是一个基于异步的python 3.4+库.
- pyxmpp 非常好,内部使用libxml2进行xml解析.
- pyxmpp2 是pyxmpp的下一个版本,在python 2.7和3.2上运行,并删除了libxml2要求.与许多其他网站一样,它需要 dnspython .
- jabberpy 仍然是原始的,仍然可以完成许多任务,但是却完全无法维护. li>
- aioxmpp is an asyncio-based python 3.4+ library.
- pyxmpp is pretty good and uses libxml2 internally for xml parsing.
- pyxmpp2 is the next version of pyxmpp, runs on python 2.7 and 3.2, and removes the libxml2 requirement. Like many, it requires dnspython.
- jabberpy is the original and still works for a lot of tasks, but is thoroughly unmaintained.
其他库.
-
在另一篇文章中提到的
- Wokkel .基于扭曲,这对我来说是个新事物.
- Wokkel, mentioned in another post. That's a new one for me, based on twisted.