Differences from SleekXMPP¶
- Python 3.7+ only
slixmpp will work on python 3.7 and above. It may work with previous versions but we provide no guarantees.
- Stanza copies
The same stanza object is given through all the handlers; a handler that edits the stanza object should make its own copy.
- Block and threaded arguments
All the functions that had a
block=argument do not have it anymore. Also,
Iq.send()does not block anymore.
- Coroutine facilities
See Using asyncio
If an event handler is a coroutine, it will be called asynchronously in the event loop instead of inside the event caller.
A CoroutineCallback class has been added to create coroutine stream handlers, which will be also handled in the event loop.
Many plugins (WIP) calls which retrieve information also return the same future.
- Architectural differences
slixmpp does not have an event queue anymore, and instead processes handlers directly after receiving the XML stanza.
If you find something that doesn’t work but should, please report it.