[jdev] Which Python Library for Jabber?

Joe LaPenna joelapenna at gmail.com
Sun Aug 28 05:02:17 CDT 2005


>From what I recall . . . incorrectly possibly; xmpppy is a descendant
of jabber.py.
I just looked it up and pyxmppy.sf.net has this to say:
"This library was not designed from scratch. It inherits some code
from jabberpy and have very similar API in many places. Though it is
separate project since it have almost completely different
architecture and primarily aims to work with jabberd2 - the new Open
Source Jabber Server."

So I was wrong.

Anyways. I started off using pyxmpppy but switched to pyxmpp because
of issues connecting to tls/SASL-PLAIN serving servers. For writing a
simple bot, both use callbacks that take the passed jabber stanza and
allow you to manipulate and return quite easily with "reply" like
functions.

I had a another issue with xmpppy regarding inheritance in which I
originally thought the library was wrong, but it turns out i was just
confused because the author did something that seems to me quite
obtuse. On the other hand, pyxmpp has about ZERO documentation in the
code and there is only limited help on the website.

>From what I understand pyxmpp has more feature/JEP support along with
supporting more methods of authentication and stream negotiation.

Just a disclaimer, I'm a poor python programmer and pretty new to XML
and XMPP in general.

On 8/18/05, Maciek Niedzielski <machekku at miroku.uaznia.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Alessandro Bottoni wrote:
> > Which Python library would you use for developing a small Jabber client?
> 
> > pyxmpp (looks like the "official" python library)
> > http://pyxmpp.jabberstudio.org/
> 
> This is the only python library I ever tried, and I had no problems with
> it. However, I usually write small bots, so I probably don't know the
> library well enough to find its disadvantages ;)
> 
> Nice thing for the "beginner" is that the package contains some (simple)
> working examples. And if you need a more advanced "example" of Jabber
> client written in pyxmpp, check cjc (http://cjc.jabberstudio.org/),
> which is developed by the same author together with pyxmpp.
> 
> One more thing at the end:
> If you decide to use pyxmpp, take the SVN version:
> 1) there are many new features in SVN version
> 2) some functions were renamed, so you won't have a problem when
> upgrading in the future
> 
> - --
> Maciek
>  xmpp:machekku at chrome.pl
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1-nr1 (Windows XP)
> 
> iD8DBQFDBFb/7knNPWzAbeURAoQ7AJ4gR2gA60cZTJuqEg+1Xi07wnUWSgCdFAcb
> bktSFdYehHztgIw7Xn4wUr8=
> =5GAd
> -----END PGP SIGNATURE-----
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
> 


-- 
http://joelapenna.com



More information about the JDev mailing list