Simplistic and stateless XMPP implementation for python. A building block for non-blocking XMPP clients, components, gateways and servers.
Available at xmpp.readthedocs.io
You can find some in the examples folder:
- Echo Bot: Auto Replies to anyone who messages it
- Service Discovery: How to use the Disco (xep 0030)
- Presence Bot: Client that automatically sends presence and befriends anyone who sends it presence
You can find some in the examples folder:
- Presence Proxy notifier: Component that befriends a specific JID and sends present to it, in behalf of many jids
The XMPP Toolkit library allows you to easily implement your own XEPs and keep the extensions inside of your own application.
If you are implementing a generic XEP, please consider sending a pull-request with the change, preferabbly along with its test cases.
This library was mostly written from scratch, except for the
xmpp.sasl
which is a modified copy of the contents of the
pyxmpp2 library by Jacek Konieczny.
The modified files can be found at:
xmpp/sasl/__init__.py xmpp/sasl/core.py xmpp/sasl/digest_md5.py xmpp/sasl/external.py xmpp/sasl/gssapi.py xmpp/sasl/plain.py xmpp/sasl/saslprep.py xmpp/sasl/scram.py xmpp/sasl/xfacebookplatform.py