Installation¶
SPADE PubSub requires Python 3.11 or later (3.11 to 3.14 are supported) and SPADE 4.2 or later, which is installed with it. It works on Linux, macOS and Windows.
Stable release¶
uv manages your Python projects and their dependencies. If you don't have it, see the uv installation guide. Add SPADE PubSub to your project:
In a virtual environment:
From the source code¶
The source code is on GitHub. Clone the repository:
and install it with pip install ., or create its development environment with uv sync --extra dev (see
Contributing).
An XMPP server with PubSub¶
Your agents need an XMPP server with a PubSub service:
- The XMPP server of SPADE (PyJabber) has one, at
pubsub.<domain>(pubsub.localhostby default). Start it withspade run, or run your program withspade.run(main(), embedded_xmpp_server=True), as the quick start does. - Other XMPP servers (Prosody, ejabberd, Openfire...) usually have one too, but they may need some configuration: see XMPP servers and errors.